|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.epochx.op.initialisation.GrowInitialiser<TYPE>
public class GrowInitialiser<TYPE>
Initialisation implementation which randomly grows program trees down to a maximum depth.
| Constructor Summary | |
|---|---|
GrowInitialiser(GPModel<TYPE> model)
Constructor for the grow initialiser. |
|
| Method Summary | |
|---|---|
Node<TYPE> |
buildGrowNodeTree(int maxDepth)
Build a grown node tree with a maximum depth as given. |
java.util.List<CandidateProgram<TYPE>> |
getInitialPopulation()
Generate a population of new CandidatePrograms constructed from the function and terminal sets defined by the model. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GrowInitialiser(GPModel<TYPE> model)
model - The current controlling model. Run parameters such as the
population size will be obtained from this.| Method Detail |
|---|
public java.util.List<CandidateProgram<TYPE>> getInitialPopulation()
getInitialPopulation in interface Initialiser<TYPE>public Node<TYPE> buildGrowNodeTree(int maxDepth)
maxDepth - The maximum depth of the node tree to be grown, where
the depth is the number of nodes from the root.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||