Changeset 10279 for branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers/3.3/RunCollectionModifiers
- Timestamp:
- 01/05/14 01:30:28 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers/3.3/RunCollectionModifiers/RealVectorConvexHullModifier.cs
r10275 r10279 73 73 DataTable centroidMotionTable = new DataTable(CentroidMotionName); 74 74 DoubleValue overallVolume = new DoubleValue(); 75 DoubleValue overallVolumeRatio = new DoubleValue(); 75 76 76 77 DataRow dtVolumeRow = new DataRow("Volume"); … … 112 113 if (completeHull != null && completeHull.Any() && completeHull.First().Length < completeHull.Count) { 113 114 overallVolume.Value = ConvexHullMeasures.CalculateVolume(completeHull); 115 var boundsMatrix = run.Parameters["Bounds"] as DoubleMatrix; 116 var bounds = new double[] { boundsMatrix[0, 0], boundsMatrix[0, 1] }; 117 double hyperHullVolume = ConvexHullMeasures.CalculateHypercubeVolume(bounds, BestSolutionParameter.Value.Length); 118 overallVolumeRatio.Value = overallVolume.Value / hyperHullVolume; 114 119 } else { 115 120 overallVolume.Value = double.NaN; 121 overallVolumeRatio.Value = double.NaN; 116 122 } 117 123 … … 121 127 122 128 run.Results["Overall volume"] = overallVolume; 129 run.Results["Overall volume ratio"] = overallVolumeRatio; 123 130 run.Results["Overall diameter"] = new DoubleValue(ConvexHullMeasures.CalculateMaxDiameter(completeHull)); 124 131 run.Results["Convex hull volume"] = volDataTable;
Note: See TracChangeset
for help on using the changeset viewer.