|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.filters.supervised.attribute.gpattributegeneration.Selection
public class Selection
Class contains methods for helping with selection. Ported and modified from Luke Devonshire's C#.
Constructor Summary | |
---|---|
Selection()
|
Method Summary | |
---|---|
static Genome<Gene> |
crowdedTournament(java.util.Random rand,
Population population)
Performs tournament selection on the given population list using domination rank and crowding distance values (NSGAII) |
static Population |
elitist(Population population,
int numToCopy,
EnumSortingCriteria sortCriteria)
Performs elitist selection on the given population. |
static Genome<Gene> |
tournament(java.util.Random rand,
Population population)
Performs tournament selection on the given population list using fitness values |
static Genome<Gene> |
vectorTournament(java.util.Random rand,
Population population)
Performs tournament selection on the given population list using vector fitness values |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Selection()
Method Detail |
---|
public static Genome<Gene> tournament(java.util.Random rand, Population population)
rand
- Random object to use to select a random individualpopulation
- Population to get random individuals from
public static Genome<Gene> vectorTournament(java.util.Random rand, Population population)
rand
- Random object to use to select a random individualpopulation
- Population to get random individuals from
public static Genome<Gene> crowdedTournament(java.util.Random rand, Population population)
rand
- Random object to use to select a random individualpopulation
- Population to get random individuals from
public static Population elitist(Population population, int numToCopy, EnumSortingCriteria sortCriteria)
population
- Population to perform elitist selection onnumToCopy
- Number of individuals to select. If numToCopy > population size; all the population will be returnedsortCriteria
- Sorting criteria to use
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |