パッケージの詳細

ml-airpls

mljs4kMIT2.0.0

Baseline correction using adaptive iteratively reweighted penalized least

baseline, correction

readme

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

更新履歴

Changelog

2.0.0 (2024-05-03)

⚠ BREAKING CHANGES

  • improve result by use the noise level after first iteration (#13)

Features

  • improve result by use the noise level after first iteration (#13) (49b48cc)

1.0.3 (2023-11-08)

Bug Fixes

  • rename factorCriterion to tolerance (#11) (3a93618)

1.0.2 (2023-05-22)

Bug Fixes

  • mjs extension in rollup config (546ce6e)

1.0.1 (2023-05-19)

Bug Fixes

1.0.0 (2021-03-24)

0.2.0 (2020-02-05)

0.0.2 (2018-11-03)