V1.1
This commit is contained in:
parent
6a34deb43b
commit
3da62feb2a
|
|
@ -80,7 +80,7 @@ public class Dictionnaire {
|
||||||
Mot motInfo = entry.getValue();
|
Mot motInfo = entry.getValue();
|
||||||
double pourcentagePositivite = 0;
|
double pourcentagePositivite = 0;
|
||||||
if (motInfo.getApparitionsTotal() > 0) {
|
if (motInfo.getApparitionsTotal() > 0) {
|
||||||
pourcentagePositivite = (double) motInfo.getApparitionsPositives() / motInfo.getApparitionsTotal() * 100;
|
pourcentagePositivite = (double) (motInfo.getApparitionsPositives() / motInfo.getApparitionsTotal() -0.5)* 2;
|
||||||
}
|
}
|
||||||
System.out.println(mot + " : Positivité = " + pourcentagePositivite + "%");
|
System.out.println(mot + " : Positivité = " + pourcentagePositivite + "%");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue