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

Function quartic_kernel

Lib/statistics.py:895–901  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

893
894@register('quartic', 'biweight')
895def quartic_kernel():
896 pdf = lambda t: 15/16 * (1.0 - t * t) ** 2
897 cdf = lambda t: sumprod((3/16, -5/8, 15/16, 1/2),
898 (t**5, t**3, t, 1.0))
899 invcdf = _newton_raphson(_quartic_invcdf_estimate, f=cdf, f_prime=pdf)
900 support = 1.0
901 return pdf, cdf, invcdf, support
902
903def _triweight_invcdf_estimate(p):
904 # A handrolled piecewise approximation. There is no magic here.

Callers

nothing calls this directly

Calls 2

sumprodFunction · 0.90
_newton_raphsonFunction · 0.85

Tested by

no test coverage detected