CategoricalOptions
Defined in: src/distribution/discrete/bernoulli.ts:63
Every distribution accepts an engine, defaulting to the global instance.
Extends
Section titled “Extends”Properties
Section titled “Properties”engine?
Section titled “engine?”
optionalengine?:EngineLike
Defined in: src/distribution/sampler.ts:8
Inherited from
Section titled “Inherited from”weights
Section titled “weights”weights:
ArrayLike<number>
Defined in: src/distribution/discrete/bernoulli.ts:65
Relative weights. They need not sum to 1.