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

Function triweight_kernel

Lib/statistics.py:912–918  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

910
911@register('triweight')
912def triweight_kernel():
913 pdf = lambda t: 35/32 * (1.0 - t * t) ** 3
914 cdf = lambda t: sumprod((-5/32, 21/32, -35/32, 35/32, 1/2),
915 (t**7, t**5, t**3, t, 1.0))
916 invcdf = _newton_raphson(_triweight_invcdf_estimate, f=cdf, f_prime=pdf)
917 support = 1.0
918 return pdf, cdf, invcdf, support
919
920@register('cosine')
921def cosine_kernel():

Callers

nothing calls this directly

Calls 2

sumprodFunction · 0.90
_newton_raphsonFunction · 0.85

Tested by

no test coverage detected