SpectraInTimeComp-class {spectralAnalysis}R Documentation

SpectraInTimeComp-class (time resolved spectra )

Description

Spectral-time data for 1 experiment with dimension reduction techique NMF and/or PCA decomposition included

Usage

## S4 method for signature 'SpectraInTimeComp'
getDimensionReduction(object, type = NULL)

Arguments

object

of class SpectraInTimeComp-class

type

type of regression method specified, if NULL the entire slot is returned as a list

Slots

dimensionReduction

list containing dimension reduction techique, either PCA or NMF, but only one per kind.

Author(s)

Adriaan Blommaert

Examples




  #  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}}




[Package spectralAnalysis version 4.3.3 Index]