This commit is contained in:
Qpelu 2025-03-04 10:51:47 +01:00
parent 6a34deb43b
commit 3da62feb2a
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ public class Dictionnaire {
Mot motInfo = entry.getValue();
double pourcentagePositivite = 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 + "%");
}