# \donttest{
# generate example
exampleSpectra <- getSpectraInTimeCompExample()
# methods
PCAResult <- getDimensionReduction( exampleSpectra, type = "PCA" )
NMFResult <- getDimensionReduction( exampleSpectra, type = "NMF" )
dimensionReductions <- getDimensionReduction( exampleSpectra )
str(dimensionReductions )
# subsetting works by reducing to \code{\link{SpectraInTime-class}}
subsetting <- exampleSpectra[1:3 , r(400, 450)]
# preprocessing methods also reduce the object to \code{\link{SpectraInTime-class}}
# }
Run the code above in your browser using DataLab