BGlib.be.analysis.utils.be_sho.SHOfit

BGlib.be.analysis.utils.be_sho.SHOfit(parms, w_vec, resp_vec)[source]

Cost function minimization of SHO fitting

Parameters:
  • parms (list or tuple) – SHO parameters=(A,w0,Q,phi)

  • w_vec (1D numpy array) – Vector of frequency values

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