Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/23/10 17:12:30 (14 years ago)
Author:
gkronber
Message:

Merged r4458, r4459,r4462,r4464 from data analysis exploration branch into trunk. #1142

Location:
trunk/sources
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources

  • trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/ArchitectureManipulators/ArgumentDuplicater.cs

    r4106 r4477  
    7979      }
    8080      // find invocations of the functions and duplicate the matching argument branch
    81       var invocationNodes = from node in symbolicExpressionTree.IterateNodesPrefix().OfType<InvokeFunctionTreeNode>()
    82                             where node.Symbol.FunctionName == selectedDefunBranch.FunctionName
    83                             where node.SubTrees.Count == selectedDefunBranch.NumberOfArguments
    84                             select node;
     81      var invocationNodes = (from node in symbolicExpressionTree.IterateNodesPrefix().OfType<InvokeFunctionTreeNode>()
     82                             where node.Symbol.FunctionName == selectedDefunBranch.FunctionName
     83                             where node.SubTrees.Count == selectedDefunBranch.NumberOfArguments
     84                             select node).ToList();
    8585      // do this repeatedly until no matching invocations are found     
    8686      while (invocationNodes.Count() > 0) {
     
    9292          newlyAddedBranches.Add(clonedArgumentBranch);
    9393        }
    94         invocationNodes = from newlyAddedBranch in newlyAddedBranches
    95                           from node in newlyAddedBranch.IterateNodesPrefix().OfType<InvokeFunctionTreeNode>()
    96                           where node.Symbol.FunctionName == selectedDefunBranch.FunctionName
    97                           where node.SubTrees.Count == selectedDefunBranch.NumberOfArguments
    98                           select node;
     94        invocationNodes = (from newlyAddedBranch in newlyAddedBranches
     95                           from node in newlyAddedBranch.IterateNodesPrefix().OfType<InvokeFunctionTreeNode>()
     96                           where node.Symbol.FunctionName == selectedDefunBranch.FunctionName
     97                           where node.SubTrees.Count == selectedDefunBranch.NumberOfArguments
     98                           select node).ToList();
    9999      }
    100100      // register the new argument symbol and increase the number of arguments of the ADF
Note: See TracChangeset for help on using the changeset viewer.