Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a02f5c8

Browse files
committed
Merge pull request #5527 from efiring/rayleigh_docstring
DOC: correct erroneous description of Rayleigh distribution
2 parents ea52028 + 934b6d6 commit a02f5c8

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

numpy/random/mtrand/mtrand.pyx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3324,10 +3324,10 @@ cdef class RandomState:
33243324
33253325
.. math:: P(x;scale) = \\frac{x}{scale^2}e^{\\frac{-x^2}{2 \\cdotp scale^2}}
33263326
3327-
The Rayleigh distribution arises if the wind speed and wind direction are
3328-
both gaussian variables, then the vector wind velocity forms a Rayleigh
3329-
distribution. The Rayleigh distribution is used to model the expected
3330-
output from wind turbines.
3327+
The Rayleigh distribution would arise, for example, if the East
3328+
and North components of the wind velocity had identical zero-mean
3329+
Gaussian distributions. Then the wind speed would have a Rayleigh
3330+
distribution.
33313331
33323332
References
33333333
----------

0 commit comments

Comments
 (0)