Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/28/20 14:55:58 (5 years ago)
Author:
pfleck
Message:

#3040

  • Added full functional grammar for vectors.
  • Added sum and mean aggregation for vectors.
File:
1 copied

Legend:

Unmodified
Added
Removed
  • branches/3040_VectorBasedGP/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Symbols/Sum.cs

    r17455 r17460  
    2424using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
    2525using HEAL.Attic;
     26
    2627namespace HeuristicLab.Problems.DataAnalysis.Symbolic {
    27   [StorableType("459E521B-A921-4A0F-B63D-B298DA2CDD11")]
    28   [Item("Average", "Symbol that represents the average (arithmetic mean) function.")]
    29   public sealed class Average : Symbol {
     28  [StorableType("C6C245BF-C44A-4207-A268-55641483F27F")]
     29  [Item("Sum", "Symbol that represents the Sum function.")]
     30  public sealed class Sum : Symbol {
    3031    private const int minimumArity = 1;
    3132    private const int maximumArity = byte.MaxValue;
     
    3940
    4041    [StorableConstructor]
    41     private Average(StorableConstructorFlag _) : base(_) { }
    42     private Average(Average original, Cloner cloner) : base(original, cloner) { }
     42    private Sum(StorableConstructorFlag _) : base(_) { }
     43    private Sum(Sum original, Cloner cloner) : base(original, cloner) { }
    4344    public override IDeepCloneable Clone(Cloner cloner) {
    44       return new Average(this, cloner);
     45      return new Sum(this, cloner);
    4546    }
    46     public Average() : base("Average", "Symbol that represents the average (arithmetic mean) function.") { }
     47    public Sum() : base("Sum", "Symbol that represents the sum function.") { }
    4748  }
    4849}
Note: See TracChangeset for help on using the changeset viewer.