pysted.utils.approx_binomial
- pysted.utils.approx_binomial(n, p, size=None)
Sample (64-bit) from a binomial distribution using the normal approximation.
- Parameters:
n – The number of trials (int or array of ints).
p – The probability of success (float).
size – The shape of the output (int or tuple of ints, optional).
- Returns:
64-bit int or array of 64-bit ints.