Website lint
This commit is contained in:
parent
47f1be0702
commit
0a806b4fe2
|
@ -377,7 +377,11 @@ logScore: ({estimate: distribution, ?prior: distribution, answer: distribution|n
|
||||||
**Examples**
|
**Examples**
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
Dist.logScore({estimate: normal(5, 2), answer: normal(4.5, 1.2), prior: normal(6,4)}); // returns -0.597.57
|
Dist.logScore({
|
||||||
|
estimate: normal(5, 2),
|
||||||
|
answer: normal(4.5, 1.2),
|
||||||
|
prior: normal(6, 4),
|
||||||
|
}); // returns -0.597.57
|
||||||
```
|
```
|
||||||
|
|
||||||
## Display
|
## Display
|
||||||
|
@ -621,4 +625,4 @@ dotPow: (distributionLike, distributionLike) => distribution
|
||||||
|
|
||||||
```
|
```
|
||||||
dotExp: (distributionLike, distributionLike) => distribution
|
dotExp: (distributionLike, distributionLike) => distribution
|
||||||
```
|
```
|
||||||
|
|
|
@ -10,16 +10,18 @@ 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.
|
||||||
|
|
||||||
### fromDist
|
### fromDist
|
||||||
|
|
||||||
```
|
```
|
||||||
Sampleset.fromDist: (list<number>) => sampleSet
|
Sampleset.fromDist: (list<number>) => sampleSet
|
||||||
```
|
```
|
||||||
|
|
||||||
### fromList
|
### fromList
|
||||||
|
|
||||||
```
|
```
|
||||||
Sampleset.fromList: (list<number>) => sampleSet
|
Sampleset.fromList: (list<number>) => sampleSet
|
||||||
```
|
```
|
||||||
|
|
||||||
### fromFn
|
### fromFn
|
||||||
|
|
||||||
```
|
```
|
||||||
Sampleset.fromFn: ((float) => number) => sampleSet
|
Sampleset.fromFn: ((float) => number) => sampleSet
|
||||||
|
@ -61,4 +63,4 @@ Sampleset.map3: (sampleSet, sampleSet, sampleSet, ((number, number, number) => n
|
||||||
|
|
||||||
```
|
```
|
||||||
Sampleset.mapN: (list<sampleSet>, (list<sampleSet> => number)) => sampleSet
|
Sampleset.mapN: (list<sampleSet>, (list<sampleSet> => number)) => sampleSet
|
||||||
```
|
```
|
||||||
|
|
|
@ -7,7 +7,7 @@ title: Function
|
||||||
|
|
||||||
Adds metadata to a function of the input ranges. Works now for numeric and date inputs. This is useful when making formal predictions. It allows you to limit the domain that your prediction will be used and scored within.
|
Adds metadata to a function of the input ranges. Works now for numeric and date inputs. This is useful when making formal predictions. It allows you to limit the domain that your prediction will be used and scored within.
|
||||||
|
|
||||||
The one function that declarations currently have is that they impact plotting. If you ``declare`` a single-variable function within a specific range, this specific range will be plotted.
|
The one function that declarations currently have is that they impact plotting. If you `declare` a single-variable function within a specific range, this specific range will be plotted.
|
||||||
|
|
||||||
Declarations are currently experimental and will likely be removed or changed in the future.
|
Declarations are currently experimental and will likely be removed or changed in the future.
|
||||||
|
|
||||||
|
@ -24,4 +24,4 @@ Function.declare({
|
||||||
{min: 30, max: 100}
|
{min: 30, max: 100}
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue
Block a user