regress
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

regress Build Status npm mit

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)

Readme

Keywords

none

Package Sidebar

Install

npm i regress

Weekly Downloads

1

Version

1.0.2

License

MIT

Last publish

Collaborators

  • bcherny