cwitools.modeling.rss_func

cwitools.modeling.rss_func(model_params, x, y, model_func)

Generic wrapper to get residual sum of squares for a model/data.

Args:
model_params (list): The parameters of the model x (numpy.array): The input x axis data y (numpy.array): The input y axis data model_func (callable): The model function
Returns:
float: The residual sum of squares