Package org.opt4j.operators.diversity
Class DiversityIntegerEuclidean
java.lang.Object
org.opt4j.operators.diversity.DiversityIntegerEuclidean
- All Implemented Interfaces:
Operator<IntegerGenotype>,Diversity<IntegerGenotype>,DiversityInteger
The
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 Summary
Constructors -
Method Summary
-
Constructor Details
-
DiversityIntegerEuclidean
public DiversityIntegerEuclidean()
-
-
Method Details
-
diversity
Description copied from interface:DiversityReturns the genetic diversity of twoGenotypes.- Specified by:
diversityin interfaceDiversity<IntegerGenotype>- Parameters:
a- the first genotypeb- the second genotype- Returns:
- the diversity of two genotypes
-