ml-baseline-correction-regression
v2.0.1
Published
Iterative regression based baseline correction
Downloads
3,549
Keywords
Readme
baseline-correction-regression
Iterative regression-based baseline correction.
The algorithm is based on the document Baseline correction by improved iterative polynomial fitting with automatic threshold
Installation
$ npm i ml-baseline-correction-regression
Usage
import baselineCorrection from 'ml-baseline-correction-regression';
let time = [
/* ... */
];
let originalSignal = [
/* ... */
];
const { corrected, delta, iteration, baseline } = baselineCorrection(
time,
originalSignal,
);