View source: R/spectralIntegration.R
spectralIntegration | R Documentation |
The integrated value over a user-specified spectral range is calculated (trapezium rule) per time point, afterwards smoothing over time can be applied
spectralIntegration( object, spectralRange, smoothingValue = 0, timeUnit = "seconds" )
object |
|
spectralRange |
numeric vector of 2 elements i.e. integration limits |
smoothingValue |
numeric value between 0 and 1, amount of codelowess-smoothing,
default to |
timeUnit |
character value, choose between: |
data.frame
with variables time
and integratedValue
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" )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.