- Timestamp:
- 12/04/13 12:46:14 (10 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/StatisticInfo.cs
r10179 r10180 5 5 namespace HeuristicLab.DataPreprocessing { 6 6 7 class PreprocessingDataStatisticInfo : IPreprocessingDataStatisticInfo {7 class StatisticInfo : IStatisticInfo { 8 8 9 9 private IPreprocessingData preprocessingData; 10 10 11 public PreprocessingDataStatisticInfo(IPreprocessingData thePreprocessingData) {11 public StatisticInfo(IPreprocessingData thePreprocessingData) { 12 12 preprocessingData = thePreprocessingData; 13 13 } … … 80 80 81 81 public T GetMostCommonValue<T>(int columnIndex) { 82 83 .GroupBy( x => x)84 .OrderByDescending( g => g.Count())85 .Select( g => g.Key)86 82 return preprocessingData.GetValues<T>(columnIndex) 83 .GroupBy(x => x) 84 .OrderByDescending(g => g.Count()) 85 .Select(g => g.Key) 86 .First(); 87 87 } 88 88 … … 97 97 } 98 98 99 public int GetDifferentValue Count<T>(int columnIndex) {99 public int GetDifferentValuesCount<T>(int columnIndex) { 100 100 return preprocessingData.GetValues<T>(columnIndex).GroupBy(x => x).Count(); 101 101 }
Note: See TracChangeset
for help on using the changeset viewer.