spectralIntegration: Integrate spectraInTime object

Description Usage Arguments Value Examples

View source: R/spectralIntegration.R

Description

The integrated value over a user-specified wavelength range is calculated (trapezium rule) per time point, afterwards smoothing over time can be applied

Usage

1
2
spectralIntegration(object, wavelenghtRange, smoothingValue = 0,
  timeUnit = "seconds")

Arguments

object

SpectraInTime-class

wavelenghtRange

numeric vector of 2 elements i.e. integration limits

smoothingValue

numeric value between 0 and 1, amount of codelowess-smoothing, default to 0 i.e no smoothing. Note that smoothing is applied after integration

timeUnit

character value, choose between: second , minutes and hours, defaults to seconds

Value

data.frame with variables time and integratedValue

Examples

1
2
3
4
5
spectra                   <-  getSpectraInTimeExample()
defaults                  <-  spectralIntegration( spectra , c(200 , 300) , timeUnit = "hours" )
unsmoothedTrend           <-  spectralIntegration( spectra , c(200 , 300) , timeUnit = "hours" )
smoothedTrend             <-  spectralIntegration( spectra , c(200 , 300) ,
  smoothingValue = 0.5 , timeUnit = "hours" ) 

spectralAnalysis documentation built on June 12, 2018, 5:04 p.m.