Class GenericMutatorImpl
java.lang.Object
net.bmahe.genetics4j.core.mutation.GenericMutatorImpl
- All Implemented Interfaces:
- Mutator
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final ChromosomeMutationHandler<? extends Chromosome>[]private final MutationPolicyprivate final doubleprivate final RandomGenerator
- 
Constructor SummaryConstructorsConstructorDescriptionGenericMutatorImpl(RandomGenerator _randomGenerator, ChromosomeMutationHandler<? extends Chromosome>[] _chromosomeMutationHandlers, MutationPolicy _mutationPolicy, double _populationMutationProbability) 
- 
Method Summary
- 
Field Details- 
randomGenerator
- 
chromosomeMutationHandlers
- 
mutationPolicy
- 
populationMutationProbabilityprivate final double populationMutationProbability
 
- 
- 
Constructor Details- 
GenericMutatorImplpublic GenericMutatorImpl(RandomGenerator _randomGenerator, ChromosomeMutationHandler<? extends Chromosome>[] _chromosomeMutationHandlers, MutationPolicy _mutationPolicy, double _populationMutationProbability) 
 
- 
- 
Method Details- 
mutateDescription 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
 
 
-