Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/13/12 13:20:38 (12 years ago)
Author:
bburlacu
Message:

#1772: New analyzer: SymbolicExpressionTreeRelativeLengthAnalyzer. Rewrote the SymbolicExpressionTreeFragmentsAnalyzer, added generic wrapper to wrap HL objects as items.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.EvolutionaryTracking/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Manipulators/TracingSymbolicExpressionTreeManipulator.cs

    r7792 r7997  
    2121
    2222using System;
    23 using System.Linq;
     23using System.Collections.Generic;
    2424using HeuristicLab.Common;
    2525using HeuristicLab.Core;
    26 using HeuristicLab.Data;
     26using HeuristicLab.EvolutionaryTracking;
    2727using HeuristicLab.Parameters;
    2828using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     
    109109        GlobalTraceMap[tree] = new ItemList<IItem> { original };
    110110      }
    111       var nodes0 = tree.IterateNodesBreadth().ToList();
     111      var nodes0 = tree.IterateNodesBreadth() as List<ISymbolicExpressionTreeNode>;
    112112      Manipulate(RandomParameter.ActualValue, tree);
    113       var nodes1 = tree.IterateNodesBreadth().ToList();
     113      var nodes1 = tree.IterateNodesBreadth() as List<ISymbolicExpressionTreeNode>;
    114114      int i, min = Math.Max(nodes0.Count, nodes1.Count);
    115115      for (i = 0; i != min; ++i)
    116116        if (nodes0[i] != nodes1[i]) break;
    117117      if (i == min) i = 0;
    118       GlobalFragmentMap[tree] = new IntValue(i);
     118      GlobalFragmentMap[tree] = new GenericWrapper<ISymbolicExpressionTreeNode>(nodes1[i]);
    119119
    120120      return base.Apply();
Note: See TracChangeset for help on using the changeset viewer.