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

Skip to content

Commit 1397e91

Browse files
committed
.
1 parent a82b100 commit 1397e91

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Lib/statistics.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1730,17 +1730,17 @@ def _simple_s_curve(power):
17301730
1 - (2 - 2*p) ** power)
17311731

17321732
_parabolic_invcdf = _newton_raphson(
1733-
f_inv_estimate = _simple_s_curve(0.583367470424302),
1733+
f_inv_estimate = _simple_s_curve(0.583367470424302), # (7/12)
17341734
f = lambda t: -1/4 * t**3 + 3/4 * t + 1/2,
17351735
f_prime = lambda t: 3/4 * (1.0 - t * t))
17361736

17371737
_quartic_invcdf = _newton_raphson(
1738-
f_inv_estimate = _simple_s_curve(0.4258865685331),
1738+
f_inv_estimate = _simple_s_curve(0.4258865685331), # (204/479)
17391739
f = lambda t: 3/16 * t**5 - 5/8 * t**3 + 15/16 * t + 1/2,
17401740
f_prime = lambda t: 15/16 * (1.0 - t * t) ** 2)
17411741

17421742
_triweight_invcdf = _newton_raphson(
1743-
f_inv_estimate = _simple_s_curve(0.3400218741872791),
1743+
f_inv_estimate = _simple_s_curve(0.3400218741872791), (17/50)
17441744
f = lambda t: 35/32 * (-1/7*t**7 + 3/5*t**5 - t**3 + t) + 1/2,
17451745
f_prime = lambda t: 35/32 * (1.0 - t * t) ** 3)
17461746

0 commit comments

Comments
 (0)