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.3179.0 (4.8.3179.0)
Syntax
C#
public static void PreprocessForAnalysis(
	ISingleSpectrumPreprocessor preprocessSingleSpectrum,
	IEnsembleMeanScalePreprocessor preprocessEnsembleOfSpectra,
	double[] xOfXRaw,
	IROMatrix<double> matrixXRaw,
	IROMatrix<double> matrixYRaw,
	out double[] xOfXPre,
	out IMatrix<double> matrixXPre,
	out IMatrix<double> matrixYPre,
	out IVector<double> meanX,
	out IVector<double> scaleX,
	out IVector<double> meanY,
	out IVector<double> scaleY
)

Parameters

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.
xOfXRaw  Double
The x-values (wavelength, frequency etc.) of the spectra (needed for preprocessing).
matrixXRaw  IROMatrixDouble
Matrix of preprocessed spectra (number of observations, number of wavelengths).
matrixYRaw  IROMatrixDouble
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  IMatrixDouble
On return, contains the matrix of preprocessed spectra (each spectrum is a row in the matrix).
matrixYPre  IMatrixDouble
On return, contains the matrix of preprocessed target variables. Same dimensions as matrixYRaw.
meanX  IVectorDouble
Contains the mean spectrum, calculated during the analysis stage.
scaleX  IVectorDouble
Contains the scaling factor for each spectral slot, calculated during the analysis stage.
meanY  IVectorDouble
On return, contains the mean value of the target variables (mean of all measurements).
scaleY  IVectorDouble
On return, contains the scaling factor for the target variables.
See Also