Stdfir: Difference between revisions

From Eigenvector Research Documentation Wiki
Jump to navigation Jump to search
imported>Jeremy
(Importing text file)
 
imported>Jeremy
(Importing text file)
Line 1: Line 1:
===Purpose===
===Purpose===
Standardization using FIR filtering.
Standardization using FIR filtering.
===Synopsis===
===Synopsis===
:sspec = stdfir(nspec,rspec,win,''mc'')
:sspec = stdfir(nspec,rspec,win,''mc'')
===Description===
===Description===
STDFIR is a moving window multiplicative scatter correction with a fixed window size. This algorithm uses an inverse least squares regression. (Also see MSCORR.)
STDFIR is a moving window multiplicative scatter correction with a fixed window size. This algorithm uses an inverse least squares regression. (Also see MSCORR.)
Inputs are nspec the new spectra to be standardized, rspec the standard spectra from the standard instrument (a row vector that is a reference spectrum), and win is the window width (must be an odd number).
Inputs are nspec the new spectra to be standardized, rspec the standard spectra from the standard instrument (a row vector that is a reference spectrum), and win is the window width (must be an odd number).
If the optional input ''mc'' is 1 {default} the regression allows for an offset and a slope, if ''mc'' is set to 0 only the slope is used (no offset is used i.e. it is a force fit through zero).
If the optional input ''mc'' is 1 {default} the regression allows for an offset and a slope, if ''mc'' is set to 0 only the slope is used (no offset is used i.e. it is a force fit through zero).
The output is sspec the standardized spectra. This routine is based on the method discussed in
The output is sspec the standardized spectra. This routine is based on the method discussed in
Blank, T.B., Sum, S.T., Brown, S.D., and Monfre, S.L.,  "Transfer of Near-Infrared Multivariate Calibrations without Standards", ''Anal. Chem.'', 68(17), 2987-2995, 1996.
Blank, T.B., Sum, S.T., Brown, S.D., and Monfre, S.L.,  "Transfer of Near-Infrared Multivariate Calibrations without Standards", ''Anal. Chem.'', 68(17), 2987-2995, 1996.
===See Also===
===See Also===
[[mscorr]], [[stdgen]]
[[mscorr]], [[stdgen]]

Revision as of 15:27, 3 September 2008

Purpose

Standardization using FIR filtering.

Synopsis

sspec = stdfir(nspec,rspec,win,mc)

Description

STDFIR is a moving window multiplicative scatter correction with a fixed window size. This algorithm uses an inverse least squares regression. (Also see MSCORR.)

Inputs are nspec the new spectra to be standardized, rspec the standard spectra from the standard instrument (a row vector that is a reference spectrum), and win is the window width (must be an odd number).

If the optional input mc is 1 {default} the regression allows for an offset and a slope, if mc is set to 0 only the slope is used (no offset is used i.e. it is a force fit through zero).

The output is sspec the standardized spectra. This routine is based on the method discussed in

Blank, T.B., Sum, S.T., Brown, S.D., and Monfre, S.L., "Transfer of Near-Infrared Multivariate Calibrations without Standards", Anal. Chem., 68(17), 2987-2995, 1996.

See Also

mscorr, stdgen