Fixes CdfLibrary.js
This commit is contained in:
parent
9349930ad8
commit
51aa8d82d9
|
@ -8,7 +8,6 @@ let interpolate =
|
||||||
yMin *. minProportion +. yMax *. maxProportion;
|
yMin *. minProportion +. yMax *. maxProportion;
|
||||||
};
|
};
|
||||||
|
|
||||||
// @todo: To test!
|
|
||||||
let sum = Belt.Array.reduce(_, 0., (i, j) => i +. j);
|
let sum = Belt.Array.reduce(_, 0., (i, j) => i +. j);
|
||||||
let mean = a => sum(a) /. (Array.length(a) |> float_of_int);
|
let mean = a => sum(a) /. (Array.length(a) |> float_of_int);
|
||||||
let min = a => Belt.Array.reduce(a, a[0], (i, j) => i < j ? i : j);
|
let min = a => Belt.Array.reduce(a, a[0], (i, j) => i < j ? i : j);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user