normalize | R Documentation |
generic normalization function
normalize(object, ...) ## S4 method for signature 'SpectraInTime' normalize( object, method = "normalize", spectralRange = r(-Inf, Inf), spectralAxisVal = NULL, scaleFunction = "sd", meanFunction = NULL ) ## S4 method for signature 'SpectraInTimeComp' normalize(object, ...)
object |
a S4 class object |
... |
additional parameters |
method |
a method for normalization or peak correction , choose from: * normalize substract |
spectralRange |
range for integration if method = |
spectralAxisVal |
reference spectral axis value (wavelength or other) for |
scaleFunction |
scale function used when method = |
meanFunction |
mean function used when method = |
SpectraInTime-class
spectralEx <- getSpectraInTimeExample() timeRange <- range( getTimePoints( spectralEx )) timesToSelect <- e( seq( timeRange[1] , timeRange[2] , length.out = 5 ) ) plot( spectralEx ) plot( spectralEx[ timesToSelect , ] , type = "time" ) normalizePeak <- normalize( spectralEx , method = "peak" , spectralAxisVal = 400 ) getPreprocessing( normalizePeak ) plot( normalizePeak[ timesToSelect , ] , type = "time" ) plot( normalizePeak ) normalizeIntegration <- normalize( spectralEx , method = "integration" ) plot( normalizeIntegration[ timesToSelect , ] , type = "time" ) normalizedUser <- normalize( spectralEx , method = "normalize" , mean = "median" , scale = "sd" ) plot( normalizedUser[ timesToSelect , ] , type = "time" )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.