public class DiversityIntegerEuclidean extends Object implements DiversityInteger
DiversityIntegerEuclidean is an implementation of the
DiversityInteger that calculates the diversity of two
IntegerGenotype objects by normalizing the values to [0,1]
and calculating the Euclidean distance.| Constructor and Description |
|---|
DiversityIntegerEuclidean() |
| Modifier and Type | Method and Description |
|---|---|
double |
diversity(IntegerGenotype a,
IntegerGenotype b)
Returns the genetic diversity of two
Genotypes. |
public double diversity(IntegerGenotype a, IntegerGenotype b)
DiversityGenotypes.diversity in interface Diversity<IntegerGenotype>a - the first genotypeb - the second genotype