get_residual — SciPy v1.15.3 Manual (original) (raw)
scipy.interpolate.LSQUnivariateSpline.
LSQUnivariateSpline.get_residual()[source]#
Return weighted sum of squared residuals of the spline approximation.
This is equivalent to:
sum((w[i] * (y[i]-spl(x[i])))**2, axis=0)