Add average score for multiple files
This commit is contained in:
parent
4c86b4dffb
commit
48861ea948
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue