- Timestamp:
- 04/23/14 14:04:01 (11 years ago)
- Location:
- branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/ManipulationContent.cs
r10709 r10776 30 30 31 31 private IManipulationLogic manipulationLogic; 32 private ISearchLogic searchLogic; 32 33 33 public ManipulationContent(IManipulationLogic theManipulationLogic ) {34 public ManipulationContent(IManipulationLogic theManipulationLogic, ISearchLogic theSearchLogic) { 34 35 manipulationLogic = theManipulationLogic; 36 searchLogic = theSearchLogic; 35 37 } 36 38 … … 47 49 } 48 50 51 public ISearchLogic SearchLogic { 52 get { 53 return searchLogic; 54 } 55 } 49 56 50 57 public static new Image StaticItemImage { -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/SearchLogic.cs
r10737 r10776 29 29 private readonly ITransactionalPreprocessingData preprocessingData; 30 30 31 private Dictionary<int, I Enumerable<int>> MissingValueIndicies { get; set; }31 private Dictionary<int, IList<int>> MissingValueIndicies { get; set; } 32 32 private Dictionary<int, IEnumerable> ValuesWithoutNaN { get; set; } 33 33 … … 35 35 preprocessingData = thePreprocessingData; 36 36 37 MissingValueIndicies = new Dictionary<int, I Enumerable<int>>();37 MissingValueIndicies = new Dictionary<int, IList<int>>(); 38 38 ValuesWithoutNaN = new Dictionary<int, IEnumerable>(); 39 39 … … 57 57 case DataPreprocessingChangedEventType.Any: 58 58 case DataPreprocessingChangedEventType.Transformation: 59 MissingValueIndicies = new Dictionary<int, I Enumerable<int>>();59 MissingValueIndicies = new Dictionary<int, IList<int>>(); 60 60 ValuesWithoutNaN = new Dictionary<int, IEnumerable>(); 61 61 break; … … 63 63 } 64 64 65 public IDictionary< string, IEnumerable<int>> GetMissingValueIndices() {66 var dic = new Dictionary< string, IEnumerable<int>>();67 for each (string variableName in preprocessingData.VariableNames) {68 dic.Add( variableName, GetMissingValueIndices(preprocessingData.GetColumnIndex(variableName)));65 public IDictionary<int, IList<int>> GetMissingValueIndices() { 66 var dic = new Dictionary<int, IList<int>>(); 67 for (int i = 0; i < preprocessingData.Columns; ++i) { 68 dic.Add(i, GetMissingValueIndices(i)); 69 69 } 70 70 return dic; … … 83 83 } 84 84 85 public I Enumerable<int> GetMissingValueIndices(int columnIndex) {85 public IList<int> GetMissingValueIndices(int columnIndex) { 86 86 if (!MissingValueIndicies.ContainsKey(columnIndex)){ 87 87 if (preprocessingData.IsType<double>(columnIndex)) { … … 98 98 return MissingValueIndicies[columnIndex]; 99 99 } 100 private I Enumerable<int> GetMissingValueIndices<T>(int columnIndex) {100 private IList<int> GetMissingValueIndices<T>(int columnIndex) { 101 101 List<int> missingIndices = new List<int>(); 102 102 -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Interfaces/ISearchLogic.cs
r10661 r10776 26 26 /// <summary> 27 27 /// Return the indices of the missing values where the key 28 /// correspdonds to the variable nameand the values to the row indices28 /// correspdonds to the columbn index and the values to the row indices 29 29 /// </summary> 30 30 /// <returns></returns> 31 IDictionary< string, IEnumerable<int>> GetMissingValueIndices();31 IDictionary<int, IList<int>> GetMissingValueIndices(); 32 32 33 33 /// <summary> … … 35 35 /// </summary> 36 36 /// <returns></returns> 37 I Enumerable<int> GetMissingValueIndices(int columnIndex);37 IList<int> GetMissingValueIndices(int columnIndex); 38 38 39 39 bool IsMissingValue(int columnIndex, int rowIndex);
Note: See TracChangeset
for help on using the changeset viewer.