- Timestamp:
- 10/23/16 19:31:18 (8 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/TreeMatching
- Files:
-
- 2 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; -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/TreeMatching/SymbolicExpressionTreePhenotypicSimilarityCalculator.cs
r14185 r14353 92 92 93 93 var r2 = error == OnlineCalculatorError.None ? r * r : 0; 94 95 if (r2 > 1.0)96 r2 = 1.0;97 98 94 return r2; 99 95 }
Note: See TracChangeset
for help on using the changeset viewer.