Package org.opt4j.operators.diversity
Class DiversityDoubleEuclidean
- java.lang.Object
-
- org.opt4j.operators.diversity.DiversityDoubleEuclidean
-
- All Implemented Interfaces:
org.opt4j.core.optimizer.Operator<org.opt4j.core.genotype.DoubleGenotype>
,Diversity<org.opt4j.core.genotype.DoubleGenotype>
,DiversityDouble
public class DiversityDoubleEuclidean extends java.lang.Object implements DiversityDouble
TheDiversityDoubleEuclidean
calculates theDiversity
by the Euclidean distance between the twoGenotype
s.
-
-
Constructor Summary
Constructors Constructor Description DiversityDoubleEuclidean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
diversity(org.opt4j.core.genotype.DoubleGenotype a, org.opt4j.core.genotype.DoubleGenotype b)
Returns the genetic diversity of twoGenotype
s.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opt4j.operators.diversity.Diversity
getOperatorType
-
-
-
-
Method Detail
-
diversity
public double diversity(org.opt4j.core.genotype.DoubleGenotype a, org.opt4j.core.genotype.DoubleGenotype b)
Description copied from interface:Diversity
Returns the genetic diversity of twoGenotype
s.
-
-