unbbayes.evaluation
Class ExactEvaluation

java.lang.Object
  extended by unbbayes.evaluation.AEvaluation
      extended by unbbayes.evaluation.ExactEvaluation
All Implemented Interfaces:
IEvaluation, ILongTaskProgressObservable

public class ExactEvaluation
extends AEvaluation


Field Summary
protected  TreeVariable targetNode
           
 
Fields inherited from class unbbayes.evaluation.AEvaluation
currentProgress, currentProgressStatus, evidenceEvaluationList, evidenceNodeList, evidenceSetCM, evidenceSetPCC, evidenceStatesProduct, factors, lastProgressUpdated, maxProgress, net, statesProduct, targetNodeList, targetStatesProduct, UNSET_VALUE
 
Constructor Summary
ExactEvaluation()
           
 
Method Summary
protected  float[][] computeCM(List<String> targetNodeNameList, List<String> evidenceNodeNameList)
           
 float getError()
          As this is an exact evaluation there is no error.
protected  float[] getEvidencesJointProbability()
           
protected  float getEvidencesJointProbability(int[] states)
           
protected  float[] getExatProbTargetGivenEvidence()
           
protected  float getProbTargetGivenEvidence(int[] states)
           
protected  float[] getTargetPriorProbability()
           
protected  float getTargetPriorProbability(int state)
           
static void main(String[] args)
           
 
Methods inherited from class unbbayes.evaluation.AEvaluation
computeFactors, evaluate, evaluate, evaluate, getBestIndividualCostRate, getBestIndividualPCC, getBestMarginalImprovement, getCurrentProgress, getCurrentProgressStatus, getEvidenceEvaluationList, getEvidenceLinearCoord, getEvidenceSetCM, getEvidenceSetPCC, getLinearCoord, getMaxProgress, getMultidimensionalCoord, getPercentageDone, init, loadNetwork, notityObservers, registerObserver, removeObserver, show, updateProgress, updateProgress
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

targetNode

protected TreeVariable targetNode
Constructor Detail

ExactEvaluation

public ExactEvaluation()
Method Detail

getError

public float getError()
As this is an exact evaluation there is no error.

Specified by:
getError in interface IEvaluation
Specified by:
getError in class AEvaluation
Returns:
There is no error, so it always returns zero.

computeCM

protected float[][] computeCM(List<String> targetNodeNameList,
                              List<String> evidenceNodeNameList)
                       throws EvaluationException
Specified by:
computeCM in class AEvaluation
Throws:
EvaluationException

getExatProbTargetGivenEvidence

protected float[] getExatProbTargetGivenEvidence()
                                          throws EvaluationException
Throws:
EvaluationException

getProbTargetGivenEvidence

protected float getProbTargetGivenEvidence(int[] states)
                                    throws EvaluationException
Throws:
EvaluationException

getEvidencesJointProbability

protected float getEvidencesJointProbability(int[] states)
                                      throws EvaluationException
Throws:
EvaluationException

getEvidencesJointProbability

protected float[] getEvidencesJointProbability()
                                        throws EvaluationException
Throws:
EvaluationException

getTargetPriorProbability

protected float getTargetPriorProbability(int state)
                                   throws EvaluationException
Throws:
EvaluationException

getTargetPriorProbability

protected float[] getTargetPriorProbability()
                                     throws EvaluationException
Throws:
EvaluationException

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception


Copyright © 2001-2010 University of Brasilia - UnB. All Rights Reserved.