public class NeuralNetIndividual
extends <any>
Individuals with a INeuralNet as genotype
Modifier and Type | Field and Description |
---|---|
protected static <any> |
XML
Marshal individual fitness (inherited format).
|
Constructor and Description |
---|
NeuralNetIndividual()
Empty contructor
|
NeuralNetIndividual(INeuralNet genotype)
Constructor that sets individual genotype
|
NeuralNetIndividual(INeuralNet genotype,
IFitness fitness)
Constructor that sets individual genotype and fitness
|
Modifier and Type | Method and Description |
---|---|
IIndividual |
copy()
Copies individuals
|
double |
distance(IIndividual other)
Hamming distance
|
boolean |
equals(java.lang.Object other)
Compares individuals
|
protected java.lang.String |
renderNeuralNetIndividual()
Returns a string that represents the individual
This method can be used by class that extends NeuralNetIndividual
|
java.lang.String |
toString()
Converts a individual to string
|
protected static final <any> XML
public NeuralNetIndividual()
Empty contructor
public NeuralNetIndividual(INeuralNet genotype)
Constructor that sets individual genotype
genotype
- Individual genotype
public NeuralNetIndividual(INeuralNet genotype, IFitness fitness)
Constructor that sets individual genotype and fitness
genotype
- Individual genotypefitness
- Individual fitness
public IIndividual copy()
Copies individuals
public double distance(IIndividual other)
Hamming distance
other
- other individual to compute the distance with.public boolean equals(java.lang.Object other)
Compares individuals
other
- Individualjava.lang.IllegalArgumentException
- if other isn't an instance
of BinArrayIndividualpublic java.lang.String toString()
Converts a individual to string
protected java.lang.String renderNeuralNetIndividual()
Returns a string that represents the individual This method can be used by class that extends NeuralNetIndividual