polynomial¶
Polynomial models¶
Polynomial models for curves are given by
where \(n+1\) is the order of the polynomial and \(n\) is the degree of the polynomial. The order gives the number of coefficients to be fit, and the degree gives the highest power of the predictor variable.
Polynomials are often used when a simple empirical model is required. You can use the polynomial model for interpolation or extrapolation, or to characterize data using a global fit.
This module provides the general polynomial model above for any integer
\(n\geq0\), as well as convenience functions for polynomial models
with \(1\leq n \leq9\) analogous to MATLAB’s poly1
,
poly2
, etc.
Note that in MATLAB, the polynomial models have the form
Functions
General polynomial model. |
|
Convenience function for the |
|
Convenience function for the |
|
Convenience function for the |
|
Convenience function for the |
|
Convenience function for the |
|
Convenience function for the |
|
Convenience function for the |
|
Convenience function for the |
|
Convenience function for the |