|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgpalta.core.SingleTreePopulation
public class SingleTreePopulation
Implements a simple population formed by a fixed number of trees, each interpreded separatedly
Constructor Summary | |
---|---|
SingleTreePopulation()
|
Method Summary | |
---|---|
void |
doSelection(IndSelector sel)
Perform Individual selection |
void |
eval(MultiThreadedEvaluator evaluator,
Fitness f,
TempVectorFactory tempVectorFactory,
ProblemData problemData,
int[] wSamples)
Evaluate every Individual and calculate their fitness |
void |
evolve(TreeOperator treeOp,
TempVectorFactory tempVectorFactory,
ProblemData problemData)
Apply genetic operators |
Individual |
get(int which)
Get a certain individual |
Output |
getProcessedOutput(Individual ind,
Fitness f,
TempVectorFactory tempVectorFactory,
ProblemData problemData)
|
Output |
getRawOutput(Individual ind,
TempVectorFactory tempVectorFactory,
ProblemData problemData)
Get the output directly from the Individual, without further processing |
void |
init(Config config,
ProblemData problemData,
TreeBuilder builder,
TreeOperator treeOp)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SingleTreePopulation()
Method Detail |
---|
public void eval(MultiThreadedEvaluator evaluator, Fitness f, TempVectorFactory tempVectorFactory, ProblemData problemData, int[] wSamples)
Population
eval
in interface Population
public Output getRawOutput(Individual ind, TempVectorFactory tempVectorFactory, ProblemData problemData)
Population
getRawOutput
in interface Population
public Output getProcessedOutput(Individual ind, Fitness f, TempVectorFactory tempVectorFactory, ProblemData problemData)
getProcessedOutput
in interface Population
public Individual get(int which)
Population
get
in interface Population
which
- The individual to getpublic void doSelection(IndSelector sel)
Population
doSelection
in interface Population
public void evolve(TreeOperator treeOp, TempVectorFactory tempVectorFactory, ProblemData problemData)
Population
evolve
in interface Population
public void init(Config config, ProblemData problemData, TreeBuilder builder, TreeOperator treeOp)
init
in interface Population
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |