sampling#
Sample distributions, either from real world data or from uniform distributions.
Functions
Check whether counts match the expected distribution. |
|
Alias to check_dist(dist='normal') |
|
Alias to check_dist(dist='poisson') |
|
test if data fits in truncated poisson distribution between upperbound and lowerbound using kstest :type testdata: :param testdata: data to be tested :type testdata: array :type mu: :param mu: expected mean for the poisson distribution :type mu: float :type lowerbound: :param lowerbound: lowerbound for truncation :type lowerbound: float :type upperbound: :param upperbound: upperbound for truncation :type upperbound: float |
|
Choose an option -- quickly -- from the provided weights. |
|
Resample age from single year age distribution. |
|
Sample from a distribution from min_val to max_val, inclusive. |
|
Sample from a distribution. |
|
Sample from a distribution. |
|
Reset the random seed -- complicated because of Numba. |
|
Perform statistical checks for expected and actual data based on the null hypothesis that expected and actual distributions are identical. |