Changeset 3818
- Timestamp:
- 05/16/10 23:51:42 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Analysis/3.3/DataTableValuesCollector.cs
r3690 r3818 59 59 if (param.ActualValue is DoubleValue) { 60 60 AddValue(table, (param.ActualValue as DoubleValue).Value, name, param.Description); 61 } else if (param.ActualValue is IntValue) { 62 AddValue(table, (param.ActualValue as IntValue).Value, name, param.Description); 61 63 } else if (param.ActualValue is IEnumerable<DoubleValue>) { 62 64 IEnumerable<DoubleValue> values = (IEnumerable<DoubleValue>)param.ActualValue; … … 67 69 int counter = 1; 68 70 foreach (DoubleValue data in values) { 71 AddValue(table, data != null ? data.Value : double.NaN, name + " " + counter.ToString(), param.Description); 72 counter++; 73 } 74 } 75 } else if (param.ActualValue is IEnumerable<IntValue>) { 76 IEnumerable<IntValue> values = (IEnumerable<IntValue>)param.ActualValue; 77 if (values.Count() <= 1) { 78 foreach (IntValue data in values) 79 AddValue(table, data != null ? data.Value : double.NaN, name, param.Description); 80 } else { 81 int counter = 1; 82 foreach (IntValue data in values) { 69 83 AddValue(table, data != null ? data.Value : double.NaN, name + " " + counter.ToString(), param.Description); 70 84 counter++;
Note: See TracChangeset
for help on using the changeset viewer.