org.encog.ml.ea.genome
public abstract class BasicGenome extends Object implements Genome, Serializable
| Constructor and Description |
|---|
BasicGenome() |
| Modifier and Type | Method and Description |
|---|---|
double |
getAdjustedScore()
Get the adjusted score, this considers old-age penalties and youth
bonuses.
|
int |
getBirthGeneration() |
Population |
getPopulation() |
double |
getScore() |
Species |
getSpecies() |
void |
setAdjustedScore(double theAdjustedScore)
Set the adjusted score.
|
void |
setBirthGeneration(int birthGeneration)
Set the birth genertion (or iteration).
|
void |
setPopulation(Population thePopulation)
Set the population that this genome belongs to.
|
void |
setScore(double theScore)
Set the score.
|
void |
setSpecies(Species s)
Set the species for this genome.
|
String |
toString() |
public double getAdjustedScore()
GenomegetAdjustedScore in interface Genomepublic int getBirthGeneration()
getBirthGeneration in interface Genomepublic Population getPopulation()
getPopulation in interface Genomepublic void setAdjustedScore(double theAdjustedScore)
setAdjustedScore in interface GenometheAdjustedScore - The score.public void setBirthGeneration(int birthGeneration)
GenomesetBirthGeneration in interface GenomebirthGeneration - the birthGeneration to setpublic void setPopulation(Population thePopulation)
GenomesetPopulation in interface GenomethePopulation - the population to setpublic void setScore(double theScore)
public Species getSpecies()
getSpecies in interface Genomepublic void setSpecies(Species s)
GenomesetSpecies in interface Genomes - the species to setCopyright © 2014. All Rights Reserved.