squiggle/src/distPlus/renderers/samplesRenderer/Guesstimator.re
2020-04-05 07:36:14 +01:00

13 lines
305 B
ReasonML

[@bs.deriving abstract]
type discrete = {
xs: array(float),
ys: array(float),
};
let jsToDistDiscrete = (d: discrete): DistTypes.discreteShape => {
xs: xsGet(d),
ys: ysGet(d),
};
[@bs.module "./GuesstimatorLibrary.js"]
external stringToSamples: (string, int) => array(float) = "stringToSamples";