Class CrossoverDouble

    • Constructor Detail

      • CrossoverDouble

        @Inject
        public CrossoverDouble​(NormalizeDouble normalize,
                               Rand random)
        Constructs a new crossover for the DoubleGenotype.
        Parameters:
        normalize - a normalize operator
        random - the random number generator
    • Method Detail

      • crossover

        protected abstract void crossover​(List<Double> p1,
                                          List<Double> p2,
                                          List<Double> o1,
                                          List<Double> o2)
        Performs a crossover of two parent Genotypes that consist of double vectors.
        Parameters:
        p1 - the first parent
        p2 - the second parent
        o1 - the first offspring
        o2 - the second offspring