pub fn make_splrep(
x: &[f64],
y: &[f64],
t: Option<&[f64]>,
options: &SplrepOptions<'_>,
) -> Result<(BSpline, SplrepInfo), ErrorsJSL>Expand description
The smoothing spline of degree k with automatically placed knots (SciPy’s make_splrep,
FITPACK’s curfit): of all splines with Σ (wᵢ (yᵢ − g(xᵢ)))² ≤ s, the one whose k-th
derivative jumps least at its interior knots. s = 0 gives the interpolating spline with
not-a-knot ends; a large s gives the least-squares polynomial. With weights 1/σᵢ, a good
s lies in m ± √(2m). t fixes the knots instead of generating them.