powered by
smooth runs each spectrum by a smoothing and returns the spectra
smooth
# S3 method for spectra smooth(x, method = "gaussian", ...)
a spectra object of with smoothed spectra
spectra object. bands must be strictly increasing
Choose smoothing method: "gaussian" (default), "spline", or "moving_average"
additional parameters passed to methods smooth_fwhm, smooth_spline, smooth_moving_avg
smooth_fwhm
smooth_spline
smooth_moving_avg
Jose Eduardo Meireles
library(spectrolab) spec = as_spectra(spec_matrix_example, name_idx = 1) spec = smooth(spec)
Run the code above in your browser using DataLab