Ignore:
Timestamp:
07/09/10 17:01:36 (3 years ago)
Author:
gkronber
Message:

Worked on symbolic regression classes to prepare for time series prognosis plugin. #1081

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Compiler/SymbolicExpressionTreeCompiler.cs

    r3747 r4022  
    3737      List<Instruction> code = new List<Instruction>(); 
    3838      entryPoint.Clear(); 
    39       // compile main body 
    40       code.AddRange(Compile(tree.Root.SubTrees[0].SubTrees[0], opCodeMapper)); 
    41       // compile branches 
     39      // compile main body branches 
     40      foreach (var branch in tree.Root.SubTrees[0].SubTrees) { 
     41        code.AddRange(Compile(branch, opCodeMapper)); 
     42      }       
     43      // compile function branches 
    4244      var functionBranches = from node in tree.IterateNodesPrefix() 
    4345                             where node.Symbol is Defun 
Note: See TracChangeset for help on using the changeset viewer.