Package net.bmahe.genetics4j.gp.mutation
Class NodeReplacementMutator
java.lang.Object
net.bmahe.genetics4j.gp.mutation.NodeReplacementMutator
- All Implemented Interfaces:
Mutator
-
Field Summary
Modifier and TypeFieldDescriptionprivate final AbstractEAConfiguration
private final double
private final ProgramHelper
private final RandomGenerator
-
Constructor Summary
ConstructorDescriptionNodeReplacementMutator
(ProgramHelper _programHelper, RandomGenerator _randomGenerator, AbstractEAConfiguration _eaConfiguration, double populationMutationProbability) -
Method Summary
Modifier and TypeMethodDescriptionduplicateAndReplaceNode
(Program program, TreeNode<Operation<?>> root, int cutPoint, int nodeIndex) duplicateNode
(Program program, TreeNode<Operation<?>> root, int cutPoint, int nodeIndex) protected List
<OperationFactory> findReplacementCandidates
(Program program, TreeNode<Operation<?>> root)
-
Field Details
-
programHelper
-
randomGenerator
-
eaConfiguration
-
populationMutationProbability
private final double populationMutationProbability
-
-
Constructor Details
-
NodeReplacementMutator
public NodeReplacementMutator(ProgramHelper _programHelper, RandomGenerator _randomGenerator, AbstractEAConfiguration _eaConfiguration, double populationMutationProbability)
-
-
Method Details