View source: R/transform_spectra.R
smooth.spectra | R Documentation |
smooth
runs each spectrum by a smoothing and returns the spectra
## S3 method for class 'spectra' smooth(x, method = "spline", ...)
x |
spectra object. bands must be strictly increasing |
method |
Choose smoothing method: "spline" (default) or "moving_average" |
... |
additional parameters passed to |
a spectra object of with smoothed spectra
Jose Eduardo Meireles
library(spectrolab) spec = as_spectra(spec_matrix_example, name_idx = 1) spec = smooth(spec, parallel = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.