exa.core.model_selection_fitter.models.model_utils.frequency_guess_with_fft

exa.core.model_selection_fitter.models.model_utils.frequency_guess_with_fft#

frequency_guess_with_fft(data, coordinate_vec)#

Makes a guess for the parameters of an oscillating sine function with decay coefficients.

The parameters for the oscillation are found from a zero-padded fft.

Parameters:
  • data (ndarray) – A sequence that can be converted to 1-d numpy array. Has to be at least two elements long.

  • coordinate_vec (ndarray) – The coordinate vector corresponding to the data.

Returns:

(f_guess, A_guess, phi_guess, offset_guess, T_exp_guess, T_gauss_guess).

Return type:

tuple[float, float, float, float, float, float]