Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/18/13 13:21:20 (11 years ago)
Author:
sbreuer
Message:
  • moved missing value functionality to ISearchLogic
  • created IStringConvertibleMatrix implementation and DataGridContentView
Location:
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/PreprocessingData.cs

    r10235 r10236  
    102102    }
    103103
     104    public string GetCellAsString(string variableName, int row) {
     105      return variableValues[variableName][row].ToString();
     106    }
     107
    104108    public IEnumerable<T> GetValues<T>(string variableName) {
    105109      // TODO: test if cast is valid
     
    145149    }
    146150
    147     public IEnumerable<string> VariableNames {
     151    public IList<string> VariableNames {
    148152      get { return variableNames; }
    149153    }
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/PreprocessingDataManipulation.cs

    r10234 r10236  
    1414        public PreprocessingDataManipulation(IPreprocessingData _prepocessingData) {
    1515            preprocessingData = _prepocessingData;
    16             statisticInfo = new StatisticInfo(preprocessingData);
     16          //todo
     17            statisticInfo = new StatisticInfo(preprocessingData, new SearchLogic(preprocessingData));
    1718        }
    1819
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/StatisticInfo.cs

    r10216 r10236  
    77  public class StatisticInfo : IStatisticInfo {
    88
    9     private IPreprocessingData preprocessingData;
     9    private readonly IPreprocessingData preprocessingData;
     10    private readonly ISearchLogic searchLogic;
    1011
    11     public StatisticInfo(IPreprocessingData thePreprocessingData) {
     12    public StatisticInfo(IPreprocessingData thePreprocessingData, ISearchLogic theSearchLogic) {
    1213      preprocessingData = thePreprocessingData;
     14      searchLogic = theSearchLogic;
    1315    }
    1416
     
    4446
    4547    public int GetMissingValueCount(string variableName) {
    46       return preprocessingData.GetMissingValueIndices(variableName).Count();
     48      return searchLogic.GetMissingValueIndices(variableName).Count();
    4749    }
    4850
     
    103105      int count = 0;
    104106      foreach (var variableName in preprocessingData.VariableNames) {
    105         if (preprocessingData.IsMissingValue(variableName, rowIndex)) {
     107        if (searchLogic.IsMissingValue(variableName, rowIndex)) {
    106108          ++count;
    107109        }
Note: See TracChangeset for help on using the changeset viewer.