Skip to content

NumberSampler

Defined in: src/distribution/sampler.ts:18

The numeric case, which knows its own moments and fills a typed array.

readonly mean: number

Defined in: src/distribution/sampler.ts:22

Population mean, or NaN where it is undefined (Cauchy, for example).


readonly variance: number

Defined in: src/distribution/sampler.ts:24

Population variance, or NaN/Infinity where it is undefined.

sample(): number

Defined in: src/distribution/sampler.ts:19

number


samples(n): Float64Array

Defined in: src/distribution/sampler.ts:20

number

Float64Array