2020-02-20 12:54:45 +00:00
|
|
|
// "mm(floor(uniform(30,35)), normal(50,20), [.25,.5])",
|
2020-02-17 22:53:39 +00:00
|
|
|
let timeDist =
|
2020-02-23 12:49:33 +00:00
|
|
|
DistPlusIngredients.make(
|
|
|
|
~guesstimatorString="mm(floor(normal(30,2)), normal(39,1), [.5,.5])",
|
2020-02-17 22:53:39 +00:00
|
|
|
~domain=Complete,
|
2020-02-20 12:54:45 +00:00
|
|
|
~unit=TimeDistribution({zero: MomentRe.momentNow(), unit: `days}),
|
2020-02-17 22:53:39 +00:00
|
|
|
(),
|
|
|
|
)
|
2020-02-23 12:49:33 +00:00
|
|
|
|> DistPlusIngredients.toDistPlus(~sampleCount=1000);
|
2020-02-17 22:53:39 +00:00
|
|
|
|
|
|
|
let distributions = () =>
|
2020-02-17 21:52:21 +00:00
|
|
|
<div>
|
|
|
|
<div>
|
2020-02-19 22:28:16 +00:00
|
|
|
<h2> {"Basic Mixed Distribution" |> ReasonReact.string} </h2>
|
2020-02-24 16:39:55 +00:00
|
|
|
{timeDist
|
|
|
|
|> E.O.fmap(
|
|
|
|
Distributions.DistPlus.T.scaleToIntegralSum(~intendedSum=1.0),
|
|
|
|
)
|
|
|
|
|> E.O.React.fmapOrNull(distPlus => <DistPlusPlot distPlus />)}
|
2020-02-19 22:28:16 +00:00
|
|
|
<h2> {"Simple Continuous" |> ReasonReact.string} </h2>
|
|
|
|
</div>
|
2020-02-17 21:52:21 +00:00
|
|
|
</div>;
|
|
|
|
|
2020-02-17 22:53:39 +00:00
|
|
|
let entry = EntryTypes.(entry(~title="Pdf", ~render=distributions));
|