View source: R/speclib_smooth.R
meanfilter | R Documentation |
Apply mean filter to spectra. Filter size is passed as number of bands averaged at both sides of the respective band value.
meanfilter(spectra, p = 5)
spectra |
Data.frame, matrix or Speclib containing spectra |
p |
Filter size. |
Filtered matrix or Speclib of same dimension as input matrix/Speclib
Lukas Lehnert
noiseFiltering
data(spectral_data) spectra_filtered <- meanfilter(spectral_data, p = 10) plot(spectra_filtered[1,]) plot(spectral_data[1,], new = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.