Skip to content

Commit

Permalink
Implement min max bound without clipping
Browse files Browse the repository at this point in the history
Signed-off-by: Owais <[email protected]>
  • Loading branch information
owaiskazi19 committed Feb 12, 2025
1 parent 3d5638b commit f0ae143
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,11 +174,11 @@ private static float normalizeSingleScore(
return SINGLE_RESULT_SCORE;
}
float normalizedScore = (score - mean) / standardDeviation;
if (normalizedScore < MIN_BOUND) {
/*if (normalizedScore < MIN_BOUND) {
normalizedScore = MIN_BOUND;
} else if (normalizedScore > MAX_BOUND) {
normalizedScore = MAX_BOUND;
}
}*/
float finalNormalizedScore = (normalizedScore - minScore) / (maxScore - minScore);
return finalNormalizedScore == 0.0f ? MIN_SCORE : finalNormalizedScore;
}
Expand Down

0 comments on commit f0ae143

Please sign in to comment.