Skip to content

Commit

Permalink
Fixed the evaluation of NormContinuous elements
Browse files Browse the repository at this point in the history
  • Loading branch information
vruusmann committed Oct 12, 2024
1 parent a665463 commit 212333a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,14 @@ public <V extends Number> Value<V> normalize(NormContinuous normContinuous, Valu
if(value.compareTo(startOrig) < 0){
Number startNorm = start.requireNorm();

return value.restrict(startNorm, Double.POSITIVE_INFINITY);
return value.reset(startNorm);
} else

// "Map to the value of the last interval"
{
Number endNorm = end.requireNorm();

return value.restrict(Double.NEGATIVE_INFINITY, endNorm);
return value.reset(endNorm);
}
default:
throw new UnsupportedAttributeException(normContinuous, outlierTreatmentMethod);
Expand Down

0 comments on commit 212333a

Please sign in to comment.