Changeset 10187
- Timestamp:
- 12/04/13 14:11:12 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/PreprocessingData.cs
r10186 r10187 26 26 using HeuristicLab.Common; 27 27 using HeuristicLab.Core; 28 using HeuristicLab.DataPreprocessing;29 28 using HeuristicLab.Problems.DataAnalysis; 30 29 … … 46 45 variableNameIndices = new Dictionary<string, int>(variableNameIndices); 47 46 } 48 47 49 48 public PreprocessingData(IDataAnalysisProblemData problemData) 50 49 : base() { 51 50 Name = "-"; 52 51 53 variableNames = new List<string>(problemData.Dataset.VariableNames) );52 variableNames = new List<string>(problemData.Dataset.VariableNames); 54 53 // create dictionary from variable name to index 55 54 variableNameIndices = new Dictionary<string, int>(); … … 58 57 variableNameIndices.Add(variableNamesList[i], i); 59 58 } 60 59 61 60 // copy values 62 61 variableValues = new Dictionary<string, IList>(); … … 101 100 102 101 public void SetCell<T>(int columnIndex, int rowIndex, T value) { 103 throw new NotImplementedException();102 variableValues[variableNames[columnIndex]][rowIndex] = value; 104 103 } 105 104 106 105 public T GetCell<T>(string variableName, int row) { 107 throw new NotImplementedException();106 return (T)variableValues[variableName][row]; 108 107 } 109 108 110 109 public void SetCell<T>(string variableName, int row, T value) { 111 throw new NotImplementedException();110 variableValues[variableName][row] = value; 112 111 } 113 112 114 113 public IEnumerable<T> GetValues<T>(int columnIndex) { 115 throw new NotImplementedException();114 return (IEnumerable<T>)variableValues[variableNames[columnIndex]]; 116 115 } 117 116 118 117 public IEnumerable<T> GetValues<T>(string variableName) { 119 throw new NotImplementedException();118 return (IEnumerable<T>)variableValues[variableName]; 120 119 } 121 120 122 121 public void SetValues<T>(int columnIndex, IEnumerable<T> values) { 123 throw new NotImplementedException();122 variableValues[variableNames[columnIndex]] = values.ToList(); 124 123 } 125 124 126 125 public void SetValues<T>(string variableName, IEnumerable<T> values) { 127 throw new NotImplementedException();126 variableValues[variableName] = values.ToList(); 128 127 } 129 128
Note: See TracChangeset
for help on using the changeset viewer.