smooth.spectra {spectrolab} | R Documentation |
Smooth spectra
Description
smooth
runs each spectrum by a smoothing and returns the spectra
Usage
## S3 method for class 'spectra'
smooth(x, method = "gaussian", ...)
Arguments
x |
spectra object. bands must be strictly increasing |
method |
Choose smoothing method: "gaussian" (default), "spline", or "moving_average" |
... |
additional parameters passed to methods |
Value
a spectra object of with smoothed spectra
Author(s)
Jose Eduardo Meireles
Examples
library(spectrolab)
spec = as_spectra(spec_matrix_example, name_idx = 1)
spec = smooth(spec)
[Package spectrolab version 0.0.19 Index]