exa.core.util.model_functions.get_exponential_fitter#
- get_exponential_fitter(decay_estimate=None, amplitude_estimate=None, offset_estimate=None, decay_symbol='')#
Generates 1d exponential fitter function.
Typically used in T1 or T2 Echo etc.
The data \(y(x)\) is fitted to the model \(y(x) = A * \exp(-x / d) + B\), where \(x\) = independent variable (typically time), \(A\) = amplitude, \(d>0\) = decay and \(B\) = offset.
- Parameters:
decay_estimate (float | None) – initial guess for decay, if not provided, then calculated with
get_estimated_exponent().amplitude_estimate (float | None) – initial guess for amplitude, defaults to y(x_min)-y(x_max).
offset_estimate (float | None) – initial guess for offset, defaults to y(x_max).
decay_symbol (str) – Optionally replace the parameter word “decay” with this symbol. E.g. T1, T2.
- Returns:
function for fitting data to a exponential model
- Return type: