Changeset 5275 for branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis/3.3/Symbolic/Symbols/Variable.cs
- Timestamp:
- 01/11/11 15:03:46 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis/3.3/Symbolic/Symbols/Variable.cs
r4068 r5275 33 33 #region Properties 34 34 [Storable] 35 private double weight Nu;36 public double Weight Nu {37 get { return weight Nu; }35 private double weightMu; 36 public double WeightMu { 37 get { return weightMu; } 38 38 set { 39 if (value != weight Nu) {40 weight Nu = value;39 if (value != weightMu) { 40 weightMu = value; 41 41 OnChanged(EventArgs.Empty); 42 42 } … … 56 56 } 57 57 [Storable] 58 private double weightManipulator Nu;59 public double WeightManipulator Nu {60 get { return weightManipulator Nu; }58 private double weightManipulatorMu; 59 public double WeightManipulatorMu { 60 get { return weightManipulatorMu; } 61 61 set { 62 if (value != weightManipulator Nu) {63 weightManipulator Nu = value;62 if (value != weightManipulatorMu) { 63 weightManipulatorMu = value; 64 64 OnChanged(EventArgs.Empty); 65 65 } … … 90 90 } 91 91 #endregion 92 [StorableConstructor] 93 protected Variable(bool deserializing) : base(deserializing) { 94 variableNames = new List<string>(); 95 } 96 protected Variable(Variable original, Cloner cloner) 97 : base(original, cloner) { 98 weightMu = original.weightMu; 99 weightSigma = original.weightSigma; 100 variableNames = new List<string>(original.variableNames); 101 weightManipulatorMu = original.weightManipulatorMu; 102 weightManipulatorSigma = original.weightManipulatorSigma; 103 } 92 104 public Variable() : this("Variable", "Represents a variable value.") { } 93 105 public Variable(string name, string description) 94 106 : base(name, description) { 95 weight Nu = 1.0;107 weightMu = 1.0; 96 108 weightSigma = 1.0; 97 weightManipulator Nu = 0.0;109 weightManipulatorMu = 0.0; 98 110 weightManipulatorSigma = 1.0; 99 111 variableNames = new List<string>(); … … 105 117 106 118 public override IDeepCloneable Clone(Cloner cloner) { 107 Variable clone = (Variable)base.Clone(cloner); 108 clone.weightNu = weightNu; 109 clone.weightSigma = weightSigma; 110 clone.variableNames = new List<string>(variableNames); 111 clone.weightManipulatorNu = weightManipulatorNu; 112 clone.weightManipulatorSigma = weightManipulatorSigma; 113 return clone; 119 return new Variable(this, cloner); 114 120 } 115 121 }
Note: See TracChangeset
for help on using the changeset viewer.