Skip to content

Commit

Permalink
fix the summary score calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
csanden committed Sep 7, 2017
1 parent dbb42b9 commit da4ee83
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class WeightedSumScorer(groupWeights: Map[String, Double]) extends BaseScorer{

//Compute the summary score based on the group score and weights
var summaryScore: Double = 100
groupResults.filter(_.noData).foreach{ group =>
groupResults.filter(!_.noData).foreach{ group =>
val weight:Double = groupWeights.getOrElse(group.name, calculatedWeight)
summaryScore -= (100-group.score)*weight/100
}
Expand Down

0 comments on commit da4ee83

Please sign in to comment.