chemotools.baseline#

Baseline correction methods for spectral preprocessing. These methods remove baseline drift and offset to isolate the chemical signal.

Import from this module:

from chemotools.baseline import (
    AirPls,
    ArPls,
    AsLs,
    ConstantBaselineCorrection,
    CubicSplineCorrection,
    LinearCorrection,
    NonNegative,
    PolynomialCorrection,
    SubtractReference,
)

Available Classes#

Class

Description

AirPls

Adaptive iteratively reweighted penalized least squares

ArPls

Asymmetrically reweighted penalized least squares

AsLs

Asymmetric least squares smoothing

ConstantBaselineCorrection

Subtract a constant baseline value

CubicSplineCorrection

Fit and subtract cubic spline baseline

LinearCorrection

Linear baseline correction

NonNegative

Enforce non-negative values

PolynomialCorrection

Polynomial baseline fitting and subtraction

SubtractReference

Subtract a reference spectrum

See Also#

Baseline Methods Overview - Complete documentation with examples and visual guides