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:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources

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

    r4106 r4477  
    8585
    8686      // find all invocations of the selected ADF and attach a cloned version of the replaced branch (with all argument-nodes expanded)
    87       var invocationNodes = from node in symbolicExpressionTree.IterateNodesPrefix().OfType<InvokeFunctionTreeNode>()
    88                             where node.Symbol.FunctionName == selectedDefunBranch.FunctionName
    89                             where node.SubTrees.Count == selectedDefunBranch.NumberOfArguments
    90                             select node;
     87      var invocationNodes = (from node in symbolicExpressionTree.IterateNodesPrefix().OfType<InvokeFunctionTreeNode>()
     88                             where node.Symbol.FunctionName == selectedDefunBranch.FunctionName
     89                             where node.SubTrees.Count == selectedDefunBranch.NumberOfArguments
     90                             select node).ToList();
    9191      // do this repeatedly until no matching invocations are found     
    9292      while (invocationNodes.Count() > 0) {
     
    9999          newlyAddedBranches.Add(clonedBranch);
    100100        }
    101         invocationNodes = from newlyAddedBranch in newlyAddedBranches
    102                           from node in newlyAddedBranch.IterateNodesPrefix().OfType<InvokeFunctionTreeNode>()
    103                           where node.Symbol.FunctionName == selectedDefunBranch.FunctionName
    104                           where node.SubTrees.Count == selectedDefunBranch.NumberOfArguments
    105                           select node;
     101        invocationNodes = (from newlyAddedBranch in newlyAddedBranches
     102                           from node in newlyAddedBranch.IterateNodesPrefix().OfType<InvokeFunctionTreeNode>()
     103                           where node.Symbol.FunctionName == selectedDefunBranch.FunctionName
     104                           where node.SubTrees.Count == selectedDefunBranch.NumberOfArguments
     105                           select node).ToList();
    106106      }
    107107      // increase expected number of arguments of function defining branch
  • 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.