spc.loess {hyperSpec}R Documentation

loess smoothing interpolation for spectra

Description

Spectra can be smoothed and interpolated on a new wavelength axis using loess.

Usage

spc.loess(spc, newx, ..., short = NULL, user = NULL, date = NULL)

Arguments

spc the hyperSpec object
newx wavelengh axis tointrpolate on
... parameters for loess and loess.control.
If enp.target is not given, it defaults to nwl (spc) / 4.
If surface is not given, it defaults to "direct".
short, user, date handed to logentry.

Details

Applying loess to each of the spectra, an interpolation onto a new wavelength axis is performed. At the same time, the specta are smoothed in order to increase the signal : noise ratio. See loess and loess.control on the parameters that control the amount of smoothing.

Value

a new hyperspec object.

Author(s)

C. Beleites

See Also

loess, loess.control

Examples

plot (flu)
plot (spc.loess(flu, seq (420, 470, 5), enp.target = 15, surface = "direct"), 
      add = TRUE, col = "red", lines.args = list (type = "b", pch = 20))

[Package hyperSpec version 0.95 Index]