Description Usage Arguments Value
Least squares polynomial fit. Fit a polynomial p(x) = p[0] * x^{deg} + ... + p[deg] of degree deg to points (x, y). Returns a vector of coefficients p that minimises the squared error.
1 | Polyfit(x, y, deg)
|
x |
KHIVA array with the x-coordinates of the M sample points (x[i], y[i]). |
y |
KHIVA array with the y-coordinates of the sample points. |
deg |
Degree of the fitting polynomial |
: KHIVA array with the polynomial coefficients, highest power first.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.