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

39 lines
574 B
Markdown

---
sidebar_position: 2
---
# Squiggle Language
## Distributions
```js
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
```js
trunctate() //todo
leftTrunctate() //todo
rightTrunctate()//todo
```
## Functions
```js
pdf(distribution, float)
inv(distribution, float)
cdf(distribution, float)
mean(distribution)
sample(distribution)
scaleExp(distribution, float)
scaleMultiply(distribution, float)
scaleLog(distribution, float)
```