RandomState.standard_exponential(size=None)
Draw samples from the standard exponential distribution.
standard_exponential
is identical to the exponential distribution with a scale parameter of 1.
Parameters: |
size : int or tuple of ints, optional Output shape. If the given shape is, e.g., |
---|---|
Returns: |
out : float or ndarray Drawn samples. |
Output a 3x8000 array:
>>> n = np.random.standard_exponential((3, 8000))
© 2008–2017 NumPy Developers
Licensed under the NumPy License.
https://docs.scipy.org/doc/numpy-1.14.2/reference/generated/numpy.random.RandomState.standard_exponential.html