Free cookie consent management tool by TermsFeed Policy Generator

# Changeset 10275

Ignore:
Timestamp:
01/04/14 01:39:50 (11 years ago)
Message:

#1886 added calculation of diameter and updated convex hull modifier to calculate the new measures

Location:
branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers/3.3
Files:
4 edited

Unmodified
Removed
• ## branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers/3.3/ConvexHullMeasures.cs

 r10274 } public static double[] CalculateCentroid(List convexHull) { public static double[] CalculateCentroids(List convexHull) { int n = convexHull.Count; int dim = convexHull.First().Length; double ca = c.EuclideanDistance(a); return Math.Acos((ab * ab + bc * bc - ca * ca) / (2 * ab * bc)); //return degrees return Math.Acos((ab * ab + bc * bc - ca * ca) / (2 * ab * bc)) * 180.0 / Math.PI; } return thetas; } public static double CalculateMaxDiameter(List convexHull) { double maxDist = double.MinValue; for (int i = 0; i < convexHull.Count; i++) { for (int j = 0; j < convexHull.Count; j++) { if (i != j) { double dist = convexHull[i].EuclideanDistance(convexHull[j]); if (dist > maxDist) maxDist = dist; } } } return maxDist; } } }
• ## branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers/3.3/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers-3.3.csproj

 r10262 False False ..\..\..\..\trunk\sources\bin\HeuristicLab.Problems.TestFunctions-3.3.dll False False
• ## branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers/3.3/Plugin.cs.frame

 r10116 [PluginDependency("HeuristicLab.Encodings.RealVectorEncoding", "3.3")] [PluginDependency("HeuristicLab.Problems.TravelingSalesman", "3.3")] [PluginDependency("HeuristicLab.Problems.TestFunctions", "3.3")] [PluginDependency("HeuristicLab.Operators", "3.3")] [PluginDependency("HeuristicLab.Optimization", "3.3")]