public class DiversityIntegerEuclidean extends java.lang.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(org.opt4j.core.genotype.IntegerGenotype a,
org.opt4j.core.genotype.IntegerGenotype b)
Returns the genetic diversity of two
Genotype s. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getOperatorType
public double diversity(org.opt4j.core.genotype.IntegerGenotype a, org.opt4j.core.genotype.IntegerGenotype b)
Diversity
Genotype
s.