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