()
| 910 | |
| 911 | @register('triweight') |
| 912 | def 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') |
| 921 | def cosine_kernel(): |
nothing calls this directly
no test coverage detected