{ } Raw JSON

bundles / scipy 1.18.0 / scipy / interpolate / _fitpack2 / UnivariateSpline / get_residual

function

scipy.interpolate._fitpack2:UnivariateSpline.get_residual

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

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