39 lines
574 B
Markdown
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)
|
||
|
```
|