darfix.core.mapping.fit_rocking_curve#
- darfix.core.mapping.fit_rocking_curve(y_values, values=None, num_points=None, int_thresh=None, method='trf')[source]#
Fit rocking curve.
- Parameters:
y_values (tuple) – the first element is the dependent data and the second element are the moments to use as starting values for the fit
values (Union[None, list]) – The independent variable where the data is measured, optional
num_points (int) – Number of points to evaluate the data on, optional
int_thresh (float) – Intensity threshold. If not None, only the rocking curves with higher ptp (range of values) are fitted, others are assumed to be noise and not important data. This parameter is used to accelerate the fit. Optional.
method (
str
) –
- Returns:
If curve was fitted, the fitted curve, else item[0]
- Return type:
list