G - the type of genotypepublic interface Diversity<G extends Genotype> extends Operator<G>
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.| Modifier and Type | Method and Description |
|---|---|
double |
diversity(G a,
G b)
Returns the genetic diversity of two
Genotypes. |