Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.epochx.op.selection
Interface PoolSelector<TYPE>

All Known Implementing Classes:
  LinearRankSelector, RandomSelector, TournamentSelector

    public interface PoolSelector<TYPE>

PoolSelectors are for selecting a group of individuals from a population of programs. Most selectors will choose the individuals based in some way upon the fitness of the programs. In many circumstances PoolSelectors will work in the same way as ProgramSelectors and often implemented by the same class.

Method Summary
`java.util.List<CandidateProgram<TYPE>>` | `getPool(java.util.List<CandidateProgram<TYPE>> pop, int poolSize)` Select a `CandidateProgram` from the current population of programs.

Method Detail

### getPool

    java.util.List<CandidateProgram<TYPE>> getPool(java.util.List<CandidateProgram<TYPE>> pop,
                                                   int poolSize)

  Select a `CandidateProgram` from the current population of programs. The method of selection would normally be based upon the fitness of the program but there is no need for it to be, and there are exceptions.

  Parameters:
    `pop` - the population from which the pool should be constructed.
    `poolSize` - the number of programs that should be selected to create the pool.
  Returns:
    a List of CandidatePrograms selected from the current population of programs to form a program pool.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD