Class MutateIntegerRandom

java.lang.Object
org.opt4j.operator.mutate.MutateIntegerRandom
All Implemented Interfaces:
Operator<IntegerGenotype>, Mutate<IntegerGenotype>, MutateInteger

public class MutateIntegerRandom extends Object implements MutateInteger
The MutateIntegerRandom mutates each element of the IntegerGenotype with the mutation rate. Here, a new value is created randomly between the lower and upper bounds.
  • Field Details

    • random

      protected final Random random
  • Constructor Details

    • MutateIntegerRandom

      @Inject public MutateIntegerRandom(Rand random)
      Constructs a MutateIntegerRandom.
      Parameters:
      random - the random number generator
  • Method Details