polyfit
Calculates the polynomial regression equation y = P1 * x^n + P2 * x^(n-1) + ... + Pn * x + Pn+1 to a degree of n that fits inputted nodes (x,y).
Arguments
- Input matrix m
- Integer n, degree of polynomial
Output
Polynomial P1 * x^n + P2 * x^(n-1) + ... + Pn * x + Pn+1
Examples
