Free cookie consent management tool by TermsFeed Policy Generator

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

Renamed PreprocessingDataStatisticInfo to StatisticInfo

Location:
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3
Files:
1 edited
2 moved

Legend:

Unmodified
Added
Removed
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/HeuristicLab.DataPreprocessing-3.3.csproj

    r10163 r10180  
    8585    </Compile>
    8686    <Compile Include="Implementations\PreprocessingData.cs" />
    87     <Compile Include="PreprocessingDataStatisticInfo.cs" />
    88     <Compile Include="Interfaces\IPreprocessingDataStatisticInfo.cs" />
     87    <Compile Include="StatisticInfo.cs" />
     88    <Compile Include="Interfaces\IStatisticInfo.cs" />
    8989    <Compile Include="Interfaces\IPreprocessingData.cs" />
    9090    <Compile Include="Plugin.cs" />
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Interfaces/IStatisticInfo.cs

    r10178 r10180  
    22using System;
    33namespace HeuristicLab.DataPreprocessing {
    4   public interface IPreprocessingDataStatisticInfo {
     4  public interface IStatisticInfo {
    55
    66    int GetColumnCount();
     
    1616    double GetMostCommonValue(int columnIndex);
    1717    double GetStandardDeviation(int columnIndex);
     18    public int GetDifferentValuesCount<T>(int columnIndex);
    1819  }
    1920}
  • 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.