squiggle/packages/website/docs/Language.md
2022-02-06 14:48:21 -05:00

574 B

sidebar_position
2

Squiggle Language

Distributions

normal(a,b)
uniform(a,b)
lognormal(a,b)
lognormalFromMeanAndStdDev(mean, stdev)
beta(a,b)
exponential(a)
triangular(a,b,c)
mm(a,b,c, [1,2,3])
cauchy() //todo
pareto() //todo

Functions

trunctate() //todo
leftTrunctate() //todo
rightTrunctate()//todo

Functions

pdf(distribution, float)
inv(distribution, float)
cdf(distribution, float)
mean(distribution)
sample(distribution)
scaleExp(distribution, float)
scaleMultiply(distribution, float)
scaleLog(distribution, float)