Javascript regression library

Date: 2019-06-19

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])

anx^n ... + a1x + a0

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 });
22390cookie-checkJavascript regression library