public class FitnessProportionateSelection<T extends Chromosome> extends SelectionFunction<T>
logger, maximize| Constructor and Description |
|---|
FitnessProportionateSelection() |
| Modifier and Type | Method and Description |
|---|---|
int |
getIndex(List<T> population)
Return index of next offspring
|
List<T> |
select(List<T> population,
int number)
Return n parents
|
isMaximize, select, setMaximizepublic int getIndex(List<T> population)
getIndex in class SelectionFunction<T extends Chromosome>population - a List object.public List<T> select(List<T> population, int number)
select in class SelectionFunction<T extends Chromosome>population - a List object.number - nList object.Copyright © 2010–2017 EvoSuite. All rights reserved.