Changeset 3512 for trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/Symbolic/Symbols/Constant.cs
- Timestamp:
- 04/23/10 14:27:06 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/Symbolic/Symbols/Constant.cs
r3485 r3512 28 28 using HeuristicLab.Parameters; 29 29 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Symbols; 30 using System; 30 31 namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Symbols { 31 32 [StorableClass] … … 45 46 set { maxValue = value; } 46 47 } 48 [Storable] 49 private double manipulatorNu; 50 public double ManipulatorNu { 51 get { return manipulatorNu; } 52 set { manipulatorNu = value; } 53 } 54 [Storable] 55 private double manipulatorSigma; 56 public double ManipulatorSigma { 57 get { return manipulatorSigma; } 58 set { 59 if (value < 0) throw new ArgumentException(); 60 manipulatorSigma = value; 61 } 62 } 47 63 #endregion 48 64 public Constant() 49 65 : base() { 66 manipulatorNu = 0.0; 67 manipulatorSigma = 1.0; 68 minValue = -20.0; 69 maxValue = 20.0; 50 70 } 51 71 … … 55 75 56 76 public override IDeepCloneable Clone(Cloner cloner) { 57 Constant clone = (Constant) 77 Constant clone = (Constant)base.Clone(cloner); 58 78 clone.minValue = minValue; 59 79 clone.maxValue = maxValue; 80 clone.manipulatorNu = manipulatorNu; 81 clone.manipulatorSigma = manipulatorSigma; 60 82 return clone; 61 83 }
Note: See TracChangeset
for help on using the changeset viewer.