Changeset 11672 for branches/Parameter-less Population Pyramid/HeuristicLab.Algorithms.ParameterlessPopulationPyramid/3.3/LinkageTree.cs
- Timestamp:
- 12/09/14 14:25:57 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Parameter-less Population Pyramid/HeuristicLab.Algorithms.ParameterlessPopulationPyramid/3.3/LinkageTree.cs
r11669 r11672 75 75 // While "total" always has an integer value, it is a double to reduce 76 76 // how often type casts are needed to prevent integer divison 77 // In the GECCO paper, calculates Equation 2 77 78 private static double NegativeEntropy(int[] counts, double total) { 78 79 double sum = 0; … … 85 86 } 86 87 88 // Uses the frequency table to calcuate the entropy distance between two indices. 89 // In the GECCO paper, calculates Equation 1 87 90 private double EntropyDistance(int i, int j) { 88 91 // This ensures you are using the lower triangular part of "occurances" … … 111 114 } 112 115 116 // Performs O(N^2) clustering based on the method described in: 117 // "Optimal implementations of UPGMA and other common clustering algorithms" 118 // by I. Gronau and S. Moran 119 // In the GECCO paper, Figure 2 is a simplified version of this algorithm. 113 120 private void Rebuild() { 114 121 // Keep track of which clusters have not been merged … … 160 167 topLevel.Swap(end_of_path, best_index); 161 168 end_of_path++; 162 163 169 } 164 170 // Last two elements in the path are the clusters to join
Note: See TracChangeset
for help on using the changeset viewer.