From 5b5fac624b888bd2d310953ce92f79cbedfac234 Mon Sep 17 00:00:00 2001 From: Ozzie Gooen Date: Thu, 10 Feb 2022 21:55:01 -0500 Subject: [PATCH] Update Language.md --- packages/website/docs/Language.md | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/packages/website/docs/Language.md b/packages/website/docs/Language.md index bd6ea312..eb360ca0 100644 --- a/packages/website/docs/Language.md +++ b/packages/website/docs/Language.md @@ -13,16 +13,10 @@ lognormalFromMeanAndStdDev(mean, stdev) beta(a,b) exponential(a) 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 pareto() //todo -``` - -## Functions -```js -trunctate() //todo -leftTrunctate() //todo -rightTrunctate()//todo +metalog() //todo ``` ## Functions @@ -35,6 +29,16 @@ sample(distribution) scaleExp(distribution, float) scaleMultiply(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 @@ -58,4 +62,4 @@ gdp_per_person(t) = us_economy(t)/us_population(t) gdp_per_person gdp_per_person -``` \ No newline at end of file +```