- Timestamp:
- 10/23/16 19:33:03 (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
r14353 r14354 61 61 } 62 62 63 public static double CalculateBottomUpSimilarity(ISymbolicExpressionTree t1, ISymbolicExpressionTree t2) {64 return new SymbolicExpressionTreeBottomUpSimilarityCalculator().CalculateSimilarity(t1, t2);65 }66 67 63 public override double CalculateSolutionSimilarity(IScope leftSolution, IScope rightSolution) { 68 64 if (leftSolution == rightSolution) … … 77 73 var similarity = CalculateSimilarity(t1, t2); 78 74 if (similarity > 1.0) 79 throw new Exception("Similarity value " + similarity + "cannot be greater than 1");75 throw new Exception("Similarity value cannot be greater than 1"); 80 76 81 77 return similarity; -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/TreeMatching/SymbolicExpressionTreePhenotypicSimilarityCalculator.cs
r14353 r14354 92 92 93 93 var r2 = error == OnlineCalculatorError.None ? r * r : 0; 94 95 if (r2 > 1.0) 96 r2 = 1.0; 97 94 98 return r2; 95 99 }
Note: See TracChangeset
for help on using the changeset viewer.