Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/06/12 09:46:34 (12 years ago)
Author:
gkronber
Message:

#1722 added static methods in OnePointShaker and SymbolicDataAnalysisAlleleFrequencyAnalyzer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Manipulators/OnePointShaker.cs

    r7259 r7972  
    5757
    5858    protected override void Manipulate(IRandom random, ISymbolicExpressionTree tree) {
     59      OnePointShaker.Shake(random, tree, ShakingFactor);
     60    }
     61
     62    public static void Shake(IRandom random, ISymbolicExpressionTree tree, double shakingFactor) {
    5963      List<ISymbolicExpressionTreeNode> parametricNodes = new List<ISymbolicExpressionTreeNode>();
    6064      tree.Root.ForEachNodePostfix(n => {
     
    6367      if (parametricNodes.Count > 0) {
    6468        var selectedPoint = parametricNodes.SelectRandom(random);
    65         selectedPoint.ShakeLocalParameters(random, ShakingFactor);
     69        selectedPoint.ShakeLocalParameters(random, shakingFactor);
    6670      }
    6771    }
Note: See TracChangeset for help on using the changeset viewer.