Skip to content

Commit cca51da

Browse files
committed
MAINT: fix typo in normal distribution functions docstrings
This commit replaces an incorrect expected result in the docstring of the numpy.random.normal() and numpy.random.RandomState.normal() versions of the normal distribution function by the correct value; namely, the standard deviation of the normal distribution should be (closely equal to) the sigma input parameter. Note that this typo was partially fixed in commit f2faf84, but only for the random.Generator.normal() version of the function.
1 parent 7297f31 commit cca51da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numpy/random/mtrand.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1553,7 +1553,7 @@ cdef class RandomState:
15531553
0.0 # may vary
15541554
15551555
>>> abs(sigma - np.std(s, ddof=1))
1556-
0.1 # may vary
1556+
0.0 # may vary
15571557
15581558
Display the histogram of the samples, along with
15591559
the probability density function:

0 commit comments

Comments
 (0)