Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/15/16 21:23:43 (8 years ago)
Author:
gkronber
Message:

#2697:

  • removed AlglibUtil.cs and added an extension method .ToArray(names, rows) to IDataset instead.
  • refactored transformation so that it is possible to apply an transformation without resetting the parameters
  • Used transformations instead of Scaling as far as possible.
  • Moved TakeEvery extension method to HL.Common
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Common/3.3/EnumerableExtensions.cs

    r13899 r14393  
    133133      }
    134134    }
     135    public static IEnumerable<T> TakeEvery<T>(this IEnumerable<T> xs, int nth) {
     136      int i = 0;
     137      foreach (var x in xs) {
     138        if (i % nth == 0) yield return x;
     139        i++;
     140      }
     141    }
    135142
    136143    /// <summary>
Note: See TracChangeset for help on using the changeset viewer.