Skip to main content

Module smooth_bivariate

Module smooth_bivariate 

Source
Expand description

Smoothing spline surfaces for scattered data (SciPy’s bisplrep / bisplev and SmoothBivariateSpline, LSQBivariateSpline).

See the book entry FITPACK smoothing splines.

Structs§

SmoothBivariateSpline
A tensor-product spline surface s(x, y) = Σᵢⱼ c[i][j] Bᵢ(x) Bⱼ(y) (SciPy’s tck from bisplrep), with the weighted sum of squared residuals of its fit.

Functions§

bisplrep
A smoothing spline surface through scattered data with automatically placed knots (SciPy’s bisplrep / SmoothBivariateSpline, after FITPACK’s surfit): of the splines with Σ (wᵢ (zᵢ − s(xᵢ, yᵢ)))² ≤ smoothing, the one whose kx-th x- and ky-th y-derivatives jump least across the knots. smoothing = None gives SciPy’s default m − √(2m).
bisplrep_lsq
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.