- Timestamp:
- 07/06/10 11:59:50 (14 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/Symbolic/Symbols
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/Symbolic/Symbols/ConstantTreeNode.cs
r3512 r3997 65 65 public override void ShakeLocalParameters(IRandom random, double shakingFactor) { 66 66 base.ShakeLocalParameters(random, shakingFactor); 67 var normalDistributedRNG = new NormalDistributedRandom(random, Symbol.ManipulatorNu, Symbol.ManipulatorSigma); 68 double x = normalDistributedRNG.NextDouble(); 67 double x = NormalDistributedRandom.NextDouble(random, Symbol.ManipulatorNu, Symbol.ManipulatorSigma); 69 68 Value = Value + x * shakingFactor; 70 69 } -
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/Symbolic/Symbols/LaggedVariableTreeNode.cs
r3841 r3997 73 73 public override void ResetLocalParameters(IRandom random) { 74 74 base.ResetLocalParameters(random); 75 var normalDistributedRNG = new NormalDistributedRandom(random, Symbol.WeightNu, Symbol.WeightSigma); 76 weight = normalDistributedRNG.NextDouble(); 75 weight = NormalDistributedRandom.NextDouble(random, Symbol.WeightNu, Symbol.WeightSigma); 77 76 variableName = Symbol.VariableNames.SelectRandom(random); 78 77 lag = random.Next(Symbol.MinLag, Symbol.MaxLag + 1); … … 81 80 public override void ShakeLocalParameters(IRandom random, double shakingFactor) { 82 81 base.ShakeLocalParameters(random, shakingFactor); 83 var normalDistributedRNG = new NormalDistributedRandom(random, Symbol.WeightManipulatorNu, Symbol.WeightManipulatorSigma); 84 double x = normalDistributedRNG.NextDouble(); 82 double x = NormalDistributedRandom.NextDouble(random, Symbol.WeightManipulatorNu, Symbol.WeightManipulatorSigma); 85 83 weight = weight + x * shakingFactor; 86 84 variableName = Symbol.VariableNames.SelectRandom(random); -
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/Symbolic/Symbols/VariableTreeNode.cs
r3512 r3997 67 67 public override void ResetLocalParameters(IRandom random) { 68 68 base.ResetLocalParameters(random); 69 var normalDistributedRNG = new NormalDistributedRandom(random, Symbol.WeightNu, Symbol.WeightSigma); 70 weight = normalDistributedRNG.NextDouble(); 69 weight = NormalDistributedRandom.NextDouble(random, Symbol.WeightNu, Symbol.WeightSigma); 71 70 variableName = Symbol.VariableNames.SelectRandom(random); 72 71 } … … 74 73 public override void ShakeLocalParameters(IRandom random, double shakingFactor) { 75 74 base.ShakeLocalParameters(random, shakingFactor); 76 var normalDistributedRNG = new NormalDistributedRandom(random, Symbol.WeightManipulatorNu, Symbol.WeightManipulatorSigma); 77 double x = normalDistributedRNG.NextDouble(); 75 double x = NormalDistributedRandom.NextDouble(random, Symbol.WeightManipulatorNu, Symbol.WeightManipulatorSigma); 78 76 weight = weight + x * shakingFactor; 79 77 variableName = Symbol.VariableNames.SelectRandom(random);
Note: See TracChangeset
for help on using the changeset viewer.