Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/24/21 13:40:39 (3 years ago)
Author:
chaider
Message:

#3041

  • Renaming Constant Symbol to Num, behaves like before
  • Adding new Symbol RealConstant (Constant), this symbol behaves now like a real constant, won't be changed by parameter optimization or manipulators
  • Refactored classes part1
File:
1 moved

Legend:

Unmodified
Added
Removed
  • branches/3140_NumberSymbol/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Symbols/Num.cs

    r18092 r18093  
    2727namespace HeuristicLab.Problems.DataAnalysis.Symbolic {
    2828  [StorableType("5CD355EA-36E4-4E43-B8C4-9E9CF4CBC860")]
    29   [Item("Constant", "Represents a constant value.")]
    30   public sealed class Constant : Symbol {
     29  [Item("Num", "Represents a constant value.")]
     30  public sealed class Num : Symbol {
    3131    #region Properties
    3232    [Storable]
     
    100100
    101101    [StorableConstructor]
    102     private Constant(StorableConstructorFlag _) : base(_) { }
    103     private Constant(Constant original, Cloner cloner)
     102    private Num(StorableConstructorFlag _) : base(_) { }
     103    private Num(Num original, Cloner cloner)
    104104      : base(original, cloner) {
    105105      minValue = original.minValue;
     
    109109      multiplicativeManipulatorSigma = original.multiplicativeManipulatorSigma;
    110110    }
    111     public Constant()
    112       : base("Constant", "Represents a constant value.") {
     111    public Num()
     112      : base("Num", "Represents a constant value.") {
    113113      manipulatorMu = 0.0;
    114114      manipulatorSigma = 1.0;
     
    119119
    120120    public override ISymbolicExpressionTreeNode CreateTreeNode() {
    121       return new ConstantTreeNode(this);
     121      return new NumTreeNode(this);
    122122    }
    123123
    124124    public override IDeepCloneable Clone(Cloner cloner) {
    125       return new Constant(this, cloner);
     125      return new Num(this, cloner);
    126126    }
    127127  }
Note: See TracChangeset for help on using the changeset viewer.