Package org.opt4j.operator.diversity
Interface Diversity<G extends Genotype>
-
- Type Parameters:
G
- the type of genotype
- All Superinterfaces:
Operator<G>
- All Known Subinterfaces:
DiversityBoolean
,DiversityDouble
,DiversityInteger
- All Known Implementing Classes:
DiversityBooleanFraction
,DiversityDoubleAbsolute
,DiversityDoubleEuclidean
,DiversityGenericImplementation
,DiversityIntegerEuclidean
,DiversityPermutation
public interface Diversity<G extends Genotype> extends Operator<G>
TheDiversity
determines the genetic diversity of twoIndividual
s. The genetic diversity is 0 if bothGenotype
s are equal and 1 of they are of maximum diversity.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description double
diversity(G a, G b)
Returns the genetic diversity of twoGenotype
s.
-