params (Parameters) – lmfit Parameters object containing all parameter values for all datasets.
x (ndarray) – Independent variable values.
data (ndarray) – 2D array where each row represents a dataset to fit.
func (Callable) – The fit function to use for calculating residuals.