|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jenes.stage.AbstractStage<T> jenes.stage.operator.Operator<T> jenes.stage.operator.Mutator<T> jenes.stage.operator.common.SimpleMutator<T>
T
- The class of chromosomes to work with.public class SimpleMutator<T extends Chromosome>
A simple mutation operator. It performes the simplest mutation algorithm according to a specified probability. A chromosome position is randomly chosen and its gene randomized.
Individual
,
Population
Nested Class Summary |
---|
Nested classes/interfaces inherited from class jenes.stage.operator.Mutator |
---|
Mutator.Statistics |
Field Summary |
---|
Fields inherited from class jenes.stage.operator.Mutator |
---|
probability |
Fields inherited from class jenes.stage.operator.Operator |
---|
random, statistics |
Fields inherited from class jenes.stage.AbstractStage |
---|
biggerIsBetter, ga |
Constructor Summary | |
---|---|
SimpleMutator(double probability)
Constructs a new simple mutator with the specified probability |
Method Summary | |
---|---|
protected void |
mutate(Individual<T> ind)
Mutates a single individual. |
Methods inherited from class jenes.stage.operator.Mutator |
---|
getProbability, process, setProbability |
Methods inherited from class jenes.stage.operator.Operator |
---|
getStatistics, updateStatistics |
Methods inherited from class jenes.stage.AbstractStage |
---|
dispose, init, isBiggerBetter, setBiggerIsBetter, setBiggerIsBetter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleMutator(double probability)
probability
- the mutation probabilityMethod Detail |
---|
protected void mutate(Individual<T> ind)
Mutator
mutate
in class Mutator<T extends Chromosome>
ind
- the individual to mutate
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |