Fixed test page
This commit is contained in:
parent
58c6c165f3
commit
8b5393cd8f
|
@ -22,27 +22,27 @@ let setup = dist =>
|
||||||
|> RenderTypes.DistPlusRenderer.Outputs.distplus
|
|> RenderTypes.DistPlusRenderer.Outputs.distplus
|
||||||
|> E.O.React.fmapOrNull(distPlus => <DistPlusPlot distPlus />);
|
|> E.O.React.fmapOrNull(distPlus => <DistPlusPlot distPlus />);
|
||||||
|
|
||||||
// let simpleExample = (name, guesstimatorString) =>
|
let simpleExample = (name, guesstimatorString) =>
|
||||||
// <>
|
<>
|
||||||
// <h3 className="text-gray-600 text-lg font-bold">
|
<h3 className="text-gray-600 text-lg font-bold">
|
||||||
// {name |> ReasonReact.string}
|
{name |> ReasonReact.string}
|
||||||
// </h3>
|
</h3>
|
||||||
// {setup(DistPlusIngredients.make(~guesstimatorString, ()))}
|
{setup(RenderTypes.DistPlusRenderer.Ingredients.make(~guesstimatorString, ()))}
|
||||||
// </>;
|
</>;
|
||||||
|
|
||||||
// let timeExample = (name, guesstimatorString) =>
|
let timeExample = (name, guesstimatorString) =>
|
||||||
// <>
|
<>
|
||||||
// <h3 className="text-gray-600 text-lg font-bold">
|
<h3 className="text-gray-600 text-lg font-bold">
|
||||||
// {name |> ReasonReact.string}
|
{name |> ReasonReact.string}
|
||||||
// </h3>
|
</h3>
|
||||||
// {setup(
|
{setup(
|
||||||
// DistPlusIngredients.make(
|
RenderTypes.DistPlusRenderer.Ingredients.make(
|
||||||
// ~guesstimatorString,
|
~guesstimatorString,
|
||||||
// ~unit=TimeDistribution({zero: MomentRe.momentNow(), unit: `years}),
|
~unit=TimeDistribution({zero: MomentRe.momentNow(), unit: `years}),
|
||||||
// (),
|
(),
|
||||||
// ),
|
),
|
||||||
// )}
|
)}
|
||||||
// </>;
|
</>;
|
||||||
|
|
||||||
let distributions = () =>
|
let distributions = () =>
|
||||||
<div>
|
<div>
|
||||||
|
@ -50,37 +50,37 @@ let distributions = () =>
|
||||||
<h2 className="text-gray-800 text-xl font-bold">
|
<h2 className="text-gray-800 text-xl font-bold">
|
||||||
{"Initial Section" |> ReasonReact.string}
|
{"Initial Section" |> ReasonReact.string}
|
||||||
</h2>
|
</h2>
|
||||||
// {simpleExample("Continuous", "5 to 20")}
|
{simpleExample("Continuous", "5 to 20")}
|
||||||
// {simpleExample("Continuous, wide range", "1 to 1000000")}
|
{simpleExample("Continuous, wide range", "1 to 1000000")}
|
||||||
// {simpleExample("Continuous, tiny values", "0.000000001 to 0.00000001")}
|
{simpleExample("Continuous, tiny values", "0.000000001 to 0.00000001")}
|
||||||
// {simpleExample(
|
{simpleExample(
|
||||||
// "Continuous large values",
|
"Continuous large values",
|
||||||
// "50000000000000 to 200000000000000000",
|
"50000000000000 to 200000000000000000",
|
||||||
// )}
|
)}
|
||||||
// {simpleExample("Discrete", "floor(10 to 20)")}
|
{simpleExample("Discrete", "floor(10 to 20)")}
|
||||||
// {simpleExample(
|
{simpleExample(
|
||||||
// "Discrete and below 0, normal(10,30)",
|
"Discrete and below 0, normal(10,30)",
|
||||||
// "floor(normal(10,30))",
|
"floor(normal(10,30))",
|
||||||
// )}
|
)}
|
||||||
// {simpleExample("Discrete, wide range", "floor(10 to 200000)")}
|
{simpleExample("Discrete, wide range", "floor(10 to 200000)")}
|
||||||
// {simpleExample("Mixed", "mm(5 to 20, floor(20 to 30), [.5,.5])")}
|
{simpleExample("Mixed", "mm(5 to 20, floor(20 to 30), [.5,.5])")}
|
||||||
// {simpleExample("Mixed, Early-Discrete Point", "mm(1, 5 to 20, [.5,.5])")}
|
{simpleExample("Mixed, Early-Discrete Point", "mm(1, 5 to 20, [.5,.5])")}
|
||||||
// {simpleExample(
|
{simpleExample(
|
||||||
// "Mixed, Two-Discrete Points",
|
"Mixed, Two-Discrete Points",
|
||||||
// "mm(0,10, 5 to 20, [.5,.5,.5])",
|
"mm(0,10, 5 to 20, [.5,.5,.5])",
|
||||||
// )}
|
)}
|
||||||
// <h2 className="text-gray-800 text-xl font-bold">
|
<h2 className="text-gray-800 text-xl font-bold">
|
||||||
// {"Over Time" |> ReasonReact.string}
|
{"Over Time" |> ReasonReact.string}
|
||||||
// </h2>
|
</h2>
|
||||||
// {timeExample("Continuous", "5 to 20")}
|
{timeExample("Continuous", "5 to 20")}
|
||||||
// {timeExample("Continuous Over Long Period", "500 to 200000")}
|
{timeExample("Continuous Over Long Period", "500 to 200000")}
|
||||||
// {timeExample("Continuous Over Short Period", "0.0001 to 0.001")}
|
{timeExample("Continuous Over Short Period", "0.0001 to 0.001")}
|
||||||
// {timeExample(
|
{timeExample(
|
||||||
// "Continuous Over Very Long Period",
|
"Continuous Over Very Long Period",
|
||||||
// "500 to 20000000000000",
|
"500 to 20000000000000",
|
||||||
// )}
|
)}
|
||||||
// {timeExample("Discrete", "floor(5 to 20)")}
|
{timeExample("Discrete", "floor(5 to 20)")}
|
||||||
// {timeExample("Mixed", "mm(5 to 20, floor(5 to 20), [.5,.5])")}
|
{timeExample("Mixed", "mm(5 to 20, floor(5 to 20), [.5,.5])")}
|
||||||
</div>
|
</div>
|
||||||
</div>;
|
</div>;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user