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>
TheDiversitydetermines the genetic diversity of twoIndividuals. The genetic diversity is 0 if bothGenotypes are equal and 1 of they are of maximum diversity.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description doublediversity(G a, G b)Returns the genetic diversity of twoGenotypes.
-