Binomial
self, n, p, seed=None) core.Random.Binomial(
Binomial distribution.
Parameters: n trials and p probability of success where n an integer >= 0 and p is in the interval [0,1].
The returned values are the number of successes over the n trials.
Parameters
Name | Type | Description | Default |
---|---|---|---|
n | int | Number of trials. | required |
p | float | Probability of success. | required |
seed | int | (optional) seed for the random generator. If left None, the value set in ann.setup() is used. |
None |
Methods
Name | Description |
---|---|
get_values | Returns a Numpy array with the given shape. |
get_values
core.Random.Binomial.get_values(shape)
Returns a Numpy array with the given shape.
Parameters
Name | Type | Description | Default |
---|---|---|---|
shape | tuple | Shape of the array. | required |
Returns
Name | Type | Description |
---|---|---|
np.ndarray | Array. |