Class RunMcmc

java.lang.Object
  extended by RunMcmc

public class RunMcmc
extends java.lang.Object

This class contains a main for running MCMC and printing the results periodically. You are welcome to write your own main, but your MCMC code must also work correctly with the main provided here.


Constructor Summary
RunMcmc()
           
 
Method Summary
static void main(java.lang.String[] argv)
          This is a simple main that you can use for testing.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RunMcmc

public RunMcmc()
Method Detail

main

public static void main(java.lang.String[] argv)
                 throws java.io.FileNotFoundException,
                        java.io.IOException
This is a simple main that you can use for testing. Once MCMC has been implemented, this main simply runs MCMC for some number of rounds, printing partial results with a specified frequency, on a given Bayes net and query. The command-line arguments are: name of the file describing the Bayes net; name of the file describing the query; maximum number of iterations; frequency with which results should be printed.

Throws:
java.io.FileNotFoundException
java.io.IOException