SavitzkyGolayCorrection Type

This class processes the spectra for influence of scattering.

Constructors

Constructor Description

SavitzkyGolayCorrection(numberOfPoints, derivativeOrder, polynomialOrder)

Full Usage: SavitzkyGolayCorrection(numberOfPoints, derivativeOrder, polynomialOrder)

Parameters:
    numberOfPoints : int - Number of points. Must be an odd number, otherwise it is rounded up.
    derivativeOrder : int - Order of derivative you want to obtain. Set 0 for smothing.
    polynomialOrder : int - Order of the fitting polynomial. Usual values are 2 or 4.

This sets up a Savitzky-Golay-Filtering for all spectra.

numberOfPoints : int

Number of points. Must be an odd number, otherwise it is rounded up.

derivativeOrder : int

Order of derivative you want to obtain. Set 0 for smothing.

polynomialOrder : int

Order of the fitting polynomial. Usual values are 2 or 4.

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

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.
    regionstart : int - Starting index of the region to process.
    regionend : int - End index of the region to process.

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 to process.

regionend : int

End index of the region to process.