Click or drag to resize

MultivariateRegressionCrossValidationIteration Method

This function separates the spectra into a bunch of spectra used for calibration and the rest of spectra used for prediction. This separation is repeated until all spectra are used exactly one time for prediction.

Namespace: Altaxo.Calc.Regression.Multivariate
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static double CrossValidationIteration(
	IROMatrix<double> matrixXRaw,
	IROMatrix<double> matrixYRaw,
	ICrossValidationGroupingStrategy groupingStrategy,
	MultivariateRegressionCrossValidationIterationFunction crossFunction
)

Parameters

matrixXRaw  IROMatrixDouble
Matrix of spectra (horizontal oriented).
matrixYRaw  IROMatrixDouble
Matrix of y values.
groupingStrategy  ICrossValidationGroupingStrategy
The strategy how to separate the spectra into the calibration and prediction spectra.
crossFunction  MultivariateRegressionCrossValidationIterationFunction
The function that is called for each separation.

Return Value

Double
The mean number of spectra that was used for prediction.
See Also