RandomState.negative_binomial()
numpy.random.RandomState.negative_binomial
-
RandomState.negative_binomial(n, p, size=None)
-
Draw samples from a negative binomial distribution.
Samples are drawn from a negative binomial distribution with specified parameters,
n
trials andp
probability of success wheren
is an integer > 0 andp
is in the interval [0, 1].Parameters: n : int
Parameter, > 0.
p : float
Parameter, >= 0 and <=1.
size : int or tuple of ints, optional
Output shape. If the given shape is