Changeset 4031
- Timestamp:
- 07/14/10 10:27:26 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/Dataset.cs
r3994 r4031 41 41 42 42 [StorableConstructor] 43 pr otectedDataset(bool deserializing)43 private Dataset(bool deserializing) 44 44 : base(deserializing) { 45 45 } … … 110 110 yield return data[i + start, variableIndex]; 111 111 } 112 public IEnumerable<double> GetEnumeratedVariableValues(int variableIndex, IEnumerable<int> rows) { 113 foreach (int row in rows) 114 yield return data[row, variableIndex]; 115 } 116 112 117 public IEnumerable<double> GetEnumeratedVariableValues(string variableName) { 113 118 return GetEnumeratedVariableValues(GetVariableIndex(variableName), 0, Rows); … … 115 120 public IEnumerable<double> GetEnumeratedVariableValues(string variableName, int start, int end) { 116 121 return GetEnumeratedVariableValues(GetVariableIndex(variableName), start, end); 122 } 123 public IEnumerable<double> GetEnumeratedVariableValues(string variableName, IEnumerable<int> rows) { 124 return GetEnumeratedVariableValues(GetVariableIndex(variableName), rows); 117 125 } 118 126
Note: See TracChangeset
for help on using the changeset viewer.