Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/05/14 10:40:26 (10 years ago)
Author:
mkommend
Message:

#2282: Refactored LinkageTree and adapted unit tests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Parameter-less Population Pyramid/ParameterlessPopulationPyramid.Test/LinkageTreeTest.cs

    r11656 r11662  
    11using System;
     2using System.Collections.Generic;
    23using System.Linq;
    3 using System.Collections;
    4 using System.Collections.Generic;
    54using HeuristicLab.Algorithms.ParameterlessPopulationPyramid;
    65using HeuristicLab.Random;
     
    7170      tree.Rebuild(rand);
    7271      PrivateObject hidden = new PrivateObject(tree);
    73       var ordering = (List<int>)hidden.GetField("cluster_ordering");
     72      var ordering = (List<int>)hidden.GetField("clusterOrdering");
    7473      var clusters = (List<int>[])hidden.GetField("clusters");
    7574      int[][] comparable = new int[ordering.Count][];
    76       for (int i=0; i < ordering.Count; i++) {
     75      for (int i = 0; i < ordering.Count; i++) {
    7776        var found = clusters[ordering[i]].ToArray();
    7877        Array.Sort(found);
    7978        Assert.IsTrue(correctClusters[i].SequenceEqual(found));
    80       }     
     79      }
    8180    }
    8281  }
Note: See TracChangeset for help on using the changeset viewer.