{ } Raw JSON

bundles / scipy 1.17.1 / scipy / interpolate / _fitpack2 / UnivariateSpline / get_residual

function

scipy.interpolate._fitpack2:UnivariateSpline.get_residual

source: /scipy/interpolate/_fitpack2.py :425

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