poly7¶
- mdhelper.fit.polynomial.poly7(x: ndarray, p1: float, p2: float, p3: float, p4: float, p5: float, p6: float, p7: float, p8: float) ndarray [source]¶
Convenience function for the
poly7
model from MATLAB:\[y=p_1x^7+p_2x^6+\cdots+p_8\]- Parameters:
- xnumpy.ndarray
One-dimensional array containing \(x\)-values.
- p1float
Coefficient \(p_1\) for the \(x^7\) term.
- p2float
Coefficient \(p_2\) for the \(x^6\) term.
- p3float
Coefficient \(p_3\) for the \(x^5\) term.
- p4float
Coefficient \(p_4\) for the \(x^4\) term.
- p5float
Coefficient \(p_5\) for the \(x^3\) term.
- p6float
Coefficient \(p_6\) for the \(x^2\) term.
- p7float
Coefficient \(p_7\) for the \(x\) term.
- p8float
Constant term \(p_8\).
- Returns:
- fitnumpy.ndarray
Fitted \(y\)-values.