Changeset 10098
- Timestamp:
- 10/31/13 09:34:52 (11 years ago)
- Location:
- branches/HeuristicLab.Analysis.AlgorithmBehavior
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers.Views/3.3/ConvexHullView.cs
r10060 r10098 47 47 48 48 var input = sols.Select(x => ConvertPermutationToVertex(x)).ToArray(); 49 var convexHull = HyperHull.CalculateUsingSMO(input);49 var convexHull = LPHull.Calculate(input); 50 50 resultsTextBox.Text += "Nr. of Points in Generation " + i + ": " + convexHull.Count + Environment.NewLine; 51 51 resultsTextBox.Text += "Volume of Convex Hull in Generation " + i + " is: " + -
branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers/3.3/DistanceMatrixToPoints.cs
r10097 r10098 136 136 return points; 137 137 } 138 139 public static double[][] TransformToDistances(double[][] similarityMatrix) { 140 double[][] dm = new double[similarityMatrix.Length][]; 141 142 for (int i = 0; i < dm.Length; i++) { 143 dm[i] = new double[similarityMatrix.Length]; 144 for (int j = 0; j < dm.Length; j++) { 145 dm[i][j] = Math.Sqrt(similarityMatrix[i][i] + similarityMatrix[j][j] - 2 * similarityMatrix[i][j]); 146 } 147 } 148 149 return dm; 150 } 138 151 } 139 152 }
Note: See TracChangeset
for help on using the changeset viewer.