Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/23/15 16:59:32 (10 years ago)
Author:
mkommend
Message:

#2320: Adapted all dependent plugins to the new design of the symbolic expression tree interfaces.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SymbolicExpressionTreeEncoding/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/EnumerableExtensions.cs

    r12316 r12341  
    2929  //This class should not be used anymore. Use HeuristicLab.Random.RandomEnumberable instead
    3030  //This could not be fixed right now, because the algorithm behavior would be modified => version increment
    31   internal static class EnumerableExtensions {
    32     internal static T SelectRandom<T>(this IEnumerable<T> xs, IRandom random) {
     31  public static class EnumerableExtensions {
     32    public static T SelectRandom<T>(this IEnumerable<T> xs, IRandom random) {
    3333      var list = xs as IList<T>;
    3434      if (list != null) {
     
    3939      }
    4040    }
    41     internal static T SelectRandom<T>(this IEnumerable<T> xs, IEnumerable<double> weights, IRandom random) {
     41    public static T SelectRandom<T>(this IEnumerable<T> xs, IEnumerable<double> weights, IRandom random) {
    4242      var list = xs as IList<T>;
    4343      var weightsList = weights as IList<double>;
Note: See TracChangeset for help on using the changeset viewer.