Package org.opt4j.operator.diversity
Class DiversityBooleanFraction
java.lang.Object
org.opt4j.operator.diversity.DiversityBooleanFraction
- All Implemented Interfaces:
Operator<BooleanGenotype>,Diversity<BooleanGenotype>,DiversityBoolean
The
DiversityBooleanFraction calculates the Diversity between
two BooleanGenotypes by calculating the fraction of different vector
entries.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DiversityBooleanFraction
public DiversityBooleanFraction()
-
-
Method Details
-
diversity
Description copied from interface:DiversityReturns the genetic diversity of twoGenotypes.- Specified by:
diversityin interfaceDiversity<BooleanGenotype>- Parameters:
a- the first genotypeb- the second genotype- Returns:
- the diversity of two genotypes
-