Package org.opt4j.operator.diversity
Class DiversityGenericImplementation
java.lang.Object
org.opt4j.operator.AbstractGenericOperator<Diversity<Genotype>,Diversity<?>>
org.opt4j.operator.diversity.DiversityGenericImplementation
- All Implemented Interfaces:
Operator<Genotype>
,Diversity<Genotype>
,GenericOperator<Diversity<Genotype>>
public class DiversityGenericImplementation
extends AbstractGenericOperator<Diversity<Genotype>,Diversity<?>>
implements Diversity<Genotype>
The
DiversityGenericImplementation
is a standard implementation of
the Diversity
interface.-
Nested Class Summary
Nested classes/interfaces inherited from class org.opt4j.operator.AbstractGenericOperator
AbstractGenericOperator.ClassComparator, AbstractGenericOperator.OperatorClassPredicate, AbstractGenericOperator.OperatorHolder<P>, AbstractGenericOperator.OperatorPredicate, AbstractGenericOperator.OperatorVoidPredicate
-
Field Summary
Fields inherited from class org.opt4j.operator.AbstractGenericOperator
classOperators, cldef, genericOperators
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
Returns the genetic diversity of twoGenotype
s.protected double
diversityComposite
(CompositeGenotype<?, ?> a, CompositeGenotype<?, ?> b) Methods inherited from class org.opt4j.operator.AbstractGenericOperator
addOperator, getOperator, getOperators, getTarget, inject
-
Constructor Details
-
DiversityGenericImplementation
@Inject protected DiversityGenericImplementation()Constructs theDiversityGenericImplementation
.
-
-
Method Details