Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/02/20 15:04:46 (5 years ago)
Author:
pfleck
Message:

#3040 Added type coherent vector grammar to enforce that the root symbol is a scalar.

File:
1 copied

Legend:

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

    r17455 r17463  
    2525using HEAL.Attic;
    2626namespace 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 {
     27  [StorableType("615033EC-6A76-4DE7-B55F-BB228D6A8166")]
     28  [Item("StandardDeviation", "Symbol that represents the standard deviation function.")]
     29  public sealed class StandardDeviation : Symbol {
    3030    private const int minimumArity = 1;
    3131    private const int maximumArity = byte.MaxValue;
     
    3939
    4040    [StorableConstructor]
    41     private Average(StorableConstructorFlag _) : base(_) { }
    42     private Average(Average original, Cloner cloner) : base(original, cloner) { }
     41    private StandardDeviation(StorableConstructorFlag _) : base(_) { }
     42    private StandardDeviation(StandardDeviation original, Cloner cloner) : base(original, cloner) { }
    4343    public override IDeepCloneable Clone(Cloner cloner) {
    44       return new Average(this, cloner);
     44      return new StandardDeviation(this, cloner);
    4545    }
    46     public Average() : base("Average", "Symbol that represents the average (arithmetic mean) function.") { }
     46    public StandardDeviation() : base("StandardDeviation", "Symbol that represents the standard deviation function.") { }
    4747  }
    4848}
Note: See TracChangeset for help on using the changeset viewer.