Minor changes

This commit is contained in:
Ozzie Gooen 2020-03-31 22:12:11 +01:00
parent 53675232e7
commit 34a2f28ff8
2 changed files with 17 additions and 1 deletions

View File

@ -13,6 +13,7 @@ let extImp = E.O.toExt("Should not be possible");
module T = {
type t = xyShape;
let toXyShape = (t: t): xyShape => t;
type ts = array(xyShape);
let xs = (t: t) => t.xs;
let ys = (t: t) => t.ys;

View File

@ -55,3 +55,18 @@ type triangular = {
[@bs.module "jstat"] external exponential: exponential = "exponential";
[@bs.module "jstat"] external cauchy: cauchy = "cauchy";
[@bs.module "jstat"] external triangular: triangular = "triangular";
[@bs.module "jstat"] external sum: array(float) => float = "sum";
[@bs.module "jstat"] external product: array(float) => float = "product";
[@bs.module "jstat"] external min: array(float) => float = "min";
[@bs.module "jstat"] external max: array(float) => float = "max";
[@bs.module "jstat"] external mean: array(float) => float = "mean";
[@bs.module "jstat"] external geomean: array(float) => float = "geomean";
[@bs.module "jstat"] external mode: array(float) => float = "mode";
[@bs.module "jstat"] external variance: array(float) => float = "variance";
[@bs.module "jstat"] external deviation: array(float) => float = "deviation";
[@bs.module "jstat"] external stdev: array(float) => float = "stdev";
[@bs.module "jstat"]
external quantiles: (array(float), array(float)) => float = "quantiles";
[@bs.module "jstat"]
external percentile: (array(float), array(float)) => float = "percentile";