regression-theil-sen
Method for robust fitting a line to a set of points.
Installation
$ npm i ml-regression-theil-sen
Usage
; var inputs = 1 2 3 4 5 6 7 8 9;var outputs = 2 3 4 20 6 7 8 9 10; var regression = inputs outputs;var y = regression; y === 85;regression === 'f(x) = x + 1.00';
API Documentation
The method is well explained on this article.