Package org.evoludo.simulator.modules
Class Centipede.CentiMutations
Object
Mutation
Mutation.Discrete
CentiMutations
- Enclosing class:
Centipede
The CentiMutations class provides a mutation operator for the centipede game.
-
Nested Class Summary
Nested classes/interfaces inherited from class Mutation.Discrete
Mutation.Discrete.TypeNested classes/interfaces inherited from class Mutation
Mutation.Continuous, Mutation.Discrete -
Field Summary
Fields inherited from class Mutation.Discrete
cloFields inherited from class Mutation
module, probability, range, rng, temperature, type -
Constructor Summary
ConstructorsConstructorDescriptionCentiMutations(Module module) Constructs a new CentiMutations instance to deal with mutations in the Centipede game. -
Method Summary
Modifier and TypeMethodDescriptionintmutate(int trait) Mutate traittraitin IBS models according to the type of mutation.Methods inherited from class Mutation.Discrete
doMutate, mutate
-
Constructor Details
-
CentiMutations
Constructs a new CentiMutations instance to deal with mutations in the Centipede game.- Parameters:
module- the module that defines the Centipede game
-
-
Method Details
-
mutate
public int mutate(int trait) Description copied from class:MutationMutate traittraitin IBS models according to the type of mutation.- Overrides:
mutatein classMutation.Discrete- Parameters:
trait- the trait to mutate- Returns:
- the mutated trait
- See Also:
-