exa.core.util.model_functions.get_estimated_exponent

exa.core.util.model_functions.get_estimated_exponent#

get_estimated_exponent(x, y)#

Estimates decay constant in typical exponential decay data.

Typically used in T1 or T2 Echo etc.

Estimates the characteristic decay time x_guess where the following condition is fullfilled:

y(x_guess) = (y(x_min) - y(x_max)) * np.exp(-1.0) + y(x_max)

Parameters:
  • x (ndarray) – independent variable, typically time.

  • y (ndarray) – dependent variable.

Returns:

the absolute value of exponent

Return type:

float