45 lines
975 B
Markdown
45 lines
975 B
Markdown
---
|
|
sidebar_position: 5
|
|
title: Sample Set Distribution
|
|
---
|
|
|
|
### make
|
|
|
|
```
|
|
SampleSet.make: (distribution) => sampleSet
|
|
SampleSet.make: (() => number) => sampleSet
|
|
SampleSet.make: (list<number>) => sampleSet
|
|
```
|
|
|
|
### map
|
|
|
|
```
|
|
SampleSet.map: (sampleSet, (number => number)) => sampleSet
|
|
```
|
|
|
|
### map2
|
|
|
|
```
|
|
SampleSet.map2: (sampleSet, sampleSet, ((number, number) => number)) => sampleSet
|
|
```
|
|
|
|
### map3
|
|
|
|
```
|
|
SampleSet.map3: (sampleSet, sampleSet, sampleSet, ((number, number, number) => number)) => sampleSet
|
|
```
|
|
|
|
### toList
|
|
|
|
```
|
|
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**
|
|
|
|
```
|
|
toList(toSampleSet(normal(5,2)))
|
|
```
|