Changeset 12341 for branches/SymbolicExpressionTreeEncoding/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/EnumerableExtensions.cs
- Timestamp:
- 04/23/15 16:59:32 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SymbolicExpressionTreeEncoding/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/EnumerableExtensions.cs
r12316 r12341 29 29 //This class should not be used anymore. Use HeuristicLab.Random.RandomEnumberable instead 30 30 //This could not be fixed right now, because the algorithm behavior would be modified => version increment 31 internalstatic class EnumerableExtensions {32 internalstatic 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) { 33 33 var list = xs as IList<T>; 34 34 if (list != null) { … … 39 39 } 40 40 } 41 internalstatic 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) { 42 42 var list = xs as IList<T>; 43 43 var weightsList = weights as IList<double>;
Note: See TracChangeset
for help on using the changeset viewer.