Skip to contents

Performs baseline correction to chromatograms using the Asymmetric Least Squares (ALS) algorithm from the baseline package.

Usage

MassSpecMethod_CorrectChromatogramsBaseline_baseline_als(
  lambda = 5,
  p = 0.05,
  maxit = 10,
  liftByLowestNegativeToZero = FALSE
)

Arguments

lambda

Numeric (length 1) with the 2nd derivative constraint.

p

Numeric (length 1) with the weighting of positive residuals.

maxit

Integer (length 1) with the maximum number of iterations.

liftByLowestNegativeToZero

Logical (length 1) indicating if the corrected chromatogram should be lifted by the lowest negative value to zero.

Value

A MassSpecMethod_CorrectChromatogramsBaseline_baseline_als object.