Click or drag to resize

MultivariateRegressionGetCrossYPredicted Method

Calculates the cross-predicted y values.

Namespace: Altaxo.Calc.Regression.Multivariate
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public static double GetCrossYPredicted(
	double[] xOfXRaw,
	Matrix<double> matrixXRaw,
	Matrix<double> matrixYRaw,
	int numberOfFactors,
	ICrossValidationGroupingStrategy groupingStrategy,
	ISingleSpectrumPreprocessor preprocessSingleSpectrum,
	MultivariateRegression regressionMethod,
	IMatrix<double> yCrossPredicted
)

Parameters

xOfXRaw  Double
The x-values (wavelength, frequency, etc.) of the unpreprocessed spectra.
matrixXRaw  MatrixDouble
Matrix of unpreprocessed spectra (a spectrum is a row in the matrix).
matrixYRaw  MatrixDouble
Matrix of unpreprocessed target variables (e.g. concentrations).
numberOfFactors  Int32
Number of factors used for calculation.
groupingStrategy  ICrossValidationGroupingStrategy
The strategy how to group the spectra for cross prediction.
preprocessSingleSpectrum  ISingleSpectrumPreprocessor
Information how to preprocess the spectra, here: how to process each spectrum separately.
regressionMethod  MultivariateRegression
The type of regression (e.g. PCR, PLS1, PLS2) provided as an empty regression object.
yCrossPredicted  IMatrixDouble
Matrix of cross-predicted y values. Must be of same dimension as the matrixYRaw matrix.

Return Value

Double
Mean number of spectra used for cross prediction.
See Also