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 Genotypes.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DiversityDoubleEuclidean
public DiversityDoubleEuclidean()
-
-
Method Details
-
diversity
Description copied from interface:DiversityReturns the genetic diversity of twoGenotypes.- Specified by:
diversityin interfaceDiversity<DoubleGenotype>- Parameters:
a- the first genotypeb- the second genotype- Returns:
- the diversity of two genotypes
-