jm.music.tools.ga

## Class BestNSurvivorSelector

- java.lang.Object
- - jm.music.tools.ga.GAComponent
  - - jm.music.tools.ga.SurvivorSelector
    - - jm.music.tools.ga.BestNSurvivorSelector

-     public class BestNSurvivorSelector
      extends SurvivorSelector

- - ### Field Summary

    - ### Fields inherited from class jm.music.tools.ga.GAComponent

      `label, panel`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `BestNSurvivorSelector()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Phrase[]` | `selectSurvivors(Phrase[] population, double[] fitness, Phrase[] parents, double[] parentsFitness)`

    - ### Methods inherited from class jm.music.tools.ga.GAComponent

      `getLabel, getPanel`

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

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

- - ### Constructor Detail

    - #### BestNSurvivorSelector

          public BestNSurvivorSelector()

  - ### Method Detail

    - #### selectSurvivors

          public Phrase[] selectSurvivors(Phrase[] population,
                                 double[] fitness,
                                 Phrase[] parents,
                                 double[] parentsFitness)

      Specified by:
        `selectSurvivors` in class `SurvivorSelector`