- Timestamp:
- 07/30/14 13:44:14 (10 years ago)
- Location:
- branches/HeuristicLab.BottomUpTreeDistance/HeuristicLab.Tests
- Files:
-
- 1 added
- 1 edited
- 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 } -
branches/HeuristicLab.BottomUpTreeDistance/HeuristicLab.Tests/HeuristicLab.Tests.csproj
r11234 r11239 97 97 </Choose> 98 98 <ItemGroup> 99 <Compile Include="BottomUpTreeSimilarityCalculatorTest.cs" /> 99 100 <Compile Include="MaxCommonSubtreeSimilarityCalculatorTest.cs" /> 100 <Compile Include="BottomUpSimilarityCalculatorTest.cs" />101 101 <Compile Include="Properties\AssemblyInfo.cs" /> 102 102 <Compile Include="SymbolicExpressionImporter.cs" />
Note: See TracChangeset
for help on using the changeset viewer.