Skip to main content

make_splrep_periodic

Function make_splrep_periodic 

Source
pub fn make_splrep_periodic(
    x: &[f64],
    y: &[f64],
    t: Option<&[f64]>,
    options: &SplrepOptions<'_>,
) -> Result<(BSpline, SplrepInfo), ErrorsJSL>
Expand description

The periodic smoothing spline with automatically placed knots (SciPy’s make_splrep(..., bc_type='periodic'), FITPACK’s percur): the spline and its first k − 1 derivatives match at xb and xe = xb + period, the last data point stands for the first one shifted by a period, and otherwise the criterion is make_splrep’s. The free coefficients are the first n − 2k − 1; the last k repeat them.