iqm.cpc.core.dataset.compute_1d_fit#
- iqm.cpc.core.dataset.compute_1d_fit(x_values, y_values, model, estimates, **curve_fit_kwargs)#
Compute and return the fit results for a 1-dimensional array of values
- Parameters:
x_values (ndarray | Iterable) – The ‘true’ data which the curve needs to fit; the independent variable
y_values (ndarray | Iterable) – Result values of the fit or ‘dependent data’
model (Callable) – The function to use for fitting
estimates (dict[str, float | ndarray]) – Guesses of possible parameter values for the fit function
**curve_fit_kwargs – Additional named arguments for the curve fit function
- Return type: