Changeset 11239 for branches/HeuristicLab.BottomUpTreeDistance/HeuristicLab.Tests/BottomUpTreeSimilarityCalculatorTest.cs
- Timestamp:
- 07/30/14 13:44:14 (10 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.BottomUpTreeDistance/HeuristicLab.Tests/BottomUpTreeSimilarityCalculatorTest.cs
r11236 r11239 14 14 [TestClass] 15 15 public class BottomUpSimilarityCalculatorTest { 16 private readonly BottomUp SimilarityCalculator busCalculator;16 private readonly BottomUpTreeSimilarityCalculator busCalculator; 17 17 private readonly SymbolicExpressionImporter importer; 18 18 … … 22 22 23 23 public BottomUpSimilarityCalculatorTest() { 24 busCalculator = new BottomUp SimilarityCalculator();24 busCalculator = new BottomUpTreeSimilarityCalculator(new List<string> { "Addition", "Multiplication", "And", "Or", "Xor" }); 25 25 importer = new SymbolicExpressionImporter(); 26 26 } … … 85 85 } 86 86 } 87 87 88 sw.Stop(); 88 Console.WriteLine("Elapsed time: " + sw.ElapsedMilliseconds / 1000.0 + ", Avg. similarity: " + s );89 Console.WriteLine("Elapsed time: " + sw.ElapsedMilliseconds / 1000.0 + ", Avg. similarity: " + s / (N * (N - 1) / 2)); 89 90 Console.WriteLine(N * (N + 1) / (2 * sw.ElapsedMilliseconds / 1000.0) + " similarity calculations per second."); 90 91 }
Note: See TracChangeset
for help on using the changeset viewer.