Changed isNormalize in response to CR

This commit is contained in:
Ozzie Gooen 2022-04-15 16:28:51 -04:00
parent 2ed7d03005
commit 9febf3f182

View File

@ -39,7 +39,7 @@ let integralEndY = (t: t): float =>
| SampleSet(_) => 1.0
}
let isNormalized = (t: t): bool => integralEndY(t) == 1.0
let isNormalized = (t: t): bool => Js.Math.abs_float(integralEndY(t) -. 1.0) < 1e-7
let toFloatOperation = (
t,