Add average score for multiple files

This commit is contained in:
pispis 2023-03-07 11:56:10 +01:00
parent 4c86b4dffb
commit 48861ea948
1 changed files with 1 additions and 2 deletions

View File

@ -61,8 +61,7 @@ public class Test_FAIR {
map(entry -> entry.getValue() + ": " + entry.getKey()).collect(Collectors.joining("\n"));
// Average Score
double FinalScore = scorePerDoc.entrySet().stream().
mapToDouble(entry -> entry.getValue()).average().getAsDouble();
double FinalScore = scorePerDoc.entrySet().stream().mapToDouble(entry -> entry.getValue()).average().getAsDouble();
System.out.println(printout);