Changeset 18093 for branches/3140_NumberSymbol/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Symbols/Num.cs
- Timestamp:
- 11/24/21 13:40:39 (3 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/3140_NumberSymbol/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Symbols/Num.cs
r18092 r18093 27 27 namespace HeuristicLab.Problems.DataAnalysis.Symbolic { 28 28 [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 { 31 31 #region Properties 32 32 [Storable] … … 100 100 101 101 [StorableConstructor] 102 private Constant(StorableConstructorFlag _) : base(_) { }103 private Constant(Constantoriginal, Cloner cloner)102 private Num(StorableConstructorFlag _) : base(_) { } 103 private Num(Num original, Cloner cloner) 104 104 : base(original, cloner) { 105 105 minValue = original.minValue; … … 109 109 multiplicativeManipulatorSigma = original.multiplicativeManipulatorSigma; 110 110 } 111 public Constant()112 : base(" Constant", "Represents a constant value.") {111 public Num() 112 : base("Num", "Represents a constant value.") { 113 113 manipulatorMu = 0.0; 114 114 manipulatorSigma = 1.0; … … 119 119 120 120 public override ISymbolicExpressionTreeNode CreateTreeNode() { 121 return new ConstantTreeNode(this);121 return new NumTreeNode(this); 122 122 } 123 123 124 124 public override IDeepCloneable Clone(Cloner cloner) { 125 return new Constant(this, cloner);125 return new Num(this, cloner); 126 126 } 127 127 }
Note: See TracChangeset
for help on using the changeset viewer.