Open MGatner opened 2 years ago
Interesting.
The reason we have negative scores come from this line.
For instance, by changing the code like below we won't have negative values anymore, but the maximum score will be 1.414
(square root of 2) instead of 1
.
- return \round(1 - $distanceFromTopRightCorner, 3);
+ return \round(\sqrt(2) - $distanceFromTopRightCorner, 3);
If we want to have a score between 0 and 1, a better solution would probably be to apply this formula.
How about your alternative equation divided by 1.414
?
It sounds more simple indeed 😅
filesToShow
whenminScoreToShow
was0
. It turns out some scores are coming back negative:I know score is a somewhat-contrived calculation based on the actual value columns... but how does a negative make sense?