- Timestamp:
- 12/18/13 13:21:20 (11 years ago)
- 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 102 102 } 103 103 104 public string GetCellAsString(string variableName, int row) { 105 return variableValues[variableName][row].ToString(); 106 } 107 104 108 public IEnumerable<T> GetValues<T>(string variableName) { 105 109 // TODO: test if cast is valid … … 145 149 } 146 150 147 public I Enumerable<string> VariableNames {151 public IList<string> VariableNames { 148 152 get { return variableNames; } 149 153 } -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/PreprocessingDataManipulation.cs
r10234 r10236 14 14 public PreprocessingDataManipulation(IPreprocessingData _prepocessingData) { 15 15 preprocessingData = _prepocessingData; 16 statisticInfo = new StatisticInfo(preprocessingData); 16 //todo 17 statisticInfo = new StatisticInfo(preprocessingData, new SearchLogic(preprocessingData)); 17 18 } 18 19 -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/StatisticInfo.cs
r10216 r10236 7 7 public class StatisticInfo : IStatisticInfo { 8 8 9 private IPreprocessingData preprocessingData; 9 private readonly IPreprocessingData preprocessingData; 10 private readonly ISearchLogic searchLogic; 10 11 11 public StatisticInfo(IPreprocessingData thePreprocessingData ) {12 public StatisticInfo(IPreprocessingData thePreprocessingData, ISearchLogic theSearchLogic) { 12 13 preprocessingData = thePreprocessingData; 14 searchLogic = theSearchLogic; 13 15 } 14 16 … … 44 46 45 47 public int GetMissingValueCount(string variableName) { 46 return preprocessingData.GetMissingValueIndices(variableName).Count();48 return searchLogic.GetMissingValueIndices(variableName).Count(); 47 49 } 48 50 … … 103 105 int count = 0; 104 106 foreach (var variableName in preprocessingData.VariableNames) { 105 if ( preprocessingData.IsMissingValue(variableName, rowIndex)) {107 if (searchLogic.IsMissingValue(variableName, rowIndex)) { 106 108 ++count; 107 109 }
Note: See TracChangeset
for help on using the changeset viewer.