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
Constructors -
Method Summary
-
Constructor Details
-
DiversityDoubleAbsolute
public DiversityDoubleAbsolute()
-
-
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
-