Changeset 9142
- Timestamp:
- 01/10/13 09:48:22 (12 years ago)
- Location:
- branches/FitnessLandscapeAnalysis/HeuristicLab.Analysis.FitnessLandscape/Analysis
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/FitnessLandscapeAnalysis/HeuristicLab.Analysis.FitnessLandscape/Analysis/InformationAnalysis.cs
r8744 r9142 46 46 Regularity = new HashSet<double>(differences).Count; 47 47 Diversity = new HashSet<double>(qualities).Count; 48 var absDifferences = differences.Select(Math.Abs).OrderBy(d => d).ToList(); 49 nQuantiles = Math.Min(nQuantiles, absDifferences.Count); 48 50 var thresholds = (nQuantiles == 0 49 ? differences.Select(Math.Abs).OrderBy(d => d)51 ? absDifferences 50 52 : UniqueThresholdCalculator.DetermineThresholds(differences, nQuantiles)).ToList(); 51 53 foreach (var eps in thresholds) { -
branches/FitnessLandscapeAnalysis/HeuristicLab.Analysis.FitnessLandscape/Analysis/InformationAnalyzer.cs
r8744 r9142 19 19 */ 20 20 #endregion 21 22 using System; 21 23 using System.Linq; 22 24 using HeuristicLab.Analysis.FitnessLandscape.DataTables; … … 178 180 int shapeSize = ShapeSizeParameter.ActualValue.Value; 179 181 var qualities = QualityTrailParameter.ActualValue.Rows.First().Values.ToList(); 180 if (qualities.Count > nQuantiles) {182 if (qualities.Count > 2) { 181 183 InformationAnalysisTable informationTable = InformationParameter.ActualValue; 182 184 var informationContent = informationTable.Rows["Information Content"].Values;
Note: See TracChangeset
for help on using the changeset viewer.