DetrendingCorrection Type

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).

Constructors

Constructor Description

DetrendingCorrection(order)

Full Usage: DetrendingCorrection(order)

Parameters:
    order : int

order : int

Instance members

Instance member Description

this.Export

Full Usage: this.Export

Parameters:
Modifiers: abstract

writer : XmlWriter

this.Process

Full Usage: this.Process

Parameters:
    xMatrix : 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.

xMatrix : 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.

this.Process

Full Usage: this.Process

Parameters:
    xMatrix : 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.

xMatrix : 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).

this.ProcessForPrediction

Full Usage: this.ProcessForPrediction

Parameters:
    xMatrix : 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.

xMatrix : 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.