Adds a key / value pair to a Distribution. Will add to the source distribution by default, unless the distribution only has normalized values.
Key to be added.
Value of the key to add.
Adds an object of values to a Distribution. Will add to the source distribution by default, unless the distribution only has normalized values.
An object containing additions.
Creates a clone of a Distribution instance.
If true this will strip out the source.
Picks one more values from a Distribution without exclusion. If you just need to pick one value, you should use pickOne instead.
The number of picks to make (default 1).
A mask containing keys in the distribution that should be ignored.
If true picks are considered exclusive and are removed.
Picks a single value from a Distribution. If you are picking multiple values, use pick instead.
A mask containing keys in the distribution that should be ignored.
Removes a key or array of keys from a Distribution and renormalizes.
Key or Keys to be removed.
Serializes a Distribution instance into a data transfer object.
If true this will strip out the source.
Applies a DTO's data to the source and normal distributions.
A Distribution data transfer object.
Adds a key / value pair to a Distribution. Will add to the source distribution by default, unless the distribution only has normalized values.
A Distribution data transfer object.
Key to be added.
Value of the key to add.
Adds a key / value pair to a normal distribution and renormalizes it. If a source distribution exists, it will be recalculated based off of the new normal distribution.
A Distribution data transfer object.
Key to be added.
Value of the key to add.
Adds an object of values to a normal Distribution and renormalizes it. If a source distribution exists, it will be recalculated by scaling the new normal distribution to fit its sum.
A Distribution data transfer object.
An object containing additions.
Adds a key / value pair to a distribution's source and renormalizes it. If a source distribution exists, it will be recalculated based off of the new normal distribution.
A Distribution data transfer object.
Key to be added.
Value of the key to add.
Adds an object of values to a Distribution's source and renormalizes it.
A Distribution data transfer object.
An object containing additions.
Adds an object of values to a Distribution. Will add to the source distribution by default, unless the distribution only has normalized values.
A Distribution data transfer object.
An object containing additions.
Creates a clone of a Distribution DTO.
A Distribution data transfer object.
If true this will strip out the source.
Initializes a new DistributionSourceDTO.
An optional source of values to generate the distribution from.
Picks one more values from a Distribution without exclusion. If you just need to pick one value, you should use pickOne instead.
A Distribution data transfer object.
The number of picks to make (default 1).
A mask containing keys in the distribution that should be ignored.
If true picks are considered exclusive and are removed.
A Random engine. This is created if not provided.
Picks a single value from a Distribution. If you are picking multiple values, use pick instead.
A Distribution data transfer object.
A mask containing keys in the distribution that should be ignored.
A Random engine. This is created if not provided.
Removes a key or array of keys from a Distribution and renormalizes.
A Distribution data transfer object.
Key or Keys to be removed.
Generated using TypeDoc
Class