Skip to main content

bisplrep_lsq

Function bisplrep_lsq 

Source
pub fn bisplrep_lsq(
    x: &[f64],
    y: &[f64],
    z: &[f64],
    w: Option<&[f64]>,
    tx: &[f64],
    ty: &[f64],
    kx: usize,
    ky: usize,
) -> Result<SmoothBivariateSpline, ErrorsJSL>
Expand description

The weighted least-squares spline surface on given knots (SciPy’s bisplrep(task=-1) and LSQBivariateSpline). As in FITPACK, only the interior knots of tx and ty are used: the k + 1 boundary knots at each end are placed at the data’s range (SciPy’s default xb, xe, yb, ye). Coefficients that no data point influences are set to zero.