Package org.opt4j.operator.diversity
package org.opt4j.operator.diversity
Provides the classes for the distance operator for genotypes.
- See Also:
-
ClassDescriptionType of
Diversity
operator for theBooleanGenotype
.Type ofDiversity
operator for theDoubleGenotype
.TheDiversity
determines the genetic diversity of twoIndividual
s.TheDiversityBooleanFraction
calculates theDiversity
between twoBooleanGenotype
s by calculating the fraction of different vector entries.TheDiversityDoubleAbsolute
calculates theDiversity
as the mean absolute difference of each entry in the double vector.TheDiversityDoubleEuclidean
calculates theDiversity
by the Euclidean distance between the twoGenotype
s.TheDiversityGenericImplementation
is a standard implementation of theDiversity
interface.TheDiversityIntegerEuclidean
is an implementation of theDiversityInteger
that calculates the diversity of twoIntegerGenotype
objects by normalizing the values to[0,1]
and calculating the Euclidean distance.TheDiversityModule
is used for modules for theDiversity
operator.