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>
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

    Modifier and Type
    Method
    Description
    double
    diversity(G a, G b)
    Returns the genetic diversity of two Genotypes.
  • Method Details

    • diversity

      double diversity(G a, G b)
      Returns the genetic diversity of two Genotypes.
      Parameters:
      a - the first genotype
      b - the second genotype
      Returns:
      the diversity of two genotypes