Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/04/13 12:46:14 (10 years ago)
Author:
rstoll
Message:

Renamed PreprocessingDataStatisticInfo to StatisticInfo

File:
1 moved

Legend:

Unmodified
Added
Removed
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/StatisticInfo.cs

    r10179 r10180  
    55namespace HeuristicLab.DataPreprocessing {
    66
    7   class PreprocessingDataStatisticInfo : IPreprocessingDataStatisticInfo {
     7  class StatisticInfo : IStatisticInfo {
    88
    99    private IPreprocessingData preprocessingData;
    1010
    11     public PreprocessingDataStatisticInfo(IPreprocessingData thePreprocessingData) {
     11    public StatisticInfo(IPreprocessingData thePreprocessingData) {
    1212      preprocessingData = thePreprocessingData;
    1313    }
     
    8080
    8181    public T GetMostCommonValue<T>(int columnIndex) {
    82        return preprocessingData.GetValues<T>(columnIndex)
    83                                .GroupBy( x => x )
    84                                .OrderByDescending( g => g.Count() )
    85                                .Select( g => g.Key )
    86                                .First();
     82      return preprocessingData.GetValues<T>(columnIndex)
     83                              .GroupBy(x => x)
     84                              .OrderByDescending(g => g.Count())
     85                              .Select(g => g.Key)
     86                              .First();
    8787    }
    8888
     
    9797    }
    9898
    99     public int GetDifferentValueCount<T>(int columnIndex) {
     99    public int GetDifferentValuesCount<T>(int columnIndex) {
    100100      return preprocessingData.GetValues<T>(columnIndex).GroupBy(x => x).Count();
    101101    }
Note: See TracChangeset for help on using the changeset viewer.