This commit is contained in:
Roman Galochkin 2020-02-21 15:25:08 +03:00
parent 961db72adf
commit ff13b144e6
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,7 @@
module type Config = {let shape: DistributionTypes.xyShape;};
module Make = (Config: Config) => {
let validateHasLength = (): bool => Array.length(Config.shape.xs) > 0;
let validateSize = (): bool =>
Array.length(Config.shape.xs) == Array.length(Config.shape.ys);
};

View File

@ -0,0 +1,8 @@
module CDFConfig = {
let shape: DistributionTypes.xyShape = {
xs: [|1., 4., 8.|],
ys: [|8., 9., 2.|],
};
};
module CDF = CDFunctor.Make(CDFConfig);