Methods
(inner) randomInsideGaussian(X, Y, R) → {object}
Two samples from gaussian around center with stdev scaled to R.
Parameters:
Name | Type | Description |
---|---|---|
X |
number | center.x |
Y |
number | center.y |
R |
number | radius = stdev * sqrt(2) |
Returns:
point
- Type
- object
(inner) randomStandardNormal() → {Array.<number>}
Marsaglia Method
https://www.alanzucconi.com/2015/09/16/how-to-sample-from-a-gaussian-distribution/
Returns:
Two samples from Random standard normal with mean 0 and stdev 1.
- Type
- Array.<number>