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
-
Method Summary
-
Constructor Details
-
DiversityIntegerEuclidean
public DiversityIntegerEuclidean()
-
-
Method Details
-
diversity
Description copied from interface:Diversity
Returns the genetic diversity of twoGenotype
s.- Specified by:
diversity
in interfaceDiversity<IntegerGenotype>
- Parameters:
a
- the first genotypeb
- the second genotype- Returns:
- the diversity of two genotypes
-