|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.udc.gii.common.eaf.plugin.individual.IndividualChooser
es.udc.gii.common.eaf.plugin.individual.ClosestIndividual
public class ClosestIndividual
A plugin for choosing the closet individual to an other one from a list of individuals.
Closest means here the nearest individual in parameter space considering euclidean distance. Only the first chromosome of the individual is used.
Constructor Summary | |
---|---|
ClosestIndividual()
|
Method Summary | |
---|---|
void |
configure(org.apache.commons.configuration.Configuration conf)
Configures this plugin. |
Individual |
get(EvolutionaryAlgorithm algorithm,
java.util.List<Individual> individuals,
Individual reference)
Returns the closest individual chosen from a list of individuals. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClosestIndividual()
Method Detail |
---|
public Individual get(EvolutionaryAlgorithm algorithm, java.util.List<Individual> individuals, Individual reference)
get
in class IndividualChooser
algorithm
- Current evolutionary algorithm. (Not used and hence
it can be set to null
).individuals
- List of individuals from which to choose one.reference
- Individual that serves as a reference.
reference
from the passed list.
Euclidean disntance is used and only the first chromosome is considered.public void configure(org.apache.commons.configuration.Configuration conf)
conf
- Configuration
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |