scatterCorrect: perform multiplicative scatter correction

scatterCorrectR Documentation

perform multiplicative scatter correction

Description

perform multiplicative scatter correction

Usage

scatterCorrect(object, ...)

## S4 method for signature 'SpectraInTime'
scatterCorrect(object, referenceSpectra = NULL, referenceMethod = "mean")

Arguments

object

a S4 class object such as SpectraInTime-class

...

for internal method consistency

referenceSpectra

the reference spectra when not derived from the current data, defaults to codeNULL when referenceMethod is used to derive the reference spectra from the data

referenceMethod

name of the function used to derive the spectra over the data measurements, defaults to "mean" when the average spectra in the object is used

Details

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

Value

new S4 object with spectra scatter corrected

SpectraInTime-class

Author(s)

Adriaan Blommaert

Examples


 object1   <-  getSpectraInTimeExample()
 object2   <-  scatterCorrect( object1 )
 
   plot( object1 )
   plot( object2 )


spectralAnalysis documentation built on Jan. 11, 2023, 5:15 p.m.