Exemple #1
0
        /// <summary>
        /// Creates an analyis from preprocessed spectra and preprocessed concentrations.
        /// </summary>
        /// <param name="matrixX">The spectral matrix (each spectrum is a row in the matrix). They must at least be centered.</param>
        /// <param name="matrixY">The matrix of concentrations (each experiment is a row in the matrix). They must at least be centered.</param>
        /// <param name="maxFactors">Maximum number of factors for analysis.</param>
        /// <returns>A regression object, which holds all the loads and weights neccessary for further calculations.</returns>
        public static PCRRegression CreateFromPreprocessed(IROMatrix matrixX, IROMatrix matrixY, int maxFactors)
        {
            PCRRegression result = new PCRRegression();

            result.AnalyzeFromPreprocessed(matrixX, matrixY, maxFactors);
            return(result);
        }
 /// <summary>
 /// Creates an analyis from preprocessed spectra and preprocessed concentrations.
 /// </summary>
 /// <param name="matrixX">The spectral matrix (each spectrum is a row in the matrix). They must at least be centered.</param>
 /// <param name="matrixY">The matrix of concentrations (each experiment is a row in the matrix). They must at least be centered.</param>
 /// <param name="maxFactors">Maximum number of factors for analysis.</param>
 /// <returns>A regression object, which holds all the loads and weights neccessary for further calculations.</returns>
 public static PCRRegression CreateFromPreprocessed(IROMatrix matrixX, IROMatrix matrixY, int maxFactors)
 {
   PCRRegression result = new PCRRegression();
   result.AnalyzeFromPreprocessed(matrixX,matrixY,maxFactors);
   return result;
 }