Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/21/15 17:42:18 (8 years ago)
Author:
pfleck
Message:

#2269

  • Changed the age type from int to double.
  • Changed EldersSelector to make use of a ScopeTreeLookupParameter.
  • Removed unused operators in LayerUpdator.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ALPS/HeuristicLab.Algorithms.ALPS/3.3/Analyzers/AgeDistributionAnalyzer.cs

    r12046 r13046  
    3737
    3838    #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"]; }
    4141    }
    4242    public ValueLookupParameter<ResultCollection> ResultsParameter {
     
    7878    public AgeDistributionAnalyzer()
    7979      : 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."));
    8181      Parameters.Add(new ValueLookupParameter<ResultCollection>("Results", "The results collection where the analysis values should be stored."));
    8282      Parameters.Add(new FixedValueParameter<StringValue>("HistogramName", "The name of the histogram that gets injected in to the results collection.", new StringValue("Age Distribution")));
     
    110110      }
    111111      var ages = AgeParameter.ActualValue;
    112       row.Values.Replace(ages.Select(x => (double)x.Value));
     112      row.Values.Replace(ages.Select(x => x.Value));
    113113
    114114      if (StoreHistory) {
Note: See TracChangeset for help on using the changeset viewer.