|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectec.gp.sasc.SASCNodeSelector
public class SASCNodeSelector
Esta classe faz a seleção dos nós para o crossover
Field Summary | |
---|---|
int |
nodes
The number of nodes in the tree, -1 if unknown. |
float |
nonterminalProbability
The probability a nonterminal must be chosen. |
int |
nonterminals
The number of nonterminals in the tree, -1 if unknown. |
static String |
P_NODESELECTOR
|
static String |
P_NONTERMINAL_PROBABILITY
|
static String |
P_ROOT_PROBABILITY
|
static String |
P_TERMINAL_PROBABILITY
|
float |
rootProbability
The probability the root must be chosen |
float |
terminalProbability
The probability a terminal must be chosen |
int |
terminals
The number of terminals in the tree, -1 if unknown. |
Constructor Summary | |
---|---|
SASCNodeSelector()
Construtor da classe |
Method Summary | |
---|---|
Object |
clone()
Método para clonagem |
Parameter |
defaultBase()
Retorna a base que pode ser utilizada diretamente para parametrização do node selector |
GPNode |
pickNode(EvolutionState s,
int subpopulation,
int thread,
GPIndividual ind,
GPTree tree)
Método default para seleção do nó. |
GPNode |
pickNodeRandom(EvolutionState s,
int subpopulation,
int thread,
GPIndividual ind,
GPTree tree)
Método para a seleção aleatória do nó. |
GPNode |
pickNodeSSAC(EvolutionState s,
int subpopulation,
int thread,
GPIndividual ind,
GPTree tree,
SASCNode rootNodeSecondParent)
Faz a seleção segundo o método SSAC de Angeline |
GPNode |
pickNodeSSSCFirst(EvolutionState s,
int subpopulation,
int thread,
GPIndividual ind,
GPTree tree,
SASCNode rootNodeSecondParent)
Faz a seleção do nó para o primeiro reprodutor, segundo o método SSSC |
GPNode |
pickNodeSSSCSecond(EvolutionState s,
int subpopulation,
int thread,
GPIndividual ind,
GPTree tree,
SASCNode rootNodeSecondParent,
double beta)
Faz a seleção para o segundo reprodutor, segundo o método SSSC |
void |
reset()
Método para reinicialização do node selector |
void |
setup(EvolutionState state,
Parameter base)
Método para a configuração do objeto |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String P_NODESELECTOR
public static final String P_TERMINAL_PROBABILITY
public static final String P_NONTERMINAL_PROBABILITY
public static final String P_ROOT_PROBABILITY
public float rootProbability
public float terminalProbability
public float nonterminalProbability
public int nonterminals
public int terminals
public int nodes
Constructor Detail |
---|
public SASCNodeSelector()
Method Detail |
---|
public Parameter defaultBase()
defaultBase
in interface Prototype
public Object clone()
clone
in interface Prototype
clone
in class Object
public void setup(EvolutionState state, Parameter base)
setup
in interface Prototype
setup
in interface Setup
state
- Objeto EvolutionState que guarda as informações sobre a evolução do processobase
- Base de parametrização auxiliar. Se esse parâmetro for enviado com valor "database" por exemplo, qualquer parâmetro desta classe
poderá ser obtida no arquivo de parâmetros através da keyword "gp.database.public void reset()
reset
in interface GPNodeSelector
public GPNode pickNode(EvolutionState s, int subpopulation, int thread, GPIndividual ind, GPTree tree)
pickNode
in interface GPNodeSelector
public GPNode pickNodeRandom(EvolutionState s, int subpopulation, int thread, GPIndividual ind, GPTree tree)
s
- subpopulation
- thread
- ind
- tree
-
public GPNode pickNodeSSSCFirst(EvolutionState s, int subpopulation, int thread, GPIndividual ind, GPTree tree, SASCNode rootNodeSecondParent)
s
- subpopulation
- thread
- ind
- tree
- rootNodeSecondParent
-
public GPNode pickNodeSSSCSecond(EvolutionState s, int subpopulation, int thread, GPIndividual ind, GPTree tree, SASCNode rootNodeSecondParent, double beta)
s
- subpopulation
- thread
- ind
- tree
- rootNodeSecondParent
- beta
-
public GPNode pickNodeSSAC(EvolutionState s, int subpopulation, int thread, GPIndividual ind, GPTree tree, SASCNode rootNodeSecondParent)
s
- subpopulation
- thread
- ind
- tree
- rootNodeSecondParent
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |