Exponential
self, Lambda, min=None, max=None, rng=None) Exponential(
Exponential distribution, according to the density function:
P(x | \lambda) = \lambda e^{(-\lambda x )}
Note: Lambda
is capitalized, otherwise it would be a reserved Python keyword.
Parameters
Name | Type | Description | Default |
---|---|---|---|
Lambda | float | rate parameter. | required |
min | float | minimum value (default: unlimited). | None |
max | float | maximum value (default: unlimited). | None |
rng | np.random.Generator | (optional) random number generator. If left None, np.random.default_rng() is used. |
None |
Methods
Name | Description |
---|---|
get_values | Returns a Numpy array with the given shape. |
get_values
get_values(shape)
Returns a Numpy array with the given shape.
Parameters
Name | Type | Description | Default |
---|---|---|---|
shape | tuple | shape of the array. | required |