Learn R Programming

spectrolab (version 0.0.18)

smooth_spline: Smooth spline functions for spectra

Description

Gets spline functions for each spectrum in a spectra object.

Usage

smooth_spline(x, parallel = TRUE, return_fn = FALSE, ...)

Value

Smoothed spectra or, if return_fn = TRUE, a list of spline functions.

Arguments

x

spectra object. bands must be strictly increasing

parallel

boolean. Do computation in parallel? Defaults to TRUE. Unfortunately, the parallelization does not work on Windows.

return_fn

Boolean. If TRUE, smooth_spline returns the spline functions instead of the smoothed spectra. Defaults to FALSE

...

additional parameters passed to smooth.spline except nknots, which is computed internally

Author

Jose Eduardo Meireles