exa.core.util.model_functions.get_parabola_fitter

exa.core.util.model_functions.get_parabola_fitter#

get_parabola_fitter(a_guess=None, x_offset_guess=None, y_offset_guess=None)#

Generates 1d parabola fitter function.

The data is fitted to the model \(y(x) = A * (x - x_offset)^2 + y_offset\), where \(A\) = amplitude, \(x_offset\) = offset in the x-axis and \(y_offset\) = offset in the y-axis.

Parameters:
  • a_guess (float | None) – initial guess for the quadratic amplitude term A

  • x_offset_guess (float | None) – initial guess for the offset in the x-axis

  • y_offset_guess (float | None) – initial guess for the offset in the y-axis

Returns:

function for fitting data to an oscillation model

Return type:

Callable