fdaSmooth: Smooth spectra

Description Usage Arguments Value

View source: R/fdaSmooth.R

Description

Compute a smoothed version of the spectra using splines.

Usage

1
fdaSmooth(X_rough, wgts = NULL, wvls = 350:2500)

Arguments

X_rough

A numeric matrix of size N*P, where N is the number of observations (spectra) and P is the number of points (wavelengths) at which spectra are measured.

wgts

A numeric vector of weights for smoothing spectra.

wvls

A numeric vector giving the wavelenghts at which spectra were measured.

Value

A matrix the same size of X_rough containing the smoothed spectra.


pmesperanca/mlevcm documentation built on March 17, 2021, 10:03 p.m.