exa.core.util.model_functions.get_lorentzian_dip#
- get_lorentzian_dip(amplitude_guess=None, x_offset_guess=None, sigma_guess=None, offset_guess=None)#
Generates 1d lorentzian fitter function that fits a lorenzian curve on the provided (x, y) values.
- Parameters:
amplitude_guess (float | None) – Guess for the amplitude in the Lorentzian model. The default value: the difference max(y)-min(y)
x_offset_guess (float | None) – Guess for the x-axis offset in the Lorentzian model. The default value: the x-value with which the function assumes its minimum.
sigma_guess (float | None) – Guess for the sigma in the Lorentzian model. The default value: the half point of the x-values
offset_guess (float | None) – Guess for the signal offset (y-axis) in the Lorentzian model. Tne default value: the minimum of the y-values
- Returns:
function for fitting data to a Lorentzian model
- Return type:
Callable[[ndarray | Iterable, ndarray | Iterable], tuple[dict, ndarray]]