multiregress
multiregress
Multiple linear regression.
How to use
Call regression function with datas. Regression function returns constant and coefficients.
const regression = ; //data : [input_1, input_2, ... input_n, output]//result : [const, coefficient_1, coefficient_2, ... coefficient_n] //f(x) = 0.5x^2 - 0.5xconsole; // ~ [0, -0.5, 0.5]