Ejemplo n.º 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 PLS1Regression CreateFromPreprocessed(IROMatrix matrixX, IROMatrix matrixY, int maxFactors)
        {
            PLS1Regression result = new PLS1Regression();

            result.AnalyzeFromPreprocessed(matrixX, matrixY, maxFactors);
            return(result);
        }
Ejemplo n.º 2
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 PLS1Regression CreateFromPreprocessed(IROMatrix matrixX, IROMatrix matrixY, int maxFactors)
		{
			PLS1Regression result = new PLS1Regression();
			result.AnalyzeFromPreprocessed(matrixX, matrixY, maxFactors);
			return result;
		}