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()
Genome
getAdjustedScore
in interface Genome
public int getBirthGeneration()
getBirthGeneration
in interface Genome
public Population getPopulation()
getPopulation
in interface Genome
public void setAdjustedScore(double theAdjustedScore)
setAdjustedScore
in interface Genome
theAdjustedScore
- The score.public void setBirthGeneration(int birthGeneration)
Genome
setBirthGeneration
in interface Genome
birthGeneration
- the birthGeneration to setpublic void setPopulation(Population thePopulation)
Genome
setPopulation
in interface Genome
thePopulation
- the population to setpublic void setScore(double theScore)
public Species getSpecies()
getSpecies
in interface Genome
public void setSpecies(Species s)
Genome
setSpecies
in interface Genome
s
- the species to setCopyright © 2014. All Rights Reserved.