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