Package org.opt4j.operator.diversity
package org.opt4j.operator.diversity
Provides the classes for the distance operator for genotypes.
- See Also:
-
ClassDescriptionType of
Diversityoperator for theBooleanGenotype.Type ofDiversityoperator for theDoubleGenotype.TheDiversitydetermines the genetic diversity of twoIndividuals.TheDiversityBooleanFractioncalculates theDiversitybetween twoBooleanGenotypes by calculating the fraction of different vector entries.TheDiversityDoubleAbsolutecalculates theDiversityas the mean absolute difference of each entry in the double vector.TheDiversityDoubleEuclideancalculates theDiversityby the Euclidean distance between the twoGenotypes.TheDiversityGenericImplementationis a standard implementation of theDiversityinterface.TheDiversityIntegerEuclideanis an implementation of theDiversityIntegerthat calculates the diversity of twoIntegerGenotypeobjects by normalizing the values to[0,1]and calculating the Euclidean distance.TheDiversityModuleis used for modules for theDiversityoperator.