예제 #1
0
        private void updateRank(double[] gains, int number, ref DataTable dt)
        {
            Dictionary <int, int> rankResult = rankIndexes(gains, number);

            int[] rankStr = new int[rankResult.Count];
            for (int i = 0; i < rankResult.Count; i++)
            {
                rankStr[i] = rankResult[i] + 1;
            }
            Preprocessor prep = new Preprocessor();

            prep.AppendColumn <int>(dt, "Rank", rankStr);
        }
예제 #2
0
 private void updateRank(double[] gains, int number, ref DataTable dt)
 {
     Dictionary<int, int> rankResult = rankIndexes(gains, number);
     int[] rankStr = new int[rankResult.Count];
     for(int i = 0; i< rankResult.Count ;i++)
     {
         rankStr[i] = rankResult[i]+1;
     }
     Preprocessor prep = new Preprocessor();
     prep.AppendColumn<int>(dt, "Rank", rankStr);
 }