Changeset 13046 for branches/ALPS/HeuristicLab.Algorithms.ALPS/3.3/Analyzers/AgeDistributionAnalyzer.cs
- Timestamp:
- 10/21/15 17:42:18 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ALPS/HeuristicLab.Algorithms.ALPS/3.3/Analyzers/AgeDistributionAnalyzer.cs
r12046 r13046 37 37 38 38 #region Parameter Properties 39 public IScopeTreeLookupParameter< IntValue> AgeParameter {40 get { return (IScopeTreeLookupParameter< IntValue>)Parameters["Age"]; }39 public IScopeTreeLookupParameter<DoubleValue> AgeParameter { 40 get { return (IScopeTreeLookupParameter<DoubleValue>)Parameters["Age"]; } 41 41 } 42 42 public ValueLookupParameter<ResultCollection> ResultsParameter { … … 78 78 public AgeDistributionAnalyzer() 79 79 : base() { 80 Parameters.Add(new ScopeTreeLookupParameter< IntValue>("Age", "The value which represents the age of a solution."));80 Parameters.Add(new ScopeTreeLookupParameter<DoubleValue>("Age", "The value which represents the age of a solution.")); 81 81 Parameters.Add(new ValueLookupParameter<ResultCollection>("Results", "The results collection where the analysis values should be stored.")); 82 82 Parameters.Add(new FixedValueParameter<StringValue>("HistogramName", "The name of the histogram that gets injected in to the results collection.", new StringValue("Age Distribution"))); … … 110 110 } 111 111 var ages = AgeParameter.ActualValue; 112 row.Values.Replace(ages.Select(x => (double)x.Value));112 row.Values.Replace(ages.Select(x => x.Value)); 113 113 114 114 if (StoreHistory) {
Note: See TracChangeset
for help on using the changeset viewer.