public class DiversityGenericImplementation extends AbstractGenericOperator<Diversity<org.opt4j.core.Genotype>,Diversity<?>> implements Diversity<org.opt4j.core.Genotype>
DiversityGenericImplementation
is a standard implementation of
the Diversity
interface.AbstractGenericOperator.ClassComparator, AbstractGenericOperator.OperatorClassPredicate, AbstractGenericOperator.OperatorHolder<P>, AbstractGenericOperator.OperatorPredicate, AbstractGenericOperator.OperatorVoidPredicate
classOperators, cldef, genericOperators, operatorSelectors
Modifier | Constructor and Description |
---|---|
protected |
DiversityGenericImplementation()
Constructs the
DiversityGenericImplementation . |
Modifier and Type | Method and Description |
---|---|
double |
diversity(org.opt4j.core.Genotype a,
org.opt4j.core.Genotype b)
Returns the genetic diversity of two
Genotype s. |
protected double |
diversityComposite(org.opt4j.core.genotype.CompositeGenotype<?,?> a,
org.opt4j.core.genotype.CompositeGenotype<?,?> b) |
addOperator, addOperatorSelector, getOperator, getOperators, getTarget, inject
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getOperatorType
@Inject protected DiversityGenericImplementation()
DiversityGenericImplementation
.public double diversity(org.opt4j.core.Genotype a, org.opt4j.core.Genotype b)
Diversity
Genotype
s.protected double diversityComposite(org.opt4j.core.genotype.CompositeGenotype<?,?> a, org.opt4j.core.genotype.CompositeGenotype<?,?> b)