spectrochempy.asls
- asls(dataset, lamb=1e5, asymmetry=0.05, tol=1e-3, max_iter=50)[source]
Asymmetric Least Squares Smoothing baseline correction.
This method is based on the work of Eilers and Boelens ([Eilers and Boelens, 2005]).
- Parameters:
dataset (
NDDataset) – The input data.lamb (
float, optional, default:1e5) – The smoothness parameter for the AsLS method. Larger values make the baseline stiffer. Values should be in the range (0, 1e9)asymmetry (
float, optional, default:0.05,) – The asymmetry parameter for the AsLS method. It is typically between 0.001 and 0.1. 0.001 gives almost the same fit as the unconstrained least squares.tol = `float`, optional, default (1e-3) – The tolerance parameter for the AsLS method. Smaller values make the fitting better but potentially increases the number of iterations and the running time. Values should be in the range (0, 1).
max_iter = `int`, optional, default (50) – Maximum number of AsLS iteration.
- Returns:
NDDataset– The baseline corrected dataset.
See also
BaselineManual baseline correction processor.
get_baselineCompute a baseline using the
Baselineclass.bascMake a baseline correction using the
Baselineclass.snipPerform a Simple Non-Iterative Peak (SNIP) detection algorithm.
rubberbandPerform a Rubberband baseline correction.
autosubPerform an automatic subtraction of reference.
detrendRemove polynomial trend along a dimension from dataset.