Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/31/17 16:07:19 (7 years ago)
Author:
mkommend
Message:

#2650: Corrected comment in VariableTreeNodeBase.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/symbreg-factors-2650/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Symbols/VariableTreeNodeBase.cs

    r14758 r14815  
    6969    public override void ShakeLocalParameters(IRandom random, double shakingFactor) {
    7070      base.ShakeLocalParameters(random, shakingFactor);
     71
     72      // 50% additive & 50% multiplicative (BUG in if statement below!)
    7173      if(random.NextDouble() < 0) {
    7274        double x = NormalDistributedRandom.NextDouble(random, Symbol.WeightManipulatorMu, Symbol.WeightManipulatorSigma);
     
    7678        weight = weight * x;
    7779      }
     80
    7881      if(Symbol.VariableChangeProbability >= 1.0 || random.NextDouble() < Symbol.VariableChangeProbability) {
    7982        var oldName = variableName;
     
    8487          weight = NormalDistributedRandom.NextDouble(random, Symbol.WeightMu, Symbol.WeightSigma);
    8588        }
    86       }      // 50% additive & 50% multiplicative (BUG in if statement below!)
     89      }     
    8790    }
    8891
Note: See TracChangeset for help on using the changeset viewer.