@@ -2288,10 +2288,10 @@ cdef class RandomState:
22882288
22892289 Parameters
22902290 ----------
2291- dfnum : int or array_like of ints
2292- Degrees of freedom in numerator. Should be greater than zero .
2293- dfden : int or array_like of ints
2294- Degrees of freedom in denominator. Should be greater than zero .
2291+ dfnum : float or array_like of floats
2292+ Degrees of freedom in numerator, should be > 0 .
2293+ dfden : float or array_like of float
2294+ Degrees of freedom in denominator, should be > 0 .
22952295 size : int or tuple of ints, optional
22962296 Output shape. If the given shape is, e.g., ``(m, n, k)``, then
22972297 ``m * n * k`` samples are drawn. If size is ``None`` (default),
@@ -2371,12 +2371,16 @@ cdef class RandomState:
23712371
23722372 Parameters
23732373 ----------
2374- dfnum : int or array_like of ints
2375- Parameter, should be > 1.
2376- dfden : int or array_like of ints
2377- Parameter, should be > 1.
2374+ dfnum : float or array_like of floats
2375+ Numerator degrees of freedom, should be > 0.
2376+
2377+ .. versionchanged:: 1.14.0
2378+ Earlier NumPy versions required dfnum > 1.
2379+ dfden : float or array_like of floats
2380+ Denominator degrees of freedom, should be > 0.
23782381 nonc : float or array_like of floats
2379- Parameter, should be >= 0.
2382+ Non-centrality parameter, the sum of the squares of the numerator
2383+ means, should be >= 0.
23802384 size : int or tuple of ints, optional
23812385 Output shape. If the given shape is, e.g., ``(m, n, k)``, then
23822386 ``m * n * k`` samples are drawn. If size is ``None`` (default),
@@ -2443,8 +2447,8 @@ cdef class RandomState:
24432447
24442448 Parameters
24452449 ----------
2446- df : int or array_like of ints
2447- Number of degrees of freedom.
2450+ df : float or array_like of floats
2451+ Number of degrees of freedom, should be > 0 .
24482452 size : int or tuple of ints, optional
24492453 Output shape. If the given shape is, e.g., ``(m, n, k)``, then
24502454 ``m * n * k`` samples are drawn. If size is ``None`` (default),
@@ -2509,9 +2513,11 @@ cdef class RandomState:
25092513
25102514 Parameters
25112515 ----------
2512- df : int or array_like of ints
2513- Degrees of freedom, should be > 0 as of NumPy 1.10.0,
2514- should be > 1 for earlier versions.
2516+ df : float or array_like of floats
2517+ Degrees of freedom, should be > 0.
2518+
2519+ .. versionchanged:: 1.10.0
2520+ Earlier NumPy versions required dfnum > 1.
25152521 nonc : float or array_like of floats
25162522 Non-centrality, should be non-negative.
25172523 size : int or tuple of ints, optional
@@ -2660,7 +2666,7 @@ cdef class RandomState:
26602666
26612667 Parameters
26622668 ----------
2663- df : int or array_like of ints
2669+ df : float or array_like of floats
26642670 Degrees of freedom, should be > 0.
26652671 size : int or tuple of ints, optional
26662672 Output shape. If the given shape is, e.g., ``(m, n, k)``, then
@@ -4624,6 +4630,11 @@ cdef class RandomState:
46244630 samples : ndarray,
46254631 The drawn samples, of shape (size, alpha.ndim).
46264632
4633+ Raises
4634+ -------
4635+ ValueError
4636+ If any value in alpha is less than or equal to zero
4637+
46274638 Notes
46284639 -----
46294640 .. math:: X \\ approx \\ prod_{i=1}^{k}{x^{\\ alpha_i-1}_i}
0 commit comments