Skip to content

Instantly share code, notes, and snippets.

@fern4lvarez
Created March 8, 2012 12:20
Show Gist options
  • Save fern4lvarez/2000764 to your computer and use it in GitHub Desktop.
Save fern4lvarez/2000764 to your computer and use it in GitHub Desktop.
Obtener puntuación película por temperamento-temperamento.
private double calculoTT(Usuario u, double art, double ide, double gua,
double rac) {
double puntuacion=0;
puntuacion=puntuacion+Math.abs(u.getPorcentajeArtesano()/100-art);
puntuacion=puntuacion+Math.abs(u.getPorcentajeIdealista()/100-ide);
puntuacion=puntuacion+Math.abs(u.getPorcentajeGuardian()/100-gua);
puntuacion=puntuacion+Math.abs(u.getPorcentajeRacional()/100-rac);
puntuacion=puntuacion/4;
return 1-puntuacion;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment