Changeset 13427
- Timestamp:
- 12/02/15 09:50:02 (9 years ago)
- Location:
- trunk/sources
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.DataPreprocessing/3.4/Implementations/PreprocessingData.cs
r13252 r13427 134 134 } 135 135 136 private static IList CreateColumn<T>(Dataset ds, int column, Func<string, T> selector) {137 var list = new List<T>(ds.Rows);138 for (int row = 0; row < ds.Rows; ++row) {139 list.Add(selector(ds.GetValue(row, column)));140 }141 return list;142 }143 144 136 private void CheckPartitionRanges() { 145 137 int maxRowIndex = Math.Max(0, Rows - 1); -
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Dataset.cs
r13419 r13427 200 200 set { throw new NotSupportedException(); } 201 201 } 202 public boolSortableView {202 bool IStringConvertibleMatrix.SortableView { 203 203 get { return false; } 204 204 set { throw new NotSupportedException(); } 205 205 } 206 public boolReadOnly {206 bool IStringConvertibleMatrix.ReadOnly { 207 207 get { return true; } 208 208 } … … 215 215 set { throw new NotSupportedException(); } 216 216 } 217 public stringGetValue(int rowIndex, int columnIndex) {217 string IStringConvertibleMatrix.GetValue(int rowIndex, int columnIndex) { 218 218 return variableValues[variableNames[columnIndex]][rowIndex].ToString(); 219 219 }
Note: See TracChangeset
for help on using the changeset viewer.