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

1.0.3 • Public • Published

airpls

NPM version Test coverage npm download

Baseline correction using adaptive iteratively reweighted penalized least squares

It is an javascript implementation of airpls using cholesky decomposition and reverse Cuthill-Mckee method for reducing the bandwidth of sparse linear systems, obtaining a fast baseline fitter.

Installation

$ npm install ml-airpls

API Documentation

Example

const airpls = require('ml-airpls');

let y = [1, 1, 1, 1, 3, 6, 3, 1, 1, 1];
let x = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];

var {baseline, corrected, iteration, error} = airpls(x, y);

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i ml-airpls

Weekly Downloads

649

Version

1.0.3

License

MIT

Unpacked Size

32.5 kB

Total Files

9

Last publish

Collaborators

  • stropitek
  • targos
  • lpatiny
  • mljs-bot