Changeset 14815 for branches/symbreg-factors-2650/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Symbols/VariableTreeNodeBase.cs
- Timestamp:
- 03/31/17 16:07:19 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/symbreg-factors-2650/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Symbols/VariableTreeNodeBase.cs
r14758 r14815 69 69 public override void ShakeLocalParameters(IRandom random, double shakingFactor) { 70 70 base.ShakeLocalParameters(random, shakingFactor); 71 72 // 50% additive & 50% multiplicative (BUG in if statement below!) 71 73 if(random.NextDouble() < 0) { 72 74 double x = NormalDistributedRandom.NextDouble(random, Symbol.WeightManipulatorMu, Symbol.WeightManipulatorSigma); … … 76 78 weight = weight * x; 77 79 } 80 78 81 if(Symbol.VariableChangeProbability >= 1.0 || random.NextDouble() < Symbol.VariableChangeProbability) { 79 82 var oldName = variableName; … … 84 87 weight = NormalDistributedRandom.NextDouble(random, Symbol.WeightMu, Symbol.WeightSigma); 85 88 } 86 } // 50% additive & 50% multiplicative (BUG in if statement below!)89 } 87 90 } 88 91
Note: See TracChangeset
for help on using the changeset viewer.