Changeset 3997 for trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/Symbolic/Symbols/VariableTreeNode.cs
- Timestamp:
- 07/06/10 11:59:50 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.