edu.duke.cs.banjo.learner.components
Class EvaluatorBDe.CompactObservationsSelector

java.lang.Object
  extended byedu.duke.cs.banjo.learner.components.Evaluator.ObservationsSelector
      extended byedu.duke.cs.banjo.learner.components.EvaluatorBDe.CompactObservationsSelector
Enclosing class:
EvaluatorBDe

protected class EvaluatorBDe.CompactObservationsSelector
extends Evaluator.ObservationsSelector


Field Summary
protected  ObservationsAsArray observations
           
 
Constructor Summary
protected EvaluatorBDe.CompactObservationsSelector(ObservationsI _observations)
           
 
Method Summary
protected  double computeNodeScore(int nodeID, int[][] parentIDlist)
           
protected  int getMaxValueCount()
           
protected  int getMaxValueCount(int nodeID)
           
protected  int getObservationCount()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

observations

protected ObservationsAsArray observations
Constructor Detail

EvaluatorBDe.CompactObservationsSelector

protected EvaluatorBDe.CompactObservationsSelector(ObservationsI _observations)
                                            throws java.lang.Exception
Method Detail

getObservationCount

protected int getObservationCount()
                           throws java.lang.Exception
Specified by:
getObservationCount in class Evaluator.ObservationsSelector
Throws:
java.lang.Exception

getMaxValueCount

protected int getMaxValueCount()
                        throws java.lang.Exception
Specified by:
getMaxValueCount in class Evaluator.ObservationsSelector
Throws:
java.lang.Exception

getMaxValueCount

protected int getMaxValueCount(int nodeID)
                        throws java.lang.Exception
Specified by:
getMaxValueCount in class Evaluator.ObservationsSelector
Throws:
java.lang.Exception

computeNodeScore

protected double computeNodeScore(int nodeID,
                                  int[][] parentIDlist)
                           throws java.lang.Exception
Specified by:
computeNodeScore in class Evaluator.ObservationsSelector
Returns:
Returns the computed score for the node with id=nodeID.
Throws:
java.lang.Exception