This class detrends all spectra. This is done by fitting a polynomial to the spectrum (x value is simply the index of data point), and then subtracting the fit curve from the spectrum. The degree of the polynomial can be choosen between 0 (the mean is subtracted), 1 (a fitted straight line is subtracted).
Constructor | Description |
Full Usage:
DetrendingCorrection(order)
Parameters:
int
|
|
Instance member | Description |
|
|
Full Usage:
this.Process
Parameters:
IMatrix<float>
-
The matrix of spectra. Each spectrum is a row of the matrix.
xMean : IVector<float>
-
Not used, since this processing sets xMean by itself (to zero).
xScale : IVector<float>
-
Not used, since the processing sets xScale by itself.
regions : int[]
-
Vector of spectal regions. Each element is the index of the start of a new region.
Modifiers: abstract |
Processes the spectra in matrix xMatrix.
|
Full Usage:
this.Process
Parameters:
IMatrix<float>
-
The matrix of spectra. Each spectrum is a row of the matrix.
xMean : IReadOnlyList<float>
-
Not used.
xScale : IReadOnlyList<float>
-
Not used.
regionstart : int
-
Starting index of the region.
regionend : int
-
End index of the region (one behind the last region element).
|
Processes the spectra in matrix xMatrix for prediction.
|
Full Usage:
this.ProcessForPrediction
Parameters:
IMatrix<float>
-
The matrix of spectra. Each spectrum is a row of the matrix.
xMean : IReadOnlyList<float>
-
Not used.
xScale : IReadOnlyList<float>
-
Not used.
regions : int[]
-
Vector of spectal regions. Each element is the index of the start of a new region.
Modifiers: abstract |
Processes the spectra in matrix xMatrix for prediction.
|