Skip to contents

Performs baseline correction using adaptive iteratively reweighted Penalized Least Squares (airPLS) based on the algorithm from Zhi-Min Zhang.

Usage

RamanSettings_CorrectSpectraBaseline_airpls(
  lambda = 10,
  differences = 1,
  itermax = 20
)

Arguments

lambda

Numeric (length 1) with the smoothing intensity. the higher the lambda the higher the smoothing.

differences

Integer (length 1) indicating the order of the difference of penalties

itermax

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

Value

A RamanSettings_CorrectSpectraBaseline_airpls object.

References

Zhang Z, Chen S, Liang Y (2010). “Baseline correction using adaptive iteratively reweighted penalized least squares.” Analyst, 135(5), 1138-1146. doi:10.1039/B922045C , http://dx.doi.org/10.1039/B922045C.