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