Changeset 14353 for trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/TreeMatching/SymbolicExpressionTreeBottomUpSimilarityCalculator.cs
- Timestamp:
- 10/23/16 19:31:18 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/TreeMatching/SymbolicExpressionTreeBottomUpSimilarityCalculator.cs
r14185 r14353 61 61 } 62 62 63 public static double CalculateBottomUpSimilarity(ISymbolicExpressionTree t1, ISymbolicExpressionTree t2) { 64 return new SymbolicExpressionTreeBottomUpSimilarityCalculator().CalculateSimilarity(t1, t2); 65 } 66 63 67 public override double CalculateSolutionSimilarity(IScope leftSolution, IScope rightSolution) { 64 68 if (leftSolution == rightSolution) … … 73 77 var similarity = CalculateSimilarity(t1, t2); 74 78 if (similarity > 1.0) 75 throw new Exception("Similarity value cannot be greater than 1");79 throw new Exception("Similarity value " + similarity + " cannot be greater than 1"); 76 80 77 81 return similarity;
Note: See TracChangeset
for help on using the changeset viewer.