Gamma
self, alpha, beta=1.0, min=None, max=None, seed=None) core.Random.Gamma(
Gamma distribution.
Parameters
Name | Type | Description | Default |
---|---|---|---|
alpha | float | Shape of the gamma distribution. | required |
beta | float | Scale of the gamma distribution. | 1.0 |
min | float | Minimum value returned (default: unlimited). | None |
max | float | Maximum value returned (default: unlimited). | None |
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.Gamma.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. |