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); }
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); }