iarray.random.binomial#

iarray.random.binomial(shape: Sequence, n: float, p: float, cfg: Optional[Config] = None, **kwargs) IArray#

Draw samples from a binomial distribution.

The cfg and kwargs parameters are the same than in random_sample().

Parameters
  • shape (Sequence) – The shape of the array to be created.

  • n (int or array_like of ints) – Parameter of the distribution, >= 0. Floats are also accepted, but they will be truncated to integers.

  • p (float) – Parameter of the distribution, >= 0 and <=1.

Returns

The new array.

Return type

IArray container

See also

random_sample

References

np.random.binomial