ml-rolling-ball-baseline
v2.0.3
Published
Rolling ball baseline correction
Downloads
3,657
Readme
ml-rolling-ball-baseline
Rolling ball baseline correction. The algorithm was initially described in [1].
Installation
$ npm i ml-rolling-ball-baseline
Usage
import { rollingBall } from 'ml-rolling-ball-baseline';
// spectrum is an array
const spectrum=[1, 2, 1, ...];
// you need to provide and array with the data and
// two numbers indicating the "size" of the balls,
// i.e., the maximization/minimization and the smoothing window.
const baseline = rollingBall(spectrum, 200, 400);