Changeset 10097 for branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers/3.3/ConvexHullMeasures.cs
- Timestamp:
- 10/30/13 21:49:27 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers/3.3/ConvexHullMeasures.cs
r10092 r10097 54 54 //calculates the volume of a convex d-polytope 55 55 //decomposition based on boundary triangulation 56 public static double CalculateVolume(List<double[]> hyperHull) {57 double[] innerPoint = CalculateInnerPoint( hyperHull);56 public static double CalculateVolume(List<double[]> convexHull) { 57 double[] innerPoint = CalculateInnerPoint(convexHull); 58 58 double volume = 0.0; 59 59 60 for (int i = 0; i < hyperHull.Count - 1; i += 2) {60 for (int i = 0; i < convexHull.Count - 1; i += 2) { 61 61 List<double[]> simplex = new List<double[]>(); 62 62 simplex.Add(innerPoint); 63 simplex.Add( hyperHull[i]);64 simplex.Add( hyperHull[i + 1]);63 simplex.Add(convexHull[i]); 64 simplex.Add(convexHull[i + 1]); 65 65 volume += CalculateSimplexVolume(simplex); 66 66 }
Note: See TracChangeset
for help on using the changeset viewer.