From 9c29a7048ac4dee7544ad0c7c8a9c3efc1ace192 Mon Sep 17 00:00:00 2001 From: Quinn Dougherty Date: Wed, 27 Apr 2022 11:50:24 -0400 Subject: [PATCH] Added `toPointSet` and `toSampleSet` to functions reference Value: [0.004 to 0.089] --- .prettierignore | 1 + packages/website/docs/Features/Functions.mdx | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/.prettierignore b/.prettierignore index 8a670c22..54df33a4 100644 --- a/.prettierignore +++ b/.prettierignore @@ -10,3 +10,4 @@ packages/squiggle-lang/lib packages/squiggle-lang/.nyc_output/ packages/squiggle-lang/coverage/ packages/squiggle-lang/.cache/ +packages/website/build/ diff --git a/packages/website/docs/Features/Functions.mdx b/packages/website/docs/Features/Functions.mdx index bc8be820..e37ea315 100644 --- a/packages/website/docs/Features/Functions.mdx +++ b/packages/website/docs/Features/Functions.mdx @@ -305,6 +305,16 @@ The `sample(distribution)` samples a given distribution. +## Converting between distribution formats + +Recall the [three formats of distributions](https://develop--squiggle-documentation.netlify.app/docs/Discussions/Three-Types-Of-Distributions). We can force any distribution into `SampleSet` format + + + +Or `PointSet` format + + + ## Normalization Some distribution operations (like horizontal shift) return an unnormalized distriibution.