https://github.com/mljs/baseline-correction-regression
Iterative regression-based baseline correction.
https://github.com/mljs/baseline-correction-regression
Last synced: 2 months ago
JSON representation
Iterative regression-based baseline correction.
- Host: GitHub
- URL: https://github.com/mljs/baseline-correction-regression
- Owner: mljs
- License: mit
- Created: 2017-06-20T12:31:14.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2024-05-17T16:59:22.000Z (over 1 year ago)
- Last Synced: 2025-09-13T17:36:36.096Z (3 months ago)
- Language: JavaScript
- Homepage: https://mljs.github.io/baseline-correction-regression/
- Size: 1.19 MB
- Stars: 1
- Watchers: 7
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# baseline-correction-regression
[![NPM version][npm-image]][npm-url]
[![build status][ci-image]][ci-url]
[![Test coverage][codecov-image]][codecov-url]
[![npm download][download-image]][download-url]
Iterative regression-based baseline correction.
The algorithm is based on the document [_Baseline correction by improved iterative polynomial fitting with automatic threshold_](https://doi.org/10.1016/j.chemolab.2005.08.009)
## Installation
`$ npm i ml-baseline-correction-regression`
## Usage
```js
import baselineCorrection from 'ml-baseline-correction-regression';
let time = [
/* ... */
];
let originalSignal = [
/* ... */
];
const { corrected, delta, iteration, baseline } = baselineCorrection(
time,
originalSignal,
);
```
## [API Documentation](https://mljs.github.io/baseline-correction-regression/)
## License
[MIT](./LICENSE)
[npm-image]: https://img.shields.io/npm/v/ml-baseline-correction-regression.svg
[npm-url]: https://npmjs.org/package/ml-baseline-correction-regression
[codecov-image]: https://img.shields.io/codecov/c/github/mljs/baseline-correction-regression.svg
[codecov-url]: https://codecov.io/gh/mljs/baseline-correction-regression
[ci-image]: https://github.com/mljs/baseline-correction-regression/workflows/Node.js%20CI/badge.svg?branch=main
[ci-url]: https://github.com/mljs/baseline-correction-regression/actions?query=workflow%3A%22Node.js+CI%22
[download-image]: https://img.shields.io/npm/dm/ml-baseline-correction-regression.svg
[download-url]: https://npmjs.org/package/ml-baseline-correction-regression