Free cookie consent management tool by TermsFeed Policy Generator

Opened 12 years ago

Closed 12 years ago

#1848 closed enhancement (done)

Integrate useful enumerable extension methods

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> valueSelector)
  • IEnumerable<T> MinItems<T>(Func<T, IComparable> valueSelector)
  • T[,] Transpose()

Change History (8)

comment:1 Changed 12 years ago by abeham

  • Status changed from new to accepted

comment:2 Changed 12 years ago by abeham

  • Description modified (diff)

comment:3 Changed 12 years ago by abeham

r7807

  • updated extension methods

comment:4 Changed 12 years ago by abeham

  • Owner changed from abeham to mkommend
  • Status changed from accepted to reviewing

r7812

  • Added extension methods to trunk

comment:5 Changed 12 years ago by abeham

  • Description modified (diff)

comment:6 Changed 12 years ago by abeham

r7828: fixed a bug in SampleProportional

comment:7 Changed 12 years ago by mkommend

  • Owner changed from mkommend to abeham
  • Status changed from reviewing to readytorelease

comment:8 Changed 12 years ago by mkommend

  • Resolution set to done
  • Status changed from readytorelease to closed
  • Version changed from 3.3.6 to 3.3.7
Note: See TracTickets for help on using tickets.