Skip to content

Latest commit

 

History

History
46 lines (34 loc) · 1.52 KB

README.md

File metadata and controls

46 lines (34 loc) · 1.52 KB

baseline-correction-regression

NPM version build status Test coverage npm download

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,
);

License

MIT