Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/30/13 21:49:27 (11 years ago)
Author:
ascheibe
Message:

#1886 added metric mds for testing purposes

File:
1 edited

Legend:

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

    r10092 r10097  
    5454    //calculates the volume of a convex d-polytope
    5555    //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);
    5858      double volume = 0.0;
    5959
    60       for (int i = 0; i < hyperHull.Count - 1; i += 2) {
     60      for (int i = 0; i < convexHull.Count - 1; i += 2) {
    6161        List<double[]> simplex = new List<double[]>();
    6262        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]);
    6565        volume += CalculateSimplexVolume(simplex);
    6666      }
Note: See TracChangeset for help on using the changeset viewer.