org.encog.ml.ea.genome
Interface Genome
-
- All Superinterfaces:
- MLMethod
- All Known Subinterfaces:
- ArrayGenome
- All Known Implementing Classes:
- BasicGenome, DoubleArrayGenome, EncogProgram, HyperNEATGenome, IntegerArrayGenome, MLMethodGenome, NEATGenome
public interface Genome extends MLMethod
A genome is the basic blueprint for creating an phenome (organism) in Encog. Some genomes also function as phenomes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description voidcopy(Genome source)Copy from the specified genome into this one.doublegetAdjustedScore()Get the adjusted score, this considers old-age penalties and youth bonuses.intgetBirthGeneration()PopulationgetPopulation()doublegetScore()java.lang.StringgetSource()SpeciesgetSpecies()voidsetAdjustedScore(double adjustedScore)Set the adjusted score.voidsetBirthGeneration(int birthGeneration)Set the birth genertion (or iteration).voidsetPopulation(Population population)Set the population that this genome belongs to.voidsetScore(double score)Set the score.voidsetSource(java.lang.String theSource)Set the source of this genome.voidsetSpecies(Species s)Set the species for this genome.intsize()
-
-
-
Method Detail
-
copy
void copy(Genome source)
Copy from the specified genome into this one.- Parameters:
source- The source genome.
-
getAdjustedScore
double getAdjustedScore()
Get the adjusted score, this considers old-age penalties and youth bonuses. If there are no such bonuses or penalties, this is the same as the score.- Returns:
- The adjusted score.
-
getBirthGeneration
int getBirthGeneration()
- Returns:
- The birth generation (or iteration).
-
getPopulation
Population getPopulation()
- Returns:
- The population that this genome belongs to.
-
getScore
double getScore()
- Returns:
- The score for this genome.
-
setAdjustedScore
void setAdjustedScore(double adjustedScore)
Set the adjusted score.- Parameters:
adjustedScore- The adjusted score.
-
setBirthGeneration
void setBirthGeneration(int birthGeneration)
Set the birth genertion (or iteration).- Parameters:
birthGeneration- The birth generation.
-
setPopulation
void setPopulation(Population population)
Set the population that this genome belongs to.- Parameters:
population- The population that this genome belongs to.
-
setScore
void setScore(double score)
Set the score.- Parameters:
score- The new score.
-
size
int size()
- Returns:
- Return the size of this genome. This size is a relative number that indicates the complexity of the genome.
-
getSpecies
Species getSpecies()
- Returns:
- The species for this genome.
-
setSpecies
void setSpecies(Species s)
Set the species for this genome.- Parameters:
s- The species.
-
getSource
java.lang.String getSource()
- Returns:
- The source of this genome.
-
setSource
void setSource(java.lang.String theSource)
Set the source of this genome.- Parameters:
theSource- The source.
-
-
DMelt 3.0 © DataMelt by jWork.ORG