|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.epochx.op.mutation.PointMutation<TYPE>
public class PointMutation<TYPE>
This class performs a simple point mutation on a CandidateProgram.
Each node in the program tree is considered for mutation, with the probability of that node being mutated given as an argument to the PointMutation constructor. If the node does undergo mutation then a replacement node is selected from the full syntax (function and terminal sets), at random.
| Constructor Summary | |
|---|---|
PointMutation(GPModel<TYPE> model)
Construct a point mutation with a default point probability of 0.01. |
|
PointMutation(GPModel<TYPE> model,
double pointProbability)
Construct a point mutation with user specified point probability. |
|
| Method Summary | |
|---|---|
CandidateProgram<TYPE> |
mutate(CandidateProgram<TYPE> program)
Perform point 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 PointMutation(GPModel<TYPE> model)
model - The current controlling model. Parameters such as full
syntax will be obtained from this.
public PointMutation(GPModel<TYPE> model,
double pointProbability)
model - The current controlling model. Parameters such as full
syntax will be obtained from this.pointProbability - The probability each node in a selected program
has of undergoing a mutation. 1.0 would result in all nodes being
changed, and 0.0 would mean no nodes were changed. A typical value
would be 0.01.| 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 | |||||||||