Changeset 16676 for branches/2974_Constants_Optimization/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/TreeMatching/SymbolicExpressionTreeEqualityComparer.cs
- Timestamp:
- 03/13/19 09:30:18 (6 years ago)
- Location:
- branches/2974_Constants_Optimization/HeuristicLab.Problems.DataAnalysis.Symbolic
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2974_Constants_Optimization/HeuristicLab.Problems.DataAnalysis.Symbolic
- Property svn:mergeinfo changed
-
branches/2974_Constants_Optimization/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/TreeMatching/SymbolicExpressionTreeEqualityComparer.cs
r11910 r16676 2 2 using System.Collections.Generic; 3 3 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 4 using HEAL.Attic; 4 5 5 6 namespace HeuristicLab.Problems.DataAnalysis.Symbolic { 7 [StorableType("535830d4-551e-4b53-97e3-9605bd7e785f")] 6 8 public class SymbolicExpressionTreeEqualityComparer : IEqualityComparer<ISymbolicExpressionTree> { 9 [Storable] 7 10 public SymbolicExpressionTreeNodeEqualityComparer SimilarityComparer { get; set; } 11 12 13 [StorableConstructor] 14 protected SymbolicExpressionTreeEqualityComparer(StorableConstructorFlag _) { } 15 public SymbolicExpressionTreeEqualityComparer() { } 8 16 9 17 public bool Equals(ISymbolicExpressionTree a, ISymbolicExpressionTree b) { … … 15 23 return (tree.Length << 8) % 12345; 16 24 } 25 17 26 } 18 27 }
Note: See TracChangeset
for help on using the changeset viewer.