This function implements an EMSC similar to the approach
described in Martens2003 (see below). In contrast to the
notation there, all reference spectra are given in
one matrix. Arguments bg.comps
and
norm.comps
specify which spectra belong to
background components or should be considered for
normalization.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18  emsc(X, Reference = NULL, bg.comps = NULL,
norm.comps = NULL, ...)
## S4 method for signature 'hyperSpec,numeric'
emsc(X, Reference,
bg.comps, norm.comps, ...)
## S4 method for signature 'hyperSpec,matrix'
emsc(X, Reference, bg.comps,
norm.comps, ...)
## S4 method for signature 'hyperSpec,missing'
emsc(X, Reference,
bg.comps, norm.comps, ...)
## S4 method for signature 'hyperSpec,hyperSpec'
emsc(X, Reference,
bg.comps, norm.comps, ...)

X 
spectra matrix in rows 
Reference 
constituents matrix in rows matrix with reference spectra rows 
bg.comps 
background components indices 
norm.comps 
normalization components indices 
... 
hyperSpec method: further arguments to

Polynomials can be generated with
vanderMonde
.
new spectra matrix
hyperSpec method: hyperSpec object containing emsc corrected spectrum of input hyperSpec object X, given matrix: Reference, vectors: bg.comps, norm.comps, indices.
hyperSpec method: hyperSpec object containing emsc corrected spectrum of input hyperSpec objects: X and Reference, vectors: bg.comps and norm.comps, indices.
C.Beleites & S. Fuller
Martens, H.; Nielsen, J. P. and Engelsen, S. B.: Light Scattering and Light Absorbance Separated by Extended Multiplicative Signal Correction. Application to NearInfrared Transmission Analysis of Powder Mixtures, Analytical Chemistry (2003) 75, 394404.
msc
was used as starting point for
this function.
1 2 3 4 
Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.
All documentation is copyright its authors; we didn't write any of that.