spectrochempy.whittaker๏
- whittaker(dataset, lamb=1.0, order=2, dim=-1, **kwargs)[source]๏
Smooth the data using the Whittaker smoothing algorithm.
This implementation based on the work by Eilers [2003] uses sparse matrices enabling high-speed processing of large input vectors.
Copyright M. H. V. Werts, 2017 (see LICENSES/WITTAKER_SMOOTH_LICENSE.rst)
- Parameters:
dataset (
NDDataset) โ Input dataset to smooth.lamb (
float, optional, default: 1.0) โ The smoothing parameter. Larger values make the result smoother.order (
int, optional, default: 2) โ The difference order of the penalized least-squares.dim (
intorstr, optional, default: -1) โ Axis along which to apply the filter. Accepts a dimension name (e.g."x") or an integer index (e.g.-1for the last axis).**kwargs (keyword arguments, optional) โ Additional keyword arguments passed to the filter.
- Returns:
NDdatasetโ Smoothed data.- Other Parameters:
log_level (
str, optional, default: โWARNINGโ) โ The log level for the filter.
See also
FilterFilter processing.