centscaleSpectra2D: Center and Scale a Spectra2D Object Along the Samples Dimension
Description
This function will optionally center, and optionally scale, a Spectra2D object along the
samples dimension (i.e. this is pixel-wise scaling in the language of multivariate
image analysis). Several scaling options are available.
Usage
centscaleSpectra2D(spectra, center = FALSE, scale = "noscale")
Logical. Should the spectra be centered before possibly scaling? Will give an error
if center = TRUE and a log function is requested for scaling.
scale
A character string indicating the type of scaling to apply. One of
c("autoscale", "Pareto", "log", "log10"). For the log functions, centering is not carried
out since logarithm is not defined for negative values.