Free cookie consent management tool by TermsFeed Policy Generator

Changeset 16119


Ignore:
Timestamp:
08/30/18 12:45:07 (6 years ago)
Author:
abeham
Message:

#2457:

  • Introduced check if there are no curves that satisfy the criterion of having at least 6 points
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2457_ExpertSystem/HeuristicLab.Analysis.FitnessLandscape/3.3/ProblemCharacteristicAnalysis/CurveAnalysis.cs

    r16096 r16119  
    2828    public static CurveAnalysisResult GetCharacteristics(List<List<Tuple<T, double>>> trajectories, Func<T, T, double> distFunc) {
    2929      trajectories = trajectories.Where(x => x.Count > 5).ToList();
     30      if (trajectories.Count == 0) return new CurveAnalysisResult(0, 0, 0, new[] { 0.0, 0.0, 0.0 }, new[] { 0.0, 0.0, 0.0 }, new[] { 0.0, 0.0, 0.0 });
     31
    3032      var symbols = GetSymbols(trajectories);
    3133      var f1 = trajectories.Select(path => ApproximateDerivative(path, distFunc).ToList()).ToList();
Note: See TracChangeset for help on using the changeset viewer.