- Timestamp:
- 12/04/13 14:14:17 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/PreprocessingData.cs
r10187 r10188 95 95 #region IPreprocessingData Members 96 96 97 public T GetCell<T>(int columnIndex, int rowIndex) {98 return (T)variableValues[variableNames[columnIndex]][rowIndex];99 }100 101 public void SetCell<T>(int columnIndex, int rowIndex, T value) {102 variableValues[variableNames[columnIndex]][rowIndex] = value;103 }104 105 97 public T GetCell<T>(string variableName, int row) { 106 98 return (T)variableValues[variableName][row]; … … 111 103 } 112 104 113 public IEnumerable<T> GetValues<T>(int columnIndex) {114 return (IEnumerable<T>)variableValues[variableNames[columnIndex]];115 }116 117 105 public IEnumerable<T> GetValues<T>(string variableName) { 118 106 return (IEnumerable<T>)variableValues[variableName]; 119 }120 121 public void SetValues<T>(int columnIndex, IEnumerable<T> values) {122 variableValues[variableNames[columnIndex]] = values.ToList();123 107 } 124 108 … … 139 123 } 140 124 141 public void DeleteColumn(int columnIndex) {142 throw new NotImplementedException();143 }144 145 125 public void DeleteColumn(string variableName) { 146 126 throw new NotImplementedException(); 147 127 } 148 128 149 IEnumerable<string> IPreprocessingData.VariableNames { 150 get { throw new NotImplementedException(); } 151 } 152 153 public bool IsType<T>(int columnIndex) { 154 throw new NotImplementedException(); 129 public IEnumerable<string> VariableNames { 130 get { return variableNames; } 155 131 } 156 132 157 133 public bool IsType<T>(string variableName) { 158 throw new NotImplementedException();134 return variableValues[variableName] is List<T>; 159 135 } 160 136
Note: See TracChangeset
for help on using the changeset viewer.