Click or drag to resize

PCRRegressionGetSpectralResiduals Method

Calculates spectral residuals for each spectrum as the sum of squared differences between the original spectrum and the reconstruction from the specified number of factors.

Namespace: Altaxo.Calc.Regression.Multivariate
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntax
C#
public static void GetSpectralResiduals(
	IROMatrix<double> matrixX,
	IROMatrix<double> xLoads,
	IROMatrix<double> yLoads,
	IROMatrix<double> xScores,
	IReadOnlyList<double> crossProduct,
	int numberOfFactors,
	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.
spectralResiduals  IMatrixDouble
Matrix receiving the spectral residual values. Typically has dimensions (number of spectra, 1).
See Also