13 lines
305 B
ReasonML
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"; |