Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/06/10 02:46:37 (14 years ago)
Author:
swagner
Message:

Worked on refactoring of algorithm analysis and tracing (#999)

  • adapted analyzers
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Analysis/3.3/MinAverageMaxValueCalculator.cs

    r3659 r3662  
    2929namespace HeuristicLab.Analysis {
    3030  /// <summary>
    31   /// An operator which calculates the minimum, average and maximum of a value in the current population.
     31  /// An operator which calculates the minimum, average and maximum of a value in the scope tree.
    3232  /// </summary>
    33   [Item("MinAverageMaxValueCalculator", "An operator which calculates the minimum, average and maximum of a value in the current population.")]
     33  [Item("MinAverageMaxValueCalculator", "An operator which calculates the minimum, average and maximum of a value in the scope tree.")]
    3434  [StorableClass]
    3535  public sealed class MinAverageMaxValueCalculator : SingleSuccessorOperator {
    36     public ILookupParameter<ItemArray<DoubleValue>> ValueParameter {
    37       get { return (ILookupParameter<ItemArray<DoubleValue>>)Parameters["Value"]; }
     36    public ScopeTreeLookupParameter<DoubleValue> ValueParameter {
     37      get { return (ScopeTreeLookupParameter<DoubleValue>)Parameters["Value"]; }
    3838    }
    39     public IValueLookupParameter<DoubleValue> MinValueParameter {
    40       get { return (IValueLookupParameter<DoubleValue>)Parameters["MinValue"]; }
     39    public ValueLookupParameter<DoubleValue> MinValueParameter {
     40      get { return (ValueLookupParameter<DoubleValue>)Parameters["MinValue"]; }
    4141    }
    42     public IValueLookupParameter<DoubleValue> AverageValueParameter {
    43       get { return (IValueLookupParameter<DoubleValue>)Parameters["AverageValue"]; }
     42    public ValueLookupParameter<DoubleValue> AverageValueParameter {
     43      get { return (ValueLookupParameter<DoubleValue>)Parameters["AverageValue"]; }
    4444    }
    45     public IValueLookupParameter<DoubleValue> MaxValueParameter {
    46       get { return (IValueLookupParameter<DoubleValue>)Parameters["MaxValue"]; }
     45    public ValueLookupParameter<DoubleValue> MaxValueParameter {
     46      get { return (ValueLookupParameter<DoubleValue>)Parameters["MaxValue"]; }
    4747    }
    4848
    4949    public MinAverageMaxValueCalculator()
    5050      : base() {
    51       Parameters.Add(new ScopeTreeLookupParameter<DoubleValue>("Value", "The value contained in each sub-scope for which the minimum, average and maximum should be calculated."));
     51      Parameters.Add(new ScopeTreeLookupParameter<DoubleValue>("Value", "The value contained in the scope tree for which the minimum, average and maximum should be calculated."));
    5252      Parameters.Add(new ValueLookupParameter<DoubleValue>("MinValue", "The minimum of the value."));
    5353      Parameters.Add(new ValueLookupParameter<DoubleValue>("AverageValue", "The average of the value."));
    5454      Parameters.Add(new ValueLookupParameter<DoubleValue>("MaxValue", "The maximum of the value."));
    5555    }
    56 
    5756
    5857    public override IOperation Apply() {
Note: See TracChangeset for help on using the changeset viewer.