|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Population
Defines a population of genomes.
| Method Summary | |
|---|---|
void |
add(Genome genome)
Add a genome to the population. |
void |
addAll(List<? extends Genome> newPop)
Add all of the specified members to this population. |
long |
assignGeneID()
|
long |
assignGenomeID()
|
long |
assignInnovationID()
|
long |
assignSpeciesID()
|
void |
clear()
Clear all genomes from this population. |
Genome |
get(int i)
Get a genome by index. |
Genome |
getBest()
|
List<Genome> |
getGenomes()
|
InnovationList |
getInnovations()
|
double |
getOldAgePenalty()
|
int |
getOldAgeThreshold()
|
int |
getPopulationSize()
|
List<Species> |
getSpecies()
|
double |
getSurvivalRate()
|
int |
getYoungBonusAgeThreshold()
|
double |
getYoungScoreBonus()
|
void |
setInnovations(InnovationList innovations)
Set the innovations collection. |
void |
setOldAgePenalty(double oldAgePenalty)
Set the old age penalty. |
void |
setOldAgeThreshold(int oldAgeThreshold)
Set the age at which a genome is considered "old". |
void |
setPopulationSize(int populationSize)
Set the max population size. |
void |
setSurvivalRate(double survivalRate)
Set the survival rate. |
void |
setYoungBonusAgeThreshhold(int youngBonusAgeThreshhold)
Set the age at which genoms are considered young. |
void |
setYoungScoreBonus(double youngScoreBonus)
Set the youth score bonus. |
int |
size()
|
void |
sort()
Sort the population by best score. |
| Methods inherited from interface org.encog.persist.EncogPersistedObject |
|---|
createPersistor, getCollection, getDescription, getName, setCollection, setDescription, setName |
| Method Detail |
|---|
void add(Genome genome)
genome - The genome to add.void addAll(List<? extends Genome> newPop)
newPop - A list of new genomes to add.long assignGeneID()
long assignGenomeID()
long assignInnovationID()
long assignSpeciesID()
void clear()
Genome get(int i)
i - The genome to get.
Genome getBest()
List<Genome> getGenomes()
InnovationList getInnovations()
double getOldAgePenalty()
int getOldAgeThreshold()
int getPopulationSize()
List<Species> getSpecies()
double getSurvivalRate()
int getYoungBonusAgeThreshold()
double getYoungScoreBonus()
void setInnovations(InnovationList innovations)
innovations - The innovations collection.void setOldAgePenalty(double oldAgePenalty)
oldAgePenalty - The old age penalty.void setOldAgeThreshold(int oldAgeThreshold)
oldAgeThreshold - The old age threshold.void setPopulationSize(int populationSize)
populationSize - The max population size.void setSurvivalRate(double survivalRate)
survivalRate - The survival rate.void setYoungBonusAgeThreshhold(int youngBonusAgeThreshhold)
youngBonusAgeThreshhold - The age.void setYoungScoreBonus(double youngScoreBonus)
youngScoreBonus - The bonus.int size()
void sort()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||