Esempio n. 1
0
        public PcaTransform(INumberTable numberTable)
        {
            baseTable  = numberTable.GetPcaEigenvectors(null, 0).Transpose();
            columnMean = new double[numberTable.Columns];
            IList <IList <double> > m = numberTable.Matrix;

            for (int col = 0; col < numberTable.Columns; col++)
            {
                columnMean[col] = 0;
                for (int row = 0; row < numberTable.Rows; row++)
                {
                    columnMean[col] += m[row][col];
                }
                columnMean[col] /= numberTable.Rows;
            }
        }