Selection

genetic

## Class Selection

- java.lang.Object
- - genetic.Selection

-     public class Selection
      extends java.lang.Object

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `private jm.music.data.Phrase[]` | `chromosomes`
    `private double[]` | `fitness`
    `private int` | `selectionSize`
    `private int` | `tourSize`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `Selection(jm.music.data.Phrase[] chromosomes, double[] fitness, int tourSize)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `jm.music.data.Phrase[]` | `tourSelect()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### chromosomes

          private jm.music.data.Phrase[] chromosomes

    - #### fitness

          private double[] fitness

    - #### selectionSize

          private int selectionSize

    - #### tourSize

          private int tourSize

  - ### Constructor Detail

    - #### Selection

          public Selection(jm.music.data.Phrase[] chromosomes,
                   double[] fitness,
                   int tourSize)

  - ### Method Detail

    - #### tourSelect

          public jm.music.data.Phrase[] tourSelect()