Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-1673

Roulette wheel selection

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Won't Do
    • 3.12.0
    • None
    • lang.math.*
    • None

    Description

      Implement roulette wheel selection
      https://en.wikipedia.org/wiki/Fitness_proportionate_selection

      For example, if you want to have a probability distribution like this:

      • 1 - 30%
      • 2 - 40%
      • 3 - 25%
      • 4 - 5%

      You will be able to easily achieve this by passing the following argument to the new component:

      {1 : 0.3, 2: 0.4, 3: 0.25, 4: 0.05}
      

      or

      {1 : 0.6, 2: 0.8, 3: 0.5, 4: 0.1}
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            Ivan091 Ivan Karnasevich
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: