Click or drag to resize

MultivariateRegressionPreprocessForAnalysis Method

Preprocesses the x and y matrices before usage in multivariate calibrations.

Namespace: Altaxo.Calc.Regression.Multivariate
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public static void PreprocessForAnalysis(
	ISingleSpectrumPreprocessor preprocessSingleSpectrum,
	double[] xOfXRaw,
	Matrix<double> matrixXRaw,
	Matrix<double> matrixYRaw,
	out double[] xOfXPre,
	out Matrix<double> matrixXPre,
	out IEnsembleProcessingAuxiliaryData auxDataX,
	out Matrix<double> matrixYPre,
	out Vector<double> meanY,
	out Vector<double> scaleY
)

Parameters

preprocessSingleSpectrum  ISingleSpectrumPreprocessor
Information how to preprocess the spectra, here: how to process each spectrum separately.
xOfXRaw  Double
The x-values (wavelength, frequency, etc.) of the spectra (needed for preprocessing).
matrixXRaw  MatrixDouble
Matrix of preprocessed spectra (number of observations, number of wavelengths).
matrixYRaw  MatrixDouble
Matrix of target variables. Each measurement (belonging to a spectrum) represents one row.
xOfXPre  Double
On return, contains the x-values of the preprocessed spectra.
matrixXPre  MatrixDouble
On return, contains the matrix of preprocessed spectra (each spectrum is a row in the matrix).
auxDataX  IEnsembleProcessingAuxiliaryData
Contains data from the ensemble preprocessing that is needed later on for preprocessing spectra for prediction.
matrixYPre  MatrixDouble
On return, contains the matrix of preprocessed target variables. Same dimensions as matrixYRaw.
meanY  VectorDouble
On return, contains the mean value of the target variables (mean of all measurements).
scaleY  VectorDouble
On return, contains the scaling factor for the target variables.
See Also