Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/04/11 01:01:27 (14 years ago)
Author:
abeham
Message:

#1330

  • Added HeuristicLab.Problems.QuadraticAssignment.Tests-3.3 project to solution
  • Fixed assembly name in HeuristicLab.Analysis.Tests-3.3
  • Added another test case to the MDS tests
  • Referenced the two QAP plugins in the tests project
  • Removed plugin dependency in HeuristicLab.Problems.QuadraticAssignment.Views to HeuristicLab.Optimization as the unit test complained about it
Location:
trunk/sources/HeuristicLab.Analysis/3.3/Tests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Analysis/3.3/Tests/HeuristicLab.Analysis.Tests-3.3.csproj

    r5933 r5938  
    1111    <AppDesignerFolder>Properties</AppDesignerFolder>
    1212    <RootNamespace>HeuristicLab.Analysis.Tests</RootNamespace>
    13     <AssemblyName>HeuristicLab.Analysis.Tests</AssemblyName>
     13    <AssemblyName>HeuristicLab.Analysis.Tests-3.3</AssemblyName>
    1414    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
    1515    <FileAlignment>512</FileAlignment>
  • trunk/sources/HeuristicLab.Analysis/3.3/Tests/MultidimensionalScalingTest.cs

    r5933 r5938  
    7676        MultidimensionalScaling.KruskalShepard(distancesK));
    7777      Assert.IsTrue(stress < 0.1);
     78      // Example 7: A matrix of perceived dissimilarities between 14 colors, published in the literature
     79      distancesK = new DoubleMatrix(new double[,] {
     80{ 0.00, 0.14, 0.58, 0.58, 0.82, 0.94, 0.93, 0.96, 0.98, 0.93, 0.91, 0.88, 0.87, 0.84 },
     81{ 0.14, 0.00, 0.50, 0.56, 0.78, 0.91, 0.93, 0.93, 0.98, 0.96, 0.93, 0.89, 0.87, 0.86 },
     82{ 0.58, 0.50, 0.00, 0.19, 0.53, 0.83, 0.90, 0.92, 0.98, 0.99, 0.98, 0.99, 0.95, 0.97 },
     83{ 0.58, 0.56, 0.19, 0.00, 0.46, 0.75, 0.90, 0.91, 0.98, 0.99, 1.00, 0.99, 0.98, 0.96 },
     84{ 0.82, 0.78, 0.53, 0.46, 0.00, 0.39, 0.69, 0.74, 0.93, 0.98, 0.98, 0.99, 0.98, 1.00 },
     85{ 0.94, 0.91, 0.83, 0.75, 0.39, 0.00, 0.38, 0.55, 0.86, 0.92, 0.98, 0.98, 0.98, 0.99 },
     86{ 0.93, 0.93, 0.90, 0.90, 0.69, 0.38, 0.00, 0.27, 0.78, 0.86, 0.95, 0.98, 0.98, 1.00 },
     87{ 0.96, 0.93, 0.92, 0.91, 0.74, 0.55, 0.27, 0.00, 0.67, 0.81, 0.96, 0.97, 0.98, 0.98 },
     88{ 0.98, 0.98, 0.98, 0.98, 0.93, 0.86, 0.78, 0.67, 0.00, 0.42, 0.63, 0.73, 0.80, 0.77 },
     89{ 0.93, 0.96, 0.99, 0.99, 0.98, 0.92, 0.86, 0.81, 0.42, 0.00, 0.26, 0.50, 0.59, 0.72 },
     90{ 0.91, 0.93, 0.98, 1.00, 0.98, 0.98, 0.95, 0.96, 0.63, 0.26, 0.00, 0.24, 0.38, 0.45 },
     91{ 0.88, 0.89, 0.99, 0.99, 0.99, 0.98, 0.98, 0.97, 0.73, 0.50, 0.24, 0.00, 0.15, 0.32 },
     92{ 0.87, 0.87, 0.95, 0.98, 0.98, 0.98, 0.98, 0.98, 0.80, 0.59, 0.38, 0.15, 0.00, 0.24 },
     93{ 0.84, 0.86, 0.97, 0.96, 1.00, 0.99, 1.00, 0.98, 0.77, 0.72, 0.45, 0.32, 0.24, 0.00 }});
     94      stress = MultidimensionalScaling.CalculateNormalizedStress(distancesK,
     95        MultidimensionalScaling.KruskalShepard(distancesK));
     96      Assert.IsTrue(stress < 0.1);
    7897    }
    7998
Note: See TracChangeset for help on using the changeset viewer.