pyActigraphy.analysis.Cosinor.best_fit

Cosinor.best_fit(ts, params)[source]

Best fit function of the data.

Parameters
  • ts (pandas.Series) – Originally fitted time series.

  • params (instance of Parameters [1]) – Best fit parameters.

Returns

bestfit_data – Time series of the best fit data.

Return type

pandas.Series

References

1

Non-Linear Least-Squares Minimization and Curve-Fitting for Python. https://lmfit.github.io/lmfit-py/index.html