Package org.opt4j.operators.diversity
Class DiversityDoubleEuclidean
java.lang.Object
org.opt4j.operators.diversity.DiversityDoubleEuclidean
- All Implemented Interfaces:
Operator<DoubleGenotype>
,Diversity<DoubleGenotype>
,DiversityDouble
The
DiversityDoubleEuclidean
calculates the Diversity
by the
Euclidean distance between the two Genotype
s.-
Constructor Summary
-
Method Summary
-
Constructor Details
-
DiversityDoubleEuclidean
public DiversityDoubleEuclidean()
-
-
Method Details
-
diversity
Description copied from interface:Diversity
Returns the genetic diversity of twoGenotype
s.- Specified by:
diversity
in interfaceDiversity<DoubleGenotype>
- Parameters:
a
- the first genotypeb
- the second genotype- Returns:
- the diversity of two genotypes
-