Fixes CdfLibrary.js

This commit is contained in:
Roman Galochkin 2020-02-25 13:16:27 +03:00
parent 9349930ad8
commit 51aa8d82d9

View File

@ -8,7 +8,6 @@ let interpolate =
yMin *. minProportion +. yMax *. maxProportion;
};
// @todo: To test!
let sum = Belt.Array.reduce(_, 0., (i, j) => i +. j);
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);