MultivariateRegressionGetCrossYPredicted Method |
Calculates the cross predicted y values.
Namespace: Altaxo.Calc.Regression.MultivariateAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static double GetCrossYPredicted(
double[] xOfXRaw,
IROMatrix<double> matrixXRaw,
IROMatrix<double> matrixYRaw,
int numberOfFactors,
ICrossValidationGroupingStrategy groupingStrategy,
ISingleSpectrumPreprocessor preprocessSingleSpectrum,
IEnsembleMeanScalePreprocessor preprocessEnsembleOfSpectra,
MultivariateRegression regressionMethod,
IMatrix<double> yCrossPredicted
)
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).
- 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.
- 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.
- yCrossPredicted IMatrixDouble
- Matrix of cross predicted y values. Must be of same dimension as the Y matrix.
Return Value
DoubleMean number of spectra used for cross prediction.
See Also