Changed isNormalize in response to CR
This commit is contained in:
parent
2ed7d03005
commit
9febf3f182
|
@ -39,7 +39,7 @@ let integralEndY = (t: t): float =>
|
||||||
| SampleSet(_) => 1.0
|
| 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 = (
|
let toFloatOperation = (
|
||||||
t,
|
t,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user