bundles / numpy 2.4.4 / numpy / random / RandomState / standard_exponential
cython_function_or_method
numpy.random:RandomState.standard_exponential
Signature
def standard_exponential ( size = None ) Summary
Draw samples from the standard exponential distribution.
Extended Summary
standard_exponential is identical to the exponential distribution with a scale parameter of 1.
Parameters
size: int or tuple of ints, optionalOutput shape. If the given shape is, e.g.,
(m, n, k), thenm * n * ksamples are drawn. Default is None, in which case a single value is returned.
Returns
out: float or ndarrayDrawn samples.
Examples
Output a 3x8000 array:n = np.random.standard_exponential((3, 8000))
✓See also
- random.Generator.standard_exponential
which should be used for new code.
Aliases
-
numpy.random.standard_exponential -
numpy.random.RandomState.standard_exponential