mirror of
https://github.com/python/cpython.git
synced 2025-08-22 17:55:18 +00:00
Statistics inv_cdf sync with corresponding random module normal distributions (#95265)
This commit is contained in:
parent
b7ce4625fe
commit
4395ff1e6a
3 changed files with 5 additions and 6 deletions
|
@ -1221,8 +1221,6 @@ class NormalDist:
|
|||
"""
|
||||
if p <= 0.0 or p >= 1.0:
|
||||
raise StatisticsError('p must be in the range 0.0 < p < 1.0')
|
||||
if self._sigma <= 0.0:
|
||||
raise StatisticsError('cdf() not defined when sigma at or below zero')
|
||||
return _normal_dist_inv_cdf(p, self._mu, self._sigma)
|
||||
|
||||
def quantiles(self, n=4):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue