public class DiversityBooleanFraction extends Object implements DiversityBoolean
DiversityBooleanFraction calculates the Diversity between
two BooleanGenotypes by calculating the fraction of different vector
entries.| Constructor and Description |
|---|
DiversityBooleanFraction() |
| Modifier and Type | Method and Description |
|---|---|
double |
diversity(BooleanGenotype a,
BooleanGenotype b)
Returns the genetic diversity of two
Genotypes. |
public double diversity(BooleanGenotype a, BooleanGenotype b)
DiversityGenotypes.diversity in interface Diversity<BooleanGenotype>a - the first genotypeb - the second genotype