Class DiversityGenericImplementation

    • Method Detail

      • diversity

        public double diversity​(org.opt4j.core.Genotype a,
                                org.opt4j.core.Genotype b)
        Description copied from interface: Diversity
        Returns the genetic diversity of two Genotypes.
        Specified by:
        diversity in interface Diversity<org.opt4j.core.Genotype>
        Parameters:
        a - the first genotype
        b - the second genotype
        Returns:
        the diversity of two genotypes
      • diversityComposite

        protected double diversityComposite​(org.opt4j.core.genotype.CompositeGenotype<?,​?> a,
                                            org.opt4j.core.genotype.CompositeGenotype<?,​?> b)