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.Type
Nested classes/interfaces inherited from class Mutation
Mutation.Continuous, Mutation.Discrete
-
Field Summary
Fields inherited from class Mutation.Discrete
clo
Fields 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 TypeMethodDescriptionint
mutate
(int trait) Mutate traittrait
in 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:Mutation
Mutate traittrait
in IBS models according to the type of mutation.- Overrides:
mutate
in classMutation.Discrete
- Parameters:
trait
- the trait to mutate- Returns:
- the mutated trait
- See Also:
-