ml-regression-theil-sen

3.0.0 • Public • Published

regression-theil-sen

NPM version build status npm download

Method for robust fitting a line to a set of points.

Installation

$ npm i ml-regression-theil-sen

Usage

import TheilSenRegression from "ml-regression-theil-sen";

var inputs = [1, 2, 3, 4, 5, 6, 7, 8, 9];
var outputs = [2, 3, 4, 20, 6, 7, 8, 9, 10];

var regression = new TheilSenRegression(inputs, outputs);
var y = regression.predict(85);

y === 85;
regression.toString(3) === "f(x) = x + 1.00";

The method is well explained on this article.

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i ml-regression-theil-sen

Weekly Downloads

18,178

Version

3.0.0

License

MIT

Unpacked Size

10.6 kB

Total Files

6

Last publish

Collaborators

  • stropitek
  • targos
  • lpatiny
  • mljs-bot
  • maasencioh
  • jeffersonh44
  • andcastillo