fourier2¶
- mdhelper.fit.fourier.fourier2(x: ndarray, a0: float, a1: float, b1: float, a2: float, b2: float, omega: float) ndarray [source]¶
Convenience function for the
fourier2
model from MATLAB.- Parameters:
- xnumpy.ndarray
-values.- a0float
Constant (intercept) term
for the cosine term.- a1float
Coefficient
for the first term.- b1float
Coefficient
for the first term.- a2float
Coefficient
for the second term.- b2float
Coefficient
for the second term.- omegafloat
Fundamental frequency
of the signal.
- Returns:
- fitnumpy.ndarray
Fitted
-values.