- Source:
Methods
(static) getCDF(proportion) → {Array.<number>}
Make a cumulative distribution function CDF for a set of proportions.
Parameters:
Name | Type | Description |
---|---|---|
proportion |
Array.<number> | Doesn't have to add to 1. Will normalize. |
- Source:
Returns:
cdf - Use with randomIndexFromCDF
- Type
- Array.<number>