Free cookie consent management tool by TermsFeed Policy Generator

Opened 13 years ago

Last modified 12 years ago

#1848 closed enhancement

Integrate useful enumerable extension methods — at Version 2

Reported by: abeham Owned by: abeham
Priority: medium Milestone: HeuristicLab 3.3.7
Component: General Version: 3.3.7
Keywords: Cc: mkommend

Description (last modified by abeham)

For HeuristicLab.Random:

  • T SampleRandom<T>(IRandom random)
  • IEnumerable<T> SampleRandom<T>(IRandom random, int count)
  • IEnumerable<T> SampleRandomWithoutRepetition<T>(IRandom random, int count)
  • IEnumerable<T> SampleProportional<T>(IRandom random, int count, IEnumerable<double> weights, bool windowing = true, bool inverseProportional = false)
  • IEnumerable<T> SampleProportionalWithoutRepetition<T>(IRandom random, int count, IEnumerable<double> weights, bool windowing = true, bool inverseProportional = false)
  • IEnumerable<T> Shuffle<T>(IRandom random)

For HeuristicLab.Common:

  • IEnumerable<T> MaxItems<T>(Func<T, IComparable> keySelector)
  • IEnumerable<T> MinItems<T>(Func<T, IComparable> keySelector)
  • T[,] Transpose() where T : default

Change History (2)

comment:1 Changed 13 years ago by abeham

  • Status changed from new to accepted

comment:2 Changed 13 years ago by abeham

  • Description modified (diff)
Note: See TracTickets for help on using tickets.