Skip to content

CategoricalOptions

Defined in: src/distribution/discrete/bernoulli.ts:63

Every distribution accepts an engine, defaulting to the global instance.

optional engine?: EngineLike

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

DistributionOptions.engine


weights: ArrayLike<number>

Defined in: src/distribution/discrete/bernoulli.ts:65

Relative weights. They need not sum to 1.