open ForetoldComponents.Base; let data: DistributionTypes.xyShape = { xs: [|1., 10., 10., 200., 250., 292., 330.|], ys: [|0.0, 0.0, 0.1, 0.3, 0.5, 0.2, 0.1|], }; let mixedDist = GenericDistribution.make( ~generationSource= GuesstimatorString("mm(uniform(10,12), normal(5,1), [.5,.5])"), ~probabilityType=Pdf, ~domain=Complete, ~unit=Unspecified, (), ) |> GenericDistribution.renderIfNeeded(~sampleCount=1000); let timeDist = GenericDistribution.make( ~generationSource=GuesstimatorString("mm(3, normal(5,1), [.5,.5])"), ~probabilityType=Pdf, ~domain=Complete, ~unit=Time({zero: MomentRe.momentNow(), unit: `years}), (), ) |> GenericDistribution.renderIfNeeded(~sampleCount=1000); let domainLimitedDist = GenericDistribution.make( ~generationSource=GuesstimatorString("mm(3, normal(5,1), [.5,.5])"), ~probabilityType=Pdf, ~domain=RightLimited({xPoint: 6.0, excludingProbabilityMass: 0.3}), ~unit=Unspecified, (), ) |> GenericDistribution.renderIfNeeded(~sampleCount=1000); let distributions = () =>