unbbayes.evaluation
Class FastMCApproximateEvaluation

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

public class FastMCApproximateEvaluation
extends AEvaluation


Field Summary
protected  IMonteCarloSampling mc
           
protected  int[] positionEvidenceNodeList
           
protected  List<Node> positionNodeList
           
protected  int[] positionTargetNodeList
           
protected  byte[][] sampleMatrix
           
protected  int sampleSize
           
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
FastMCApproximateEvaluation(int sampleSize)
           
 
Method Summary
protected  float[][] computeCM(List<String> targetNodeNameList, List<String> evidenceNodeNameList)
           
protected  void evaluate(List<String> targetNodeNameList, List<String> evidenceNodeNameList, boolean onlyGCM)
           
 float getError()
           
static void main(String[] args)
           
 
Methods inherited from class unbbayes.evaluation.AEvaluation
computeFactors, 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

sampleSize

protected int sampleSize

mc

protected IMonteCarloSampling mc

targetNode

protected TreeVariable targetNode

sampleMatrix

protected byte[][] sampleMatrix

positionNodeList

protected List<Node> positionNodeList

positionTargetNodeList

protected int[] positionTargetNodeList

positionEvidenceNodeList

protected int[] positionEvidenceNodeList
Constructor Detail

FastMCApproximateEvaluation

public FastMCApproximateEvaluation(int sampleSize)
Method Detail

getError

public float getError()
Specified by:
getError in interface IEvaluation
Specified by:
getError in class AEvaluation

evaluate

protected void evaluate(List<String> targetNodeNameList,
                        List<String> evidenceNodeNameList,
                        boolean onlyGCM)
                 throws EvaluationException
Overrides:
evaluate in class AEvaluation
Throws:
EvaluationException

computeCM

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

main

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


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