Class RepeatedMutator
java.lang.Object
net.bmahe.genetics4j.core.mutation.RepeatedMutator
- All Implemented Interfaces:
Mutator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Mutatorprivate final RandomGeneratorprivate final RepeatedMutation -
Constructor Summary
ConstructorsConstructorDescriptionRepeatedMutator(RandomGenerator _randomGenerator, RepeatedMutation _repeatedMutation, Mutator _childMutator) -
Method Summary
Modifier and TypeMethodDescriptionApplies mutation to the given genotype and returns a new mutated genotype.private int
-
Field Details
-
randomGenerator
-
repeatedMutation
-
childMutator
-
-
Constructor Details
-
RepeatedMutator
public RepeatedMutator(RandomGenerator _randomGenerator, RepeatedMutation _repeatedMutation, Mutator _childMutator)
-
-
Method Details
-
mutate
Description copied from interface:MutatorApplies mutation to the given genotype and returns a new mutated genotype.The original genotype should not be modified; instead, a new genotype with the mutations applied should be returned. The specific mutation behavior depends on the implementation and the mutation policy being used.
Mutation may affect:
- Individual alleles within chromosomes (bit flips, value changes)
- Chromosome structure (for variable-length representations)
- Multiple chromosomes simultaneously
-
numberOfRepetitions
private int numberOfRepetitions()
-