PCRRegression contains static methods for doing principal component regression analysis and prediction of the data.
Constructor | Description |
Full Usage:
PCRRegression()
|
|
Instance member | Description |
|
|
|
|
Full Usage:
this.PredictedYAndSpectralResidualsFromPreprocessed
Parameters:
IROMatrix<float>
-
Matrix of unknown spectra (preprocessed the same way as the calibration spectra).
numFactors : int
-
Number of factors used for prediction.
predictedY : IMatrix<float>
-
On return, holds the predicted y values. (They are centered).
spectralResiduals : IMatrix<float>
-
On return, holds the spectral residual values.
Modifiers: abstract |
This predicts concentrations of unknown spectra.
|
Full Usage:
this.Reset
Modifiers: abstract |
|
Full Usage:
this.SetCalibrationModel
Parameters:
IMultivariateCalibrationModel
Modifiers: abstract |
|
Static member | Description |
|
|
Full Usage:
PCRRegression.CalculatePRESS(matrixX, xLoads, yLoads, xScores, crossProduct, numberOfFactors, PRESS)
Parameters:
IROMatrix<float>
xLoads : IROMatrix<float>
yLoads : IROMatrix<float>
xScores : IROMatrix<float>
crossProduct : IReadOnlyList<float>
numberOfFactors : int
PRESS : byref<IROVector<float>>
|
|
|
|
Full Usage:
PCRRegression.CreateFromPreprocessed(matrixX, matrixY, maxFactors)
Parameters:
IROMatrix<float>
-
The spectral matrix (each spectrum is a row in the matrix). They must at least be centered.
matrixY : IROMatrix<float>
-
The matrix of concentrations (each experiment is a row in the matrix). They must at least be centered.
maxFactors : int
-
Maximum number of factors for analysis.
Returns: PCRRegression
A regression object, which holds all the loads and weights neccessary for further calculations.
|
Creates an analyis from preprocessed spectra and preprocessed concentrations.
|
|
|
Full Usage:
PCRRegression.GetPredictionScoreMatrix(xLoads, yLoads, xScores, crossProduct, numberOfFactors, predictionScores)
Parameters:
IROMatrix<float>
yLoads : IROMatrix<float>
xScores : IROMatrix<float>
crossProduct : IReadOnlyList<float>
numberOfFactors : int
predictionScores : IMatrix<float>
|
|
Full Usage:
PCRRegression.GetSpectralResiduals(matrixX, xLoads, yLoads, xScores, crossProduct, numberOfFactors, spectralResiduals)
Parameters:
IROMatrix<float>
xLoads : IROMatrix<float>
yLoads : IROMatrix<float>
xScores : IROMatrix<float>
crossProduct : IReadOnlyList<float>
numberOfFactors : int
spectralResiduals : IMatrix<float>
|
|
Full Usage:
PCRRegression.Predict(matrixX, xLoads, yLoads, xScores, crossProduct, numberOfFactors, predictedY, spectralResiduals)
Parameters:
IROMatrix<float>
xLoads : IROMatrix<float>
yLoads : IROMatrix<float>
xScores : IROMatrix<float>
crossProduct : IReadOnlyList<float>
numberOfFactors : int
predictedY : IMatrix<float>
spectralResiduals : IMatrix<float>
|
|