scatterCorrect | R Documentation |
perform multiplicative scatter correction
scatterCorrect(object, ...) ## S4 method for signature 'SpectraInTime' scatterCorrect(object, referenceSpectra = NULL, referenceMethod = "mean")
object |
a S4 class object such as |
... |
for internal method consistency |
referenceSpectra |
the reference spectra when not derived from the current data, defaults to codeNULL when |
referenceMethod |
name of the function used to derive the spectra over the data measurements, defaults to |
multiplicative scatter correction consist of fitting regressing each spectra against the reference spectra and using the coefficients of this regression model to correct for multiplicative light scatter by substracting the intercept and dividing by the slope
new S4 object with spectra scatter corrected
SpectraInTime-class
Adriaan Blommaert
object1 <- getSpectraInTimeExample() object2 <- scatterCorrect( object1 ) plot( object1 ) plot( object2 )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.