regress
v1.0.2
Published
Statistical regression algorithms in TypeScript
Downloads
5
Readme
regress
Work in progress - Statistical regression algorithms in TypeScript
Installation
npm install --save regress
Usage
import {linear} from 'regress'
// fn(x) = m*x + b
const {m, b, r2, fn} = linear([0,1], [2,3], [5,6])
assert.equal(b, 1)
assert.equal(m, 1)
assert.equal(r2, 1)
assert.equal(fn(10), 11)