http://tom-alexander.github.io/regression-js/
https://github.com/Tom-Alexander/regression-js
https://github.com/Tom-Alexander/regression-js/blob/master/src/regression.js
regression.polynomial(data[, options])
Fits the input data to a polynomial curve with the equation . It returns the coefficients in the form [an..., a1, a0]
. The order can be configure with the order
option.
Example
const data = [[0,1],[32, 67] .... [12, 79]]; const result = regression.polynomial(data, { order: 3 });
223900cookie-checkJavascript regression library