qspec.models. residuals ( model , x , y )[source] The residuals of a model with its current parameter values model.vals $$ r = y - f(x). $$ Parameters: model_base.Model The Model $f$. xndarray The x data. yndarray The y data. Returns: resndarray The residuals.