Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/05/15 12:09:18 (9 years ago)
Author:
bburlacu
Message:

#2215:

  • Unified the similarity and matching/equality classes under the same folder.
  • Renamed SymbolicExpressionTreeNodeSimilarityComparer to SymbolicExpressionTreeNodeEqualityComparer, renamed other classes to more descriptive names.
  • Removed unused classes (SymbolicDataAnalysisInternalDiversityAnalyzer.cs, SymbolicExpressionTreeMaxCommonSequenceCalculator.cs
  • Renamed tests and test files.
Location:
branches/HeuristicLab.BottomUpTreeDistance/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/TreeMatching
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.BottomUpTreeDistance/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/TreeMatching/SymbolicExpressionTreeNodeComparer.cs

    r11894 r11910  
    2121
    2222using System;
    23 using System.Collections.Generic;
    2423using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
    2524
     
    3029  // - used for bringing subtrees to a "canonical" form when the operation allows reordering of arguments
    3130  public class SymbolicExpressionTreeNodeComparer : ISymbolicExpressionTreeNodeComparer {
    32     public static int Compare(ISymbolicExpressionTreeNode a, ISymbolicExpressionTreeNode b) {
     31    public static int CompareNodes(ISymbolicExpressionTreeNode a, ISymbolicExpressionTreeNode b) {
    3332      var ta = a as SymbolicExpressionTreeTerminalNode;
    3433      var tb = b as SymbolicExpressionTreeTerminalNode;
     
    6665    }
    6766
    68     int IComparer<ISymbolicExpressionTreeNode>.Compare(ISymbolicExpressionTreeNode x, ISymbolicExpressionTreeNode y) {
    69       return Compare(x, y);
     67    public int Compare(ISymbolicExpressionTreeNode x, ISymbolicExpressionTreeNode y) {
     68      return CompareNodes(x, y);
    7069    }
    7170  }
Note: See TracChangeset for help on using the changeset viewer.