/// <summary> /// This calculates from the predicted (but still centered) y values the raw y values. /// </summary> /// <param name="matrixY">Matrix of (centered) y values. On return, contains the uncentered y values.</param> /// <param name="calib">Contains the calibration data (mean y and scale y).</param> public static void PostprocessY(IMultivariatePreprocessingModel calib, IMatrix matrixY) { PostprocessY(matrixY,calib.YMean,calib.YScale); }
/// <summary> /// Preprocess the raw spectra for prediction (use the preprocess data from the analysis). /// </summary> /// <param name="calib">The preprocessing data.</param> /// <param name="matrixX">Matrix of raw spectra. On return, contains the preprocessed spectra.</param> public static void PreprocessSpectraForPrediction( IMultivariatePreprocessingModel calib, IMatrix matrixX) { calib.PreprocessOptions.ProcessForPrediction(matrixX,calib.XMean,calib.XScale); }