MultivariateRegressionGetCrossXResiduals Method |
Calculates the spectral residuals obtained from cross validation.
Namespace: Altaxo.Calc.Regression.MultivariateAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static double GetCrossXResiduals(
double[] xOfXRaw,
IROMatrix<double> matrixXRaw,
IROMatrix<double> matrixYRaw,
int numFactors,
ICrossValidationGroupingStrategy groupingStrategy,
ISingleSpectrumPreprocessor preprocessSingleSpectrum,
IEnsembleMeanScalePreprocessor preprocessEnsembleOfSpectra,
MultivariateRegression regress,
out IROMatrix<double> crossXResiduals
)
Parameters
- xOfXRaw Double
- The x-values (wavelength, frequency, etc) of the unpreprocessed spectra.
- matrixXRaw IROMatrixDouble
- Matrix of spectra (a spectrum = a row in the matrix).
- matrixYRaw IROMatrixDouble
- Matrix of y values (e.g. concentrations).
- numFactors 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.
- regress MultivariateRegression
- The type of regression (e.g. PCR, PLS1, PLS2) provided as an empty regression object.
- crossXResiduals IROMatrixDouble
- Returns the matrix of spectral residuals
Return Value
DoubleMean number of spectra used for prediction.
See Also