Update Language.md

This commit is contained in:
Ozzie Gooen 2022-02-10 21:55:01 -05:00 committed by GitHub
parent eaa7a67d28
commit 5b5fac624b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,16 +13,10 @@ lognormalFromMeanAndStdDev(mean, stdev)
beta(a,b) beta(a,b)
exponential(a) exponential(a)
triangular(a,b,c) triangular(a,b,c)
mm(a,b,c, [1,2,3]) mm(a,b,c, [1,2,3]) //todo: change to mix, or mx(). Also, change input format, maybe to mx([a,b,c], [a,b,c]).
cauchy() //todo cauchy() //todo
pareto() //todo pareto() //todo
``` metalog() //todo
## Functions
```js
trunctate() //todo
leftTrunctate() //todo
rightTrunctate()//todo
``` ```
## Functions ## Functions
@ -35,6 +29,16 @@ sample(distribution)
scaleExp(distribution, float) scaleExp(distribution, float)
scaleMultiply(distribution, float) scaleMultiply(distribution, float)
scaleLog(distribution, float) scaleLog(distribution, float)
samples(distribution, n) //todo
toPdf(distribution) //todo
toCdf(distribution) //todo
toHash(distribution) //todo. Make hash of content, like, {xs:[], ys:[]}
trunctate(distribution, leftValue, rightValue) //todo
leftTrunctate(distribution, leftValue) //todo
rightTrunctate(distribution, rightValue) //todo
distributionFromSamples(array, params) //todo
distributionFromPoints() //todo
distributionFromHash() //todo
``` ```
## Example Functions ## Example Functions
@ -58,4 +62,4 @@ gdp_per_person(t) = us_economy(t)/us_population(t)
gdp_per_person gdp_per_person
gdp_per_person gdp_per_person
``` ```