squiggle/packages/website/docs/Language.md

39 lines
574 B
Markdown
Raw Normal View History

2022-02-06 18:40:28 +00:00
---
2022-02-09 15:22:51 +00:00
sidebar_position: 1
2022-02-06 18:40:28 +00:00
---
# 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)
```