Ran formatter

This commit is contained in:
Ozzie Gooen 2022-06-14 16:47:31 -07:00
parent 1d4aea2731
commit 605afc03cc
4 changed files with 10 additions and 8 deletions

View File

@ -2,8 +2,9 @@
sidebar_position: 4 sidebar_position: 4
title: Point Set Distribution title: Point Set Distribution
--- ---
:::danger :::danger
These functions aren't yet implemented with these specific names. This should be changed soon These functions aren't yet implemented with these specific names. This should be changed soon
::: :::
Point set distributions are one of the three distribution formats. They are stored as a list of x-y coordinates representing both discrete and continuous distributions. Point set distributions are one of the three distribution formats. They are stored as a list of x-y coordinates representing both discrete and continuous distributions.

View File

@ -2,13 +2,14 @@
sidebar_position: 5 sidebar_position: 5
title: Sample Set Distribution title: Sample Set Distribution
--- ---
:::danger :::danger
These functions aren't yet implemented with these specific names. This should be added soon. These functions aren't yet implemented with these specific names. This should be added soon.
::: :::
Sample set distributions are one of the three distribution formats. Internally, they are stored as a list of numbers. It's useful to distinguish point set distributions from arbitrary lists of numbers to make it clear which functions are applicable. Sample set distributions are one of the three distribution formats. Internally, they are stored as a list of numbers. It's useful to distinguish point set distributions from arbitrary lists of numbers to make it clear which functions are applicable.
Monte Carlo calculations typically result in sample set distributions. Monte Carlo calculations typically result in sample set distributions.
All regular distribution function work on sample set distributions. In addition, there are several functions that only work on sample set distributions. All regular distribution function work on sample set distributions. In addition, there are several functions that only work on sample set distributions.
@ -44,7 +45,7 @@ SampleSet.map3: (sampleSet, sampleSet, sampleSet, ((number, number, number) => n
SampleSet.toList: (sampleSet) => list<number> SampleSet.toList: (sampleSet) => list<number>
``` ```
Gets the internal samples of a sampleSet distribution. This is separate from the sampleN() function, which would shuffle the samples. toList() maintains order and length. Gets the internal samples of a sampleSet distribution. This is separate from the sampleN() function, which would shuffle the samples. toList() maintains order and length.
**Examples** **Examples**

View File

@ -6,12 +6,12 @@ title: List
Squiggle lists are a lot like Python lists or Ruby arrays. They accept all types. Squiggle lists are a lot like Python lists or Ruby arrays. They accept all types.
```javascript ```javascript
myList = [3, normal(5,2), "random"] myList = [3, normal(5, 2), "random"];
``` ```
### make ### make
**Note: currently just called ``makeList``, without the preix** **Note: currently just called `makeList`, without the preix**
``` ```
List.make: (number, 'a) => list<'a> List.make: (number, 'a) => list<'a>
@ -39,7 +39,7 @@ length: (list<'a>) => number
### up to ### up to
**Note: currently just called ``upTo``, without the preix** **Note: currently just called `upTo`, without the preix**
``` ```
List.upTo: (low:number, high:number) => list<number> List.upTo: (low:number, high:number) => list<number>

View File

@ -3,7 +3,7 @@ sidebar_position: 9
title: Number title: Number
--- ---
Squiggle ``numbers`` are Javascript floats. Squiggle `numbers` are Javascript floats.
Many of the functions below work on lists or pairs of numbers. Many of the functions below work on lists or pairs of numbers.