MultivariateRegressionGetCrossPRESS Method |
Get the cross predicted error sum of squares for the number of factors=0...numFactors.
Namespace: Altaxo.Calc.Regression.MultivariateAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static double GetCrossPRESS(
double[] xOfXRaw,
IROMatrix<double> matrixXRaw,
IROMatrix<double> matrixYRaw,
int maximalNumberOfFactors,
ICrossValidationGroupingStrategy groupingStrategy,
ISingleSpectrumPreprocessor preprocessSingleSpectrum,
IEnsembleMeanScalePreprocessor preprocessEnsembleOfSpectra,
MultivariateRegression regressionMethod,
out IReadOnlyList<double> crossPRESS
)
Parameters
- xOfXRaw Double
- The x-values (wavelength, frequency, etc) of the unpreprocessed spectra.
- matrixXRaw IROMatrixDouble
- Matrix of unpreprocessed spectra (a spectrum is a row in the matrix).
- matrixYRaw IROMatrixDouble
- Matrix of unpreprocessed target variables (e.g. concentrations).
- maximalNumberOfFactors Int32
- Maximum number of factors to calculate the cross PRESS for.
- 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.
- preprocessEnsembleOfSpectra IEnsembleMeanScalePreprocessor
- Information how to preprocess the spectra, here: how to process the spectra ensemble.
- regressionMethod MultivariateRegression
- The type of regression (e.g. PCR, PLS1, PLS2) provided as an empty regression object.
- crossPRESS IReadOnlyListDouble
- The vector of CROSS press values. Note that this vector has the length numFactor+1.
Return Value
DoubleThe mean number of spectra used for prediction.
See Also