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
The
Diversity
determines the genetic diversity of two
Individual
s. The genetic diversity is 0 if both Genotype
s are
equal and 1 of they are of maximum diversity.-
Method Summary
-
Method Details
-
diversity
Returns the genetic diversity of twoGenotype
s.- Parameters:
a
- the first genotypeb
- the second genotype- Returns:
- the diversity of two genotypes
-