|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.epochx.op.mutation.SubtreeMutation<TYPE>
public class SubtreeMutation<TYPE>
This class performs a subtree mutation on a CandidateProgram.
A mutation point is randomly selected anywhere in the program tree. Then the node at that point is replaced with a newly generated program tree, which is created using a grow strategy.
| Constructor Summary | |
|---|---|
SubtreeMutation(GPModel<TYPE> model)
Simple constructor for subtree mutation using a default maximum depth of 4 for new subtrees. |
|
SubtreeMutation(GPModel<TYPE> model,
int maxSubtreeDepth)
Subtree mutation constructor with control for the maximum depth of new subtrees. |
|
| Method Summary | |
|---|---|
CandidateProgram<TYPE> |
mutate(CandidateProgram<TYPE> program)
Perform subtree mutation on the given CandidateProgram. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SubtreeMutation(GPModel<TYPE> model)
model - The controlling model which provides any configuration
parameters for the run.
public SubtreeMutation(GPModel<TYPE> model,
int maxSubtreeDepth)
model - The controlling model which provides any configuration
parameters for the run.maxSubtreeDepth - The maximum depth of the inserted subtree.| Method Detail |
|---|
public CandidateProgram<TYPE> mutate(CandidateProgram<TYPE> program)
mutate in interface Mutation<TYPE>program - The CandidateProgram selected to undergo this mutation
operation.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||