Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/10/13 09:48:22 (12 years ago)
Author:
epitzer
Message:

#1696 enable information analysis on very short walks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/FitnessLandscapeAnalysis/HeuristicLab.Analysis.FitnessLandscape/Analysis/InformationAnalysis.cs

    r8744 r9142  
    4646      Regularity = new HashSet<double>(differences).Count;
    4747      Diversity = new HashSet<double>(qualities).Count;
     48      var absDifferences = differences.Select(Math.Abs).OrderBy(d => d).ToList();
     49      nQuantiles = Math.Min(nQuantiles, absDifferences.Count);
    4850      var thresholds = (nQuantiles == 0
    49                          ? differences.Select(Math.Abs).OrderBy(d => d)
     51                         ? absDifferences
    5052                         : UniqueThresholdCalculator.DetermineThresholds(differences, nQuantiles)).ToList();
    5153      foreach (var eps in thresholds) {
Note: See TracChangeset for help on using the changeset viewer.