Class NeighborDouble

  • All Implemented Interfaces:
    org.opt4j.core.optimizer.Operator<org.opt4j.core.genotype.DoubleGenotype>, Neighbor<org.opt4j.core.genotype.DoubleGenotype>

    public class NeighborDouble
    extends java.lang.Object
    implements Neighbor<org.opt4j.core.genotype.DoubleGenotype>
    The NeighborDouble operator for the DoubleGenotype.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void neighbor​(org.opt4j.core.genotype.DoubleGenotype genotype)
      Moves the Genotype to a neighbor.
      • Methods inherited from class java.lang.Object

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

      • random

        protected final java.util.Random random
    • Constructor Detail

      • NeighborDouble

        @Inject
        public NeighborDouble​(NormalizeDouble normalize,
                              org.opt4j.core.common.random.Rand random)
        Constructs a NeighborDouble.
        Parameters:
        normalize - the operator for normalization
        random - the random number generator
    • Method Detail

      • neighbor

        public void neighbor​(org.opt4j.core.genotype.DoubleGenotype genotype)
        Description copied from interface: Neighbor
        Moves the Genotype to a neighbor.
        Specified by:
        neighbor in interface Neighbor<org.opt4j.core.genotype.DoubleGenotype>
        Parameters:
        genotype - the Genotype to be changed