fit_sin

HSTB.kluster.modules.wobble.fit_sin(x, y)

Fit sin to the input time sequence, and return fitting parameters “amp”, “omega”, “phase”, “offset”, “freq”, “period” and “fitfunc”

res = fit_sin(x, y) plt.plot(res[‘fitfunc’](x, res[‘amp’], res[‘omega’], res[‘phase’], res[‘offset’]))

Parameters
  • x

  • y