ramanspy.preprocessing.despike.WhitakerHayes
- class ramanspy.preprocessing.despike.WhitakerHayes(*, kernel_size: int = 3, threshold: Number = 8)[source]
Cosmic rays removal based on modified z-scores filtering.
- Parameters:
kernel_size (int, optional, default=3) – The size of the kernel to use for the algoritm.
threshold (Number, optional, default=8) – The modified z_score threshold to use to identify spikes.
References
Whitaker, D.A. and Hayes, K., 2018. A simple algorithm for despiking Raman spectra. Chemometrics and Intelligent Laboratory Systems, 179, pp.82-84.
Methods
__init__(*[, kernel_size, threshold])apply(raman_objects)Applies the defined preprocessing method on the Raman spectroscopic objects provided.