|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgpalta.nodes.Node
gpalta.nodes.LogicConstant
public class LogicConstant
Constructor Summary | |
---|---|
LogicConstant()
|
|
LogicConstant(double constant)
|
Method Summary | |
---|---|
double |
eval(DataHolder data)
Evaluate the Node for a sinlge sample. |
void |
evalVect(double[] outVect,
double[][] kidOutVect,
DataHolder data)
Evaluate the Node for all samples (vectorial evaluation). |
void |
init(Config config,
DataHolder data)
Initialize the Node. |
java.lang.String |
name()
Get the Node's short name (such as "plus", "minus", "x1", etc) |
int |
nKids()
Read the number of kids of the Node |
Methods inherited from class gpalta.nodes.Node |
---|
clone, deepClone, evalVect, getCurrentDepth, getKid, getMaxDepthFromHere, getNSubNodes, getParent, getWhichKidOfParent, newKids, parse, setCurrentDepth, setKid, setMaxDepthFromHere, setNSubNodes, setParent, setTypeOfKids, setWhichKidOfParent, toString, typeOfKids |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LogicConstant()
public LogicConstant(double constant)
Method Detail |
---|
public double eval(DataHolder data)
Node
eval
in class Node
public void evalVect(double[] outVect, double[][] kidOutVect, DataHolder data)
Node
evalVect
in class Node
outVect
- The array where the outout must be storedkidOutVect
- A matrix holding the outputs of this Node's kids. Each row holds the output
for each kiddata
- The problem's datapublic int nKids()
Node
nKids
in interface NodeParent
nKids
in class Node
public java.lang.String name()
Node
name
in class Node
public void init(Config config, DataHolder data)
Node
init
in class Node
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |