Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/13/15 15:00:15 (9 years ago)
Author:
abeham
Message:

#2174, #2282: merged revisions r11961,r11963,r11967,r11970,r11971,r11982,r11984,r11998,r12001,r12002,r12003,r12004,r11939,r11945,r11956,r11958,r11959,r11960,r11983,r11987,r11988,r11990,r11993,r11994,r11996,r11999,r12000 to stable

Location:
stable
Files:
3 edited
1 copied

Legend:

Unmodified
Added
Removed
  • stable

  • stable/HeuristicLab.Tests

  • stable/HeuristicLab.Tests/HeuristicLab.Algorithms.ParameterlessPopulationPyramid-3.3/LinkageTreeTest.cs

    r11939 r12005  
    2222using System.Linq;
    2323using HeuristicLab.Algorithms.ParameterlessPopulationPyramid;
     24using HeuristicLab.Encodings.BinaryVectorEncoding;
    2425using HeuristicLab.Random;
    2526using Microsoft.VisualStudio.TestTools.UnitTesting;
     
    2930  public class LinkageTreeTest {
    3031    private static int Length = 9;
    31     private static bool[][] solutions = new bool[][] {
    32     new bool[] { true, true, false, false, false, false, false, false, false }, // 110000000
    33     new bool[] { false, false, true, true, false, false, false, false, false }, // 001100000
    34     new bool[] { false, false, false, false, true, true, false, false, false }, // 000011000
    35     new bool[] { false, false, false, false, false, false, true, true, true },  // 000000111
    36     new bool[] { true, true, true, true, false, false, false, false, false },   // 111100000
    37     new bool[] { true, true, true, true, true, true, true, true, true },        // 111111111
     32    private static BinaryVector[] solutions = {
     33    new BinaryVector(new [] { true, true, false, false, false, false, false, false, false }), // 110000000
     34    new BinaryVector(new [] { false, false, true, true, false, false, false, false, false }), // 001100000
     35    new BinaryVector(new [] { false, false, false, false, true, true, false, false, false }), // 000011000
     36    new BinaryVector(new [] { false, false, false, false, false, false, true, true, true }),  // 000000111
     37    new BinaryVector(new [] { true, true, true, true, false, false, false, false, false }),   // 111100000
     38    new BinaryVector(new [] { true, true, true, true, true, true, true, true, true }),        // 111111111
    3839    };
    3940
    4041    // These are the clusters that should be built using "solutions" and the seed 123
    41     private static int[][] correctClusters = new int[][] {
     42    private static int[][] correctClusters = {
    4243      new int[] { 4, 5 },
    4344      new int[] { 2, 3 },
Note: See TracChangeset for help on using the changeset viewer.