public class NeighborIntegerRandom extends Object implements NeighborInteger
NeighborIntegerRandom selects on element of an
IntegerGenotype and changes it. The neighbor is created randomly
between the lower and upper bounds.| Constructor and Description |
|---|
NeighborIntegerRandom(Rand random)
Constructs a
NeighborIntegerRandom. |
| Modifier and Type | Method and Description |
|---|---|
void |
neighbor(IntegerGenotype genotype)
Moves the
Genotype to a neighbor. |
@Inject public NeighborIntegerRandom(Rand random)
NeighborIntegerRandom.random - the random number generatorpublic void neighbor(IntegerGenotype genotype)
NeighborGenotype to a neighbor.neighbor in interface Neighbor<IntegerGenotype>genotype - the Genotype to be changed