public class DiversityDoubleEuclidean extends Object implements DiversityDouble
DiversityDoubleEuclidean calculates the Diversity by the
Euclidean distance between the two Genotypes.| Constructor and Description |
|---|
DiversityDoubleEuclidean() |
| 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