MCPcopy Index your code
hub / github.com/RustPython/RustPython / parabolic_kernel

Function parabolic_kernel

Lib/statistics.py:868–873  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

866
867@register('parabolic', 'epanechnikov')
868def parabolic_kernel():
869 pdf = lambda t: 3/4 * (1.0 - t * t)
870 cdf = lambda t: sumprod((-1/4, 3/4, 1/2), (t**3, t, 1.0))
871 invcdf = lambda p: 2.0 * cos((acos(2.0*p - 1.0) + pi) / 3.0)
872 support = 1.0
873 return pdf, cdf, invcdf, support
874
875def _newton_raphson(f_inv_estimate, f, f_prime, tolerance=1e-12):
876 def f_inv(y):

Callers

nothing calls this directly

Calls 3

sumprodFunction · 0.90
cosFunction · 0.90
acosFunction · 0.90

Tested by

no test coverage detected