Created
March 8, 2012 12:20
-
-
Save fern4lvarez/2000764 to your computer and use it in GitHub Desktop.
Obtener puntuación película por temperamento-temperamento.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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