https://github.com/mljs/airpls
Baseline correction using adaptive iteratively reweighted penalized least squares
https://github.com/mljs/airpls
Last synced: 2 months ago
JSON representation
Baseline correction using adaptive iteratively reweighted penalized least squares
- Host: GitHub
- URL: https://github.com/mljs/airpls
- Owner: mljs
- License: mit
- Created: 2018-02-13T19:19:26.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2024-05-03T01:47:01.000Z (about 1 year ago)
- Last Synced: 2025-04-15T09:06:07.070Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 1.31 MB
- Stars: 2
- Watchers: 8
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# airpls
[![NPM version][npm-image]][npm-url]
[![Test coverage][codecov-image]][codecov-url]
[![npm download][download-image]][download-url]Baseline correction using adaptive iteratively reweighted penalized least squares
It is an javascript implementation of [airpls](https://github.com/zmzhang/airPLS/blob/main/airPLS_manuscript.pdf) 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](https://mljs.github.io/airpls/)
## Example
```js
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](./LICENSE)
[npm-image]: https://img.shields.io/npm/v/ml-airpls.svg?style=flat-square
[npm-url]: https://www.npmjs.com/package/ml-airpls
[codecov-image]: https://img.shields.io/codecov/c/github/mljs/airpls.svg?style=flat-square
[codecov-url]: https://codecov.io/gh/mljs/airpls
[download-image]: https://img.shields.io/npm/dm/ml-airpls.svg?style=flat-square
[download-url]: https://www.npmjs.com/package/ml-airpls