This is a pre-release version (2.0.0.dev0+git20260907.41eeb59).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / interpolate / _fitpack2 / UnivariateSpline / get_residual

function

scipy.interpolate._fitpack2:UnivariateSpline.get_residual

source: build-install/usr/lib/python3.14/site-packages/scipy/interpolate/_fitpack2.py:774

Signature

def get_residual(self)

Summary

Return weighted sum of squared residuals of the spline approximation.

Extended Summary

This is equivalent to

sum((w[i] * (y[i]-spl(x[i])))**2, axis=0)

Aliases

  • scipy.interpolate.UnivariateSpline.get_residual