RBNLearning
Class GradientGraphConvCombNode

java.lang.Object
  extended by RBNLearning.GradientGraphNode
      extended by RBNLearning.GradientGraphProbFormNode
          extended by RBNLearning.GradientGraphConvCombNode
All Implemented Interfaces:
java.lang.Comparable<GradientGraphNode>

public class GradientGraphConvCombNode
extends GradientGraphProbFormNode

In a GradientGraphConvCombNode the children vector has exactly 3 elements, one for each of the three subformulas An element is set to null if the formula does not actually need to be contained in this vector.


Field Summary
 
Fields inherited from class RBNLearning.GradientGraphProbFormNode
dependsOnParam
 
Constructor Summary
GradientGraphConvCombNode(GradientGraph gg, ProbForm pf, java.util.Hashtable<java.lang.String,GradientGraphNode> allnodes, RelStruc A, Instantiation I, int inputcaseno, int observcaseno)
          pf must be a ground ProbForm !
 
Method Summary
 double evaluate()
          Evaluate this GradientGraphNode using current values of parameters and the current instantiation for unobserved atoms.
 void evaluateBounds()
           
 double evaluateGrad(int param)
           
 
Methods inherited from class RBNLearning.GradientGraphProbFormNode
constructGGPFN, dependsOn, lowerBound, name, resetBounds, upperBound
 
Methods inherited from class RBNLearning.GradientGraphNode
addToChildren, addToParents, ancestors, childrenSize, compareTo, equals, gradient, parents, reEvaluateUpstream, resetGradient, resetValue, value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GradientGraphConvCombNode

public GradientGraphConvCombNode(GradientGraph gg,
                                 ProbForm pf,
                                 java.util.Hashtable<java.lang.String,GradientGraphNode> allnodes,
                                 RelStruc A,
                                 Instantiation I,
                                 int inputcaseno,
                                 int observcaseno)
                          throws RBNCompatibilityException
pf must be a ground ProbForm !

Throws:
RBNCompatibilityException
Method Detail

evaluate

public double evaluate()
Description copied from class: GradientGraphNode
Evaluate this GradientGraphNode using current values of parameters and the current instantiation for unobserved atoms. Returns the value and sets the value field of the node. If the value is not null, then the this value is assumed to be the currently correct value, and is returned

Specified by:
evaluate in class GradientGraphNode

evaluateBounds

public void evaluateBounds()
Specified by:
evaluateBounds in class GradientGraphNode

evaluateGrad

public double evaluateGrad(int param)
Specified by:
evaluateGrad in class GradientGraphNode