Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/11/20 13:39:48 (4 years ago)
Author:
pfleck
Message:

#3040 First draft of different-vector-length strategies (cut, fill, resample, cycle, ...)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3040_VectorBasedGP/HeuristicLab.Common/3.3/Statistics/EnumerableStatisticExtensions.cs

    r17180 r17721  
    230230      if (min > max) throw new ArgumentException(string.Format("Minimum {0} is larger than maximum {1}.", min, max));
    231231      foreach (var x in values) {
    232         if (double.IsNaN(x)) yield return (max + min) / 2.0;
    233         else if (x < min) yield return min;
     232        /*if (double.IsNaN(x)) yield return (max + min) / 2.0;
     233        else */
     234        if (x < min) yield return min;
    234235        else if (x > max) yield return max;
    235236        else yield return x;
Note: See TracChangeset for help on using the changeset viewer.