Click or drag to resize

PCRRegressionPredict Method

Predicts target variables and/or computes spectral residuals for preprocessed spectra.

Namespace: Altaxo.Calc.Regression.Multivariate
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntax
C#
public static void Predict(
	IROMatrix<double> matrixX,
	IROMatrix<double> xLoads,
	IROMatrix<double> yLoads,
	IROMatrix<double> xScores,
	IReadOnlyList<double> crossProduct,
	int numberOfFactors,
	IMatrix<double>? predictedY,
	IMatrix<double>? spectralResiduals
)

Parameters

matrixX  IROMatrixDouble
Preprocessed spectra (a spectrum = a row in the matrix).
xLoads  IROMatrixDouble
X loadings.
yLoads  IROMatrixDouble
Y loadings.
xScores  IROMatrixDouble
X scores.
crossProduct  IReadOnlyListDouble
Cross-product vector (singular values).
numberOfFactors  Int32
Number of factors to use.
predictedY  IMatrixDouble
If not , receives the predicted (centered) y values.
spectralResiduals  IMatrixDouble
If not , receives spectral residual values.
See Also