Commit 6ffa0e3c authored by Fabien  MAREUIL's avatar Fabien MAREUIL
Browse files

inverse score

parent 5788ece5
Pipeline #47329 passed with stages
in 19 minutes and 56 seconds
...@@ -265,7 +265,7 @@ def get_zscore(distance, avg_std): ...@@ -265,7 +265,7 @@ def get_zscore(distance, avg_std):
value_max = avg_std.average + (avg_std.average - avg_std.minimum) value_max = avg_std.average + (avg_std.average - avg_std.minimum)
if distance > value_max: if distance > value_max:
distance = value_max distance = value_max
score = (distance - avg_std.minimum) / (value_max - avg_std.minimum) score = 1 - (distance - avg_std.minimum) / (value_max - avg_std.minimum)
return score return score
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment