Skip to main content

make_splprep

Function make_splprep 

Source
pub fn make_splprep(
    points: &[Vec<f64>],
    u: Option<&[f64]>,
    t: Option<&[f64]>,
    options: &SplrepOptions<'_>,
) -> Result<(Vec<f64>, Vec<BSpline>, SplrepInfo), ErrorsJSL>
Expand description

A smoothing parametric spline curve through points (one row per point, one column per coordinate) with shared, automatically placed knots (SciPy’s make_splprep, FITPACK’s parcur). The parameter u defaults to the cumulative chord length scaled to [0, 1]; the smoothing criterion sums the squared residuals over all coordinates. Returns u and one spline per coordinate, all on the same knots.