Package org.opt4j.operator.diversity
Class DiversityDoubleAbsolute
java.lang.Object
org.opt4j.operator.diversity.DiversityDoubleAbsolute
- All Implemented Interfaces:
Operator<DoubleGenotype>
,Diversity<DoubleGenotype>
,DiversityDouble
The
DiversityDoubleAbsolute
calculates the Diversity
as the
mean absolute difference of each entry in the double vector.-
Constructor Summary
-
Method Summary
-
Constructor Details
-
DiversityDoubleAbsolute
public DiversityDoubleAbsolute()
-
-
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
-