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 improve the fit but may increase the number of iterations and the runtime. Values should be in the range(0, 1).max_iter (
int, optional, default:50) β Maximum number of AsLS iterations.
- Returns:
NDDatasetβ The baseline corrected dataset.Masked input regions are preserved in the returned dataset.
See also
BaselineManual baseline correction processor.
get_baselineCompute a baseline using the Baseline class.
bascMake a baseline correction using the Baseline class.
aslsPerform an Asymmetric Least Squares Smoothing baseline correction.
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.