public class DiversityDoubleAbsolute extends Object implements DiversityDouble
DiversityDoubleAbsolute calculates the Diversity as the
mean absolute difference of each entry in the double vector.| Constructor and Description |
|---|
DiversityDoubleAbsolute() |
| Modifier and Type | Method and Description |
|---|---|
double |
diversity(DoubleGenotype a,
DoubleGenotype b)
Returns the genetic diversity of two
Genotypes. |
public double diversity(DoubleGenotype a, DoubleGenotype b)
DiversityGenotypes.diversity in interface Diversity<DoubleGenotype>a - the first genotypeb - the second genotype