Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Interfaces/IDistanceCalculator.cs @ 11197

Last change on this file since 11197 was 11197, checked in by bburlacu, 10 years ago

#1772: Separated tree distance calculations in different classes which implement a new interface called IDistanceCalculator. The isomorphic tree distance calculates the distance based on the maximum common subtree between two symbolic expression trees, and the bottom-up tree distance returns a value based on the number of matching pairs of nodes in a bottom-up mapping. Introduced the distance calculator as a parameter in the SimilarityCalculator operator so that the diversity analyzer can use either of the two distances.

File size: 295 bytes
Line 
1using HeuristicLab.Core;
2using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
3
4namespace HeuristicLab.Problems.DataAnalysis.Symbolic {
5  public interface IDistanceCalculator : IItem {
6    double CalculateDistance(ISymbolicExpressionTree t1, ISymbolicExpressionTree t2);
7  }
8}
Note: See TracBrowser for help on using the repository browser.