From eaa1f6055563b45dcc22eb2f2179dc584f6bb2f2 Mon Sep 17 00:00:00 2001 From: Umur Ozkul Date: Sat, 27 Aug 2022 20:12:36 +0200 Subject: [PATCH] ForTS_Dsitribution, proxies for DistributionOperation.Constructors --- .../ForTS_Distribution/ForTS_Distribution.res | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/packages/squiggle-lang/src/rescript/ForTS/ForTS_Distribution/ForTS_Distribution.res b/packages/squiggle-lang/src/rescript/ForTS/ForTS_Distribution/ForTS_Distribution.res index ca4c02ad..887d6323 100644 --- a/packages/squiggle-lang/src/rescript/ForTS/ForTS_Distribution/ForTS_Distribution.res +++ b/packages/squiggle-lang/src/rescript/ForTS/ForTS_Distribution/ForTS_Distribution.res @@ -55,3 +55,21 @@ let getSymbolic = (variant: distribution): option => | Symbolic(dist) => dist->Some | _ => None } + +@genType +let mean = DistributionOperation.Constructors.mean + +@genType +let stdev = DistributionOperation.Constructors.stdev +@genType +let variance = DistributionOperation.Constructors.variance +@genType +let sample = DistributionOperation.Constructors.sample +@genType +let cdf = DistributionOperation.Constructors.cdf +@genType +let inv = DistributionOperation.Constructors.inv +@genType +let pdf = DistributionOperation.Constructors.pdf +@genType +let normalize = DistributionOperation.Constructors.normalize