Class CrossoverDoubleElementwise

    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract Pair<java.lang.Double> crossover​(double x, double y)
      Performs a crossover with two double values.
      protected void crossover​(java.util.List<java.lang.Double> p1, java.util.List<java.lang.Double> p2, java.util.List<java.lang.Double> o1, java.util.List<java.lang.Double> o2)
      Performs a crossover of two parent Genotypes that consist of double vectors.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CrossoverDoubleElementwise

        public CrossoverDoubleElementwise​(NormalizeDouble normalize,
                                          org.opt4j.core.common.random.Rand random)
        Constructs a new CrossoverDoubleElementwise.
        Parameters:
        normalize - the normalize operator
        random - the random number generator
    • Method Detail

      • crossover

        protected void crossover​(java.util.List<java.lang.Double> p1,
                                 java.util.List<java.lang.Double> p2,
                                 java.util.List<java.lang.Double> o1,
                                 java.util.List<java.lang.Double> o2)
        Description copied from class: CrossoverDouble
        Performs a crossover of two parent Genotypes that consist of double vectors.
        Specified by:
        crossover in class CrossoverDouble
        Parameters:
        p1 - the first parent
        p2 - the second parent
        o1 - the first offspring
        o2 - the second offspring
      • crossover

        public abstract Pair<java.lang.Double> crossover​(double x,
                                                         double y)
        Performs a crossover with two double values.
        Parameters:
        x - the first value
        y - the second value
        Returns:
        the resulting values