@@ -1574,7 +1574,8 @@ cdef class RandomState:
1574
1574
loc : float or array_like of floats
1575
1575
Mean ("centre") of the distribution.
1576
1576
scale : float or array_like of floats
1577
- Standard deviation (spread or "width") of the distribution.
1577
+ Standard deviation (spread or "width") of the distribution. Must be
1578
+ non-negative.
1578
1579
size : int or tuple of ints, optional
1579
1580
Output shape. If the given shape is, e.g., ``(m, n, k)``, then
1580
1581
``m * n * k`` samples are drawn. If size is ``None`` (default),
@@ -1746,7 +1747,8 @@ cdef class RandomState:
1746
1747
Parameters
1747
1748
----------
1748
1749
scale : float or array_like of floats
1749
- The scale parameter, :math:`\\ beta = 1/\\ lambda`.
1750
+ The scale parameter, :math:`\\ beta = 1/\\ lambda`. Must be
1751
+ non-negative.
1750
1752
size : int or tuple of ints, optional
1751
1753
Output shape. If the given shape is, e.g., ``(m, n, k)``, then
1752
1754
``m * n * k`` samples are drawn. If size is ``None`` (default),
@@ -1828,7 +1830,7 @@ cdef class RandomState:
1828
1830
Parameters
1829
1831
----------
1830
1832
shape : float or array_like of floats
1831
- Parameter, should be > 0 .
1833
+ Parameter, must be non-negative .
1832
1834
size : int or tuple of ints, optional
1833
1835
Output shape. If the given shape is, e.g., ``(m, n, k)``, then
1834
1836
``m * n * k`` samples are drawn. If size is ``None`` (default),
@@ -1915,9 +1917,9 @@ cdef class RandomState:
1915
1917
Parameters
1916
1918
----------
1917
1919
shape : float or array_like of floats
1918
- The shape of the gamma distribution. Should be greater than zero .
1920
+ The shape of the gamma distribution. Must be non-negative .
1919
1921
scale : float or array_like of floats, optional
1920
- The scale of the gamma distribution. Should be greater than zero .
1922
+ The scale of the gamma distribution. Must be non-negative .
1921
1923
Default is equal to 1.
1922
1924
size : int or tuple of ints, optional
1923
1925
Output shape. If the given shape is, e.g., ``(m, n, k)``, then
@@ -2681,7 +2683,7 @@ cdef class RandomState:
2681
2683
Parameters
2682
2684
----------
2683
2685
a : float or array_like of floats
2684
- Shape of the distribution. Should be greater than zero .
2686
+ Shape of the distribution. Must be non-negative .
2685
2687
size : int or tuple of ints, optional
2686
2688
Output shape. If the given shape is, e.g., ``(m, n, k)``, then
2687
2689
``m * n * k`` samples are drawn. If size is ``None`` (default),
@@ -3002,7 +3004,8 @@ cdef class RandomState:
3002
3004
loc : float or array_like of floats, optional
3003
3005
The position, :math:`\\ mu`, of the distribution peak. Default is 0.
3004
3006
scale : float or array_like of floats, optional
3005
- :math:`\\ lambda`, the exponential decay. Default is 1.
3007
+ :math:`\\ lambda`, the exponential decay. Default is 1. Must be non-
3008
+ negative.
3006
3009
size : int or tuple of ints, optional
3007
3010
Output shape. If the given shape is, e.g., ``(m, n, k)``, then
3008
3011
``m * n * k`` samples are drawn. If size is ``None`` (default),
@@ -3098,7 +3101,8 @@ cdef class RandomState:
3098
3101
loc : float or array_like of floats, optional
3099
3102
The location of the mode of the distribution. Default is 0.
3100
3103
scale : float or array_like of floats, optional
3101
- The scale parameter of the distribution. Default is 1.
3104
+ The scale parameter of the distribution. Default is 1. Must be non-
3105
+ negative.
3102
3106
size : int or tuple of ints, optional
3103
3107
Output shape. If the given shape is, e.g., ``(m, n, k)``, then
3104
3108
``m * n * k`` samples are drawn. If size is ``None`` (default),
@@ -3228,7 +3232,7 @@ cdef class RandomState:
3228
3232
loc : float or array_like of floats, optional
3229
3233
Parameter of the distribution. Default is 0.
3230
3234
scale : float or array_like of floats, optional
3231
- Parameter of the distribution. Should be greater than zero .
3235
+ Parameter of the distribution. Must be non-negative .
3232
3236
Default is 1.
3233
3237
size : int or tuple of ints, optional
3234
3238
Output shape. If the given shape is, e.g., ``(m, n, k)``, then
@@ -3444,7 +3448,7 @@ cdef class RandomState:
3444
3448
Parameters
3445
3449
----------
3446
3450
scale : float or array_like of floats, optional
3447
- Scale, also equals the mode. Should be >= 0 . Default is 1.
3451
+ Scale, also equals the mode. Must be non-negative . Default is 1.
3448
3452
size : int or tuple of ints, optional
3449
3453
Output shape. If the given shape is, e.g., ``(m, n, k)``, then
3450
3454
``m * n * k`` samples are drawn. If size is ``None`` (default),
0 commit comments