distributions#
Define random-number-safe distributions.
Classes
Class for managing a collection of Dist objects |
|
Base class for tracking one random number generator associated with one distribution, i.e. one decision per timestep. |
|
Random distribution, with values on the interval (0, 1) |
|
Uniform distribution, values on interval (low, high) |
|
Normal distribution |
|
Lognormal distribution, parameterized in terms of the "explicit" (lognormal) distribution, with mean=mean and std=std for this distribution (see lognorm_im for comparison). |
|
Lognormal distribution, parameterized in terms of the "implicit" (normal) distribution, with mean=loc and std=scale (see lognorm_ex for comparison). |
|
Exponential distribution |
|
Poisson distribution |
|
Negative binomial distribution |
|
Weibull distribution (specifically, scipy.stats.weibull_min) |
|
Gamma distribution (specifically, scipy.stats.gamma) |
|
Constant (delta) distribution: equivalent to np.full() |
|
Random integer distribution, on the interval [low, high) |
|
Directly sample raw integers (uint64) from the random number generator. |
|
Bernoulli distribution: return True or False with the specified probability (which can be an array) |
|
Random choice between discrete options (note: dynamic parameters not supported) |
|
Sample from a histogram with defined bins |
|
A class for holding two or more ss.random() distributions, and generating random numbers linked to each of them. |
Functions
Link distributions to the sim and the module; used in module.init() and people.init() |
|
Make a distribution from a dictionary |