Click or drag to resize

MultivariateRegressionPreprocessSpectraForPrediction(ISingleSpectrumPreprocessor, IEnsembleMeanScalePreprocessor, Double, IROMatrixDouble, IReadOnlyListDouble, IReadOnlyListDouble, Double, IMatrixDouble) 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 PreprocessSpectraForPrediction(
	ISingleSpectrumPreprocessor preprocessSingleSpectrum,
	IEnsembleMeanScalePreprocessor preprocessEnsembleOfSpectra,
	double[] xOfXRaw,
	IROMatrix<double> matrixXRaw,
	IReadOnlyList<double> meanX,
	IReadOnlyList<double> scaleX,
	out double[] xOfXPre,
	out IMatrix<double> matrixXPre
)

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).
meanX  IReadOnlyListDouble
Contains the mean spectrum, calculated during the analysis stage.
scaleX  IReadOnlyListDouble
Contains the scaling factor for each spectral slot, calculated during the analysis stage.
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).
See Also