public abstract class Chromosome<C> extends TechnicalDomainObject
| Modifier and Type | Class and Description |
|---|---|
static class |
Chromosome.ChromosomeComparator |
DomainObject.DomainObjectKeyComparator<K extends Serializable & Comparable<K>>| Modifier | Constructor and Description |
|---|---|
protected |
Chromosome() |
| Modifier and Type | Method and Description |
|---|---|
void |
addToError(double additionalError)
Adds the additional error actual fitness error.
|
void |
addToScore(double additionalScore)
Adds the additional fitness score to actual fitness score.
|
void |
copyFrom(DomainObject<Long> domainObject) |
C |
getCode() |
abstract int |
getCodeSize() |
double |
getError() |
Double |
getFitness() |
Population<C> |
getPopulation() |
Double |
getScore() |
boolean |
hasFitness() |
void |
nullScore()
Nulls fitness score.
|
void |
renormalizeFitnessScore()
Processes fitness renormalization operation.
|
void |
renormalizeFitnessScoreAdvanced(int order,
int populationSize)
Processes fitness advanced renormalization operation.
|
void |
setCode(C code) |
void |
setError(double error) |
void |
setFitness(Double fitness) |
protected void |
setPopulation(Population<C> population) |
void |
setScore(Double score) |
String |
toString() |
String |
toStringWithCode()
Converts to standard String representation with additional information about code.
|
getId, getKey, getVersion, setId, setKey, setVersionequals, hashCodeprotected C code
public C getCode()
public void setCode(C code)
public boolean hasFitness()
public Double getFitness()
public void setFitness(Double fitness)
public Double getScore()
public void setScore(Double score)
public double getError()
public void setError(double error)
public Population<C> getPopulation()
protected void setPopulation(Population<C> population)
public abstract int getCodeSize()
public void nullScore()
public void addToScore(double additionalScore)
additionalScore - The score to add.public void addToError(double additionalError)
additionalError - The error to add.public void renormalizeFitnessScore()
public void renormalizeFitnessScoreAdvanced(int order,
int populationSize)
order - The order of fitness score to renormalize.populationSize - The size of population.public String toString()
toString in class DomainObject<Long>Object.toString()public String toStringWithCode()
public void copyFrom(DomainObject<Long> domainObject)
copyFrom in class DomainObject<Long>com.banda.core.domain.TechnicalDomainObject#copyFrom(com.banda.core.domain.TechnicalDomainObject)Copyright © 2019. All Rights Reserved.