Non-linear baseline correction for NMR spectra based on asymmetric least squares. This function estimates a smooth, non-linear baseline trend for each spectrum. The estimated baseline is then subtracted, returning the corrected spectrum. See asysm for more information on the smoothing parameter lambda.
Arguments
- X
 Numeric matrix or data frame. NMR data with spectra in rows.
- lambda
 Numeric. Smoothing parameter passed to
asysm. Larger values result in smoother baselines.- iter_max
 Integer. Maximum number of iterations for the baseline estimation algorithm.
