Changeset 3687 for trunk/sources/HeuristicLab.Analysis
- Timestamp:
- 05/06/10 23:34:36 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Analysis/3.3/DataTableValuesCollector.cs
r3637 r3687 53 53 54 54 foreach (IParameter param in CollectedValues) { 55 ILookupParameter lookupParam = param as ILookupParameter; 56 string name = lookupParam != null ? lookupParam.TranslatedName : param.Name; 57 55 58 if (param.ActualValue is DoubleValue) { 56 AddValue(table, (param.ActualValue as DoubleValue).Value, param.Name, param.Description);59 AddValue(table, (param.ActualValue as DoubleValue).Value, name, param.Description); 57 60 } else if (param.ActualValue is IEnumerable<DoubleValue>) { 58 61 int counter = 0; 59 62 foreach (DoubleValue data in (param.ActualValue as IEnumerable<DoubleValue>)) { 60 AddValue(table, data.Value, param.Name + " " + counter.ToString(), param.Description);63 AddValue(table, data.Value, name + " " + counter.ToString(), param.Description); 61 64 counter++; 62 65 } 63 66 } else { 64 AddValue(table, double.NaN, param.Name, param.Description);67 AddValue(table, double.NaN, name, param.Description); 65 68 } 66 69 }
Note: See TracChangeset
for help on using the changeset viewer.