|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rapidminer.tools.math.optimization.ec.es.Population
public class Population
A set of individuals. Each individual contains the values vector and information about its fitness.
| Field Summary | |
|---|---|
static java.util.Comparator<Individual> |
PERFORMANCE_COMPARATOR
|
| Constructor Summary | |
|---|---|
Population()
|
|
| Method Summary | |
|---|---|
void |
add(Individual individual)
Adds a single individual. |
void |
addAll(java.util.Collection<Individual> newIndividuals)
Adds all individuals from the given collection. |
void |
clear()
Removes all individuals. |
Individual |
get(int i)
Returns a single individual. |
Individual |
getBestEver()
|
Individual |
getCurrentBest()
|
int |
getGeneration()
|
int |
getGenerationsWithoutImprovement()
|
int |
getNumberOfIndividuals()
Returns the number of all individuals. |
void |
nextGeneration()
|
void |
remove(Individual individual)
Removes a single individual. |
void |
remove(int i)
Removes a single individual. |
void |
setBestEver(Individual bestEver)
|
void |
setCurrentBest(Individual currentBest)
|
void |
sort()
Sorts the individuals in ascending order according to their performance, thus the best one will be in last position. |
void |
sort(java.util.Comparator<Individual> comparator)
Sorts the individuals in ascending order according to their performance, thus the best one will be in last position. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.util.Comparator<Individual> PERFORMANCE_COMPARATOR
| Constructor Detail |
|---|
public Population()
| Method Detail |
|---|
public void clear()
public void add(Individual individual)
public void addAll(java.util.Collection<Individual> newIndividuals)
public void remove(Individual individual)
public void remove(int i)
public Individual get(int i)
public int getNumberOfIndividuals()
public void setCurrentBest(Individual currentBest)
public Individual getCurrentBest()
public void setBestEver(Individual bestEver)
public Individual getBestEver()
public void nextGeneration()
public int getGeneration()
public int getGenerationsWithoutImprovement()
public void sort()
public void sort(java.util.Comparator<Individual> comparator)
public java.lang.String toString()
toString in class java.lang.Object
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||