Changeset 11460 for branches/HeuristicLab.EvolutionTracking
- Timestamp:
- 10/13/14 13:17:27 (10 years ago)
- Location:
- branches/HeuristicLab.EvolutionTracking/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.EvolutionTracking/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Compiler/SymbolicExpressionTreeLinearCompiler.cs
r11208 r11460 26 26 public static LinearInstruction[] Compile(ISymbolicExpressionTree tree, Func<ISymbolicExpressionTreeNode, byte> opCodeMapper) { 27 27 var root = tree.Root.GetSubtree(0).GetSubtree(0); 28 return Compile(root, opCodeMapper); 29 } 30 31 public static LinearInstruction[] Compile(ISymbolicExpressionTreeNode root, Func<ISymbolicExpressionTreeNode, byte> opCodeMapper) { 28 32 var code = new LinearInstruction[root.GetLength()]; 29 33 code[0] = new LinearInstruction { dynamicNode = root, nArguments = (byte)root.SubtreeCount, opCode = opCodeMapper(root) }; -
branches/HeuristicLab.EvolutionTracking/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Formatters/SymbolicExpressionTreeStringFormatter.cs
r11208 r11460 20 20 #endregion 21 21 22 using System.Linq; 22 23 using System.Text; 23 using System.Linq;24 using HeuristicLab.Common; 24 25 using HeuristicLab.Core; 25 using HeuristicLab.Common;26 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 27 27 … … 48 48 public string Format(ISymbolicExpressionTree symbolicExpressionTree) { 49 49 return FormatRecursively(symbolicExpressionTree.Root, 0); 50 } 51 52 public string Format(ISymbolicExpressionTreeNode symbolicExpressionTreeNode) { 53 return FormatRecursively(symbolicExpressionTreeNode, 0); 50 54 } 51 55
Note: See TracChangeset
for help on using the changeset viewer.