Changeset 9142 for branches/FitnessLandscapeAnalysis/HeuristicLab.Analysis.FitnessLandscape/Analysis/InformationAnalysis.cs
- Timestamp:
- 01/10/13 09:48:22 (12 years ago)
- File:
-
- 1 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) {
Note: See TracChangeset
for help on using the changeset viewer.