BGlib.be.analysis.utils.be_sho.SHOestimateGuess

BGlib.be.analysis.utils.be_sho.SHOestimateGuess(resp_vec, w_vec, num_points=5)[source]

Generates good initial guesses for fitting

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

  • num_points ((Optional) unsigned int) – Quality factor of the SHO peak

Returns:

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

Return type:

tuple