- Timestamp:
- 11/29/10 13:57:05 (14 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/Symbolic/Symbols
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/Symbolic/Symbols/Constant.cs
r4722 r4989 54 54 } 55 55 [Storable] 56 private double manipulator Nu;57 public double Manipulator Nu {58 get { return manipulator Nu; }56 private double manipulatorMu; 57 public double ManipulatorMu { 58 get { return manipulatorMu; } 59 59 set { 60 if (value != manipulator Nu) {61 manipulator Nu = value;60 if (value != manipulatorMu) { 61 manipulatorMu = value; 62 62 OnChanged(EventArgs.Empty); 63 63 } … … 83 83 minValue = original.minValue; 84 84 maxValue = original.maxValue; 85 manipulator Nu = original.manipulatorNu;85 manipulatorMu = original.manipulatorMu; 86 86 manipulatorSigma = original.manipulatorSigma; 87 87 } 88 88 public Constant() 89 89 : base("Constant", "Represents a constant value.") { 90 manipulator Nu = 0.0;90 manipulatorMu = 0.0; 91 91 manipulatorSigma = 1.0; 92 92 minValue = -20.0; -
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/Symbolic/Symbols/ConstantTreeNode.cs
r4722 r4989 63 63 public override void ShakeLocalParameters(IRandom random, double shakingFactor) { 64 64 base.ShakeLocalParameters(random, shakingFactor); 65 double x = NormalDistributedRandom.NextDouble(random, Symbol.Manipulator Nu, Symbol.ManipulatorSigma);65 double x = NormalDistributedRandom.NextDouble(random, Symbol.ManipulatorMu, Symbol.ManipulatorSigma); 66 66 Value = Value + x * shakingFactor; 67 67 } -
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/Symbolic/Symbols/Variable.cs
r4722 r4989 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 } … … 96 96 protected Variable(Variable original, Cloner cloner) 97 97 : base(original, cloner) { 98 weight Nu = original.weightNu;98 weightMu = original.weightMu; 99 99 weightSigma = original.weightSigma; 100 100 variableNames = new List<string>(original.variableNames); 101 weightManipulator Nu = original.weightManipulatorNu;101 weightManipulatorMu = original.weightManipulatorMu; 102 102 weightManipulatorSigma = original.weightManipulatorSigma; 103 103 } … … 105 105 public Variable(string name, string description) 106 106 : base(name, description) { 107 weight Nu = 1.0;107 weightMu = 1.0; 108 108 weightSigma = 1.0; 109 weightManipulator Nu = 0.0;109 weightManipulatorMu = 0.0; 110 110 weightManipulatorSigma = 1.0; 111 111 variableNames = new List<string>(); -
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/Symbolic/Symbols/VariableTreeNode.cs
r4722 r4989 62 62 public override void ResetLocalParameters(IRandom random) { 63 63 base.ResetLocalParameters(random); 64 weight = NormalDistributedRandom.NextDouble(random, Symbol.Weight Nu, Symbol.WeightSigma);64 weight = NormalDistributedRandom.NextDouble(random, Symbol.WeightMu, Symbol.WeightSigma); 65 65 variableName = Symbol.VariableNames.SelectRandom(random); 66 66 } … … 68 68 public override void ShakeLocalParameters(IRandom random, double shakingFactor) { 69 69 base.ShakeLocalParameters(random, shakingFactor); 70 double x = NormalDistributedRandom.NextDouble(random, Symbol.WeightManipulator Nu, Symbol.WeightManipulatorSigma);70 double x = NormalDistributedRandom.NextDouble(random, Symbol.WeightManipulatorMu, Symbol.WeightManipulatorSigma); 71 71 weight = weight + x * shakingFactor; 72 72 variableName = Symbol.VariableNames.SelectRandom(random);
Note: See TracChangeset
for help on using the changeset viewer.