|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgpalta.nodes.Node
gpalta.nodes.RealConstant
public class RealConstant
Constructor Summary | |
---|---|
RealConstant()
|
|
RealConstant(double constant)
|
Method Summary | |
---|---|
double |
eval(ProblemData problemData)
Evaluate the Node for a single sample. |
void |
evalVectInternal(double[] outVect,
double[][] kidsOutput,
ProblemData problemData)
Internal method that evaluates the Node given its kids' outputs. |
void |
init(Config config,
ProblemData problemData)
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, getType, getWhichKidOfParent, newKids, parse, setCurrentDepth, setKid, setMaxDepthFromHere, setNSubNodes, setParent, setType, setTypeOfKids, setWhichKidOfParent, toString, typeOfKids |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RealConstant()
public RealConstant(double constant)
Method Detail |
---|
public double eval(ProblemData problemData)
Node
eval
in class Node
public void evalVectInternal(double[] outVect, double[][] kidsOutput, ProblemData problemData)
Node
evalVectInternal
in class Node
outVect
- The array where the outout must be storedkidsOutput
- Each array holds all the outputs for a kidproblemData
- 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, ProblemData problemData)
Node
init
in class Node
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |