Last change
on this file since 11233 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 | |
---|
1 | using HeuristicLab.Core;
|
---|
2 | using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
|
---|
3 |
|
---|
4 | namespace 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.