fourier7¶
- mdhelper.fit.fourier.fourier7(x: ndarray, a0: float, a1: float, b1: float, a2: float, b2: float, a3: float, b3: float, a4: float, b4: float, a5: float, b5: float, a6: float, b6: float, a7: float, b7: float, omega: float) ndarray [source]¶
Convenience function for the
fourier7
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.- a3float
Coefficient
for the third term.- b3float
Coefficient
for the third term.- a4float
Coefficient
for the fourth term.- b4float
Coefficient
for the fourth term.- a5float
Coefficient
for the fifth term.- b5float
Coefficient
for the fifth term.- a6float
Coefficient
for the sixth term.- b6float
Coefficient
for the sixth term.- a7float
Coefficient
for the seventh term.- b7float
Coefficient
for the seventh term.- omegafloat
Fundamental frequency
of the signal.
- Returns:
- fitnumpy.ndarray
Fitted
-values.