public class BNGibbsSampler
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
iterations
total iterations; each non-evidence variable is updated in each iteration
|
static int |
reportFrequency
iteration frequency of progress reports
|
Constructor and Description |
---|
BNGibbsSampler() |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args)
Initialize parameters, parse input, display BN information, and perform Gibbs sampling.
|
static void |
simulate()
Perform Stochastic Simulation as described in Section 4.4.3 of Pearl, Judea.
|
public static int reportFrequency
public static int iterations
public static void main(java.lang.String[] args) throws ParseException
args
- an array of command-line argumentsParseException
- standard input does not match grammar for Bayesian network specification. (See assignment documentation for BNF grammar.)public static void simulate()