ml-baseline-correction-regression

2.0.1

baselineCorrectionRegression

src/index.js

Iterative regression-based baseline correction

baselineCorrectionRegression(x: Array<number>, y: Array<number>, options: object?): {corrected: Array<number>, delta: number, iteration: number, baseline: Array<number>}
Parameters
x (Array<number>) Independent axis variable
y (Array<number>) Dependent axis variable
options (object? = {}) Options object
Name Description
options.maxIterations number (default 100) Maximum number of allowed iterations
options.Regression function (default PolynomialRegression) Regression class with a predict method
options.regressionOptions any? Options for regressionFunction
options.tolerance number (default 0.001) Convergence error tolerance
Returns
{corrected: Array<number>, delta: number, iteration: number, baseline: Array<number>}: