Skip to main content

nonzero_basis

Function nonzero_basis 

Source
pub fn nonzero_basis(t: &[f64], k: usize, l: usize, x: f64) -> Vec<f64>
Expand description

The k + 1 B-splines of degree k that are non-zero on the knot interval t[l] ≤ x < t[l + 1], namely B_{l−k}, …, B_l, by the Cox-de Boor recurrence (de Boor’s bsplvb). Each degree is built from the previous one; the values are non-negative and sum to one.