BGlib.be.analysis.utils.be_sho.SHOfastGuess

BGlib.be.analysis.utils.be_sho.SHOfastGuess(w_vec, resp_vec, qual_factor=200)[source]

Default SHO guess from the maximum value of the response

Parameters:
  • w_vec (1D numpy array or list) – Vector of BE frequencies

  • resp_vec (1D complex numpy array or list) – BE response vector as a function of frequency

  • qual_factor (float) – Quality factor of the SHO peak

Returns:

retval – SHO fit parameters arranged as [amplitude, frequency, quality factor, phase]

Return type:

1D numpy array