edu.ksu.cis.bnj.bbn.inference
Class ApproximateInference

java.lang.Object
  extended byedu.ksu.cis.bnj.bbn.inference.Inference
      extended byedu.ksu.cis.bnj.bbn.inference.ApproximateInference
All Implemented Interfaces:
Optionable
Direct Known Subclasses:
MCMC

public abstract class ApproximateInference
extends Inference

Approximate Inference abstract class

Author:
Roby Joehanes

Field Summary
protected  RMSECalculator rmseWriter
           
 
Fields inherited from class edu.ksu.cis.bnj.bbn.inference.Inference
graph, inferenceClassName, MAP, MARGINALS, marginalsResult, MPE, OPT_RUN_TYPE, options
 
Fields inherited from interface edu.ksu.cis.kdd.util.gui.Optionable
OPT_OUTPUT_FILE
 
Constructor Summary
ApproximateInference()
           
ApproximateInference(BBNGraph g)
          Constructor for ApproximateInference.
 
Method Summary
 double computeRMSE(ExactInference exact)
          Compute the Root Mean Square Error (RMSE) value between exact and inexact inference.
 RMSECalculator getRMSEWriter()
           
 void setRMSEfile(java.io.OutputStream out)
          Sets the file to print the RMSE values of each sample to
 
Methods inherited from class edu.ksu.cis.bnj.bbn.inference.Inference
execute, getCurrentOptions, getDefaultOptions, getGraph, getMAP, getMarginals, getMarginalsResult, getMPE, getName, getOptionsDialog, getOutputFile, getRunType, load, setGraph, setOption, setOptions, setOutputFile, setRunType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rmseWriter

protected RMSECalculator rmseWriter
Constructor Detail

ApproximateInference

public ApproximateInference()

ApproximateInference

public ApproximateInference(BBNGraph g)
Constructor for ApproximateInference.

Parameters:
g -
Method Detail

setRMSEfile

public void setRMSEfile(java.io.OutputStream out)
Sets the file to print the RMSE values of each sample to


computeRMSE

public double computeRMSE(ExactInference exact)
Compute the Root Mean Square Error (RMSE) value between exact and inexact inference. Does some validation

Parameters:
exact - The exact inference
Returns:
double The RMSE result

getRMSEWriter

public RMSECalculator getRMSEWriter()