iqm.cpc.core.dataset.compute_2d_fit#
- iqm.cpc.core.dataset.compute_2d_fit(x_values, y_values, z_values, model, estimates, cloned_arguments=None, only_index_y=False, **curve_fit_kwargs)#
Compute and return the fit results for a 2-dimensional array of values
- Parameters:
x_values (ndarray[Any, Any]) – The primary independent variable
y_values (ndarray[Any, Any]) – The secondary independent variable, also used as an index
model (Callable) – The function to use for fitting
estimates (dict) – Guesses of possible parameter values for the fit function
cloned_arguments (None | Iterable[str]) – list of arguments to the model which should be fitted separately for each y value
**curve_fit_kwargs – Additional named arguments for the curve fit function
only_index_y (bool)
- Return type: