SMC4WM
is a Statistical Model Checker for some types of probabilistic graphical models.
mkdir build
cd build
cmake ../src
make
the command line is as follows:
SMC_wm -testfile <testfile> -modelfile <modelfile> -propfile <propertyfile> -interfile <interventionfile>
=======
where:
<testfile> is a text file containing a sequence of test specifications, give the path to it. This parameter
is optional. The default input is ../testcase/test;
<modelfile> is the file name and path of the WM model under analysis;
<propertyfile> is the file name and path of properties to be checked;
<interventionfile> is the file name and path of Intervention to be implemented. This parameter is
optional;
<initialfile> is the file name and path of the initial value of variables in simulation. This parameter is
optional;
=======
the command line is as follows:
SMC_wm -modelfile <modelfile> -interfile <interventionfile> -initfile <initialfile> -getDistribution
<variableInfo> -interval <intervalNum> -outputfile <outputfile>
=======
where:
<modelfile> is the file name and path of the WM model under analysis;
<interventionfile> is the file name and path of Intervention to be implemented. This parameter is
optional;
<initialfile> is the file name and path of the initial value of variables in simulation. This parameter is
optional;
<variableInfo> is a string that contains the name of the variable being queried and the number of
steps. The number of steps should be enclosed between ‘[' and ']' and placed after the variable
name and must be greater than or equal to 1. For example: "market[100]";
<intervalNum> is an integer representing the number of intervals used to display the distribution;
<outputfile> is the file name and path of the result. This parameter is optional. The default file is
“SMC4WM/Distribution.txt”.
=======
Available test specifications:
Hypothesis test:
" Lai's test: Lai <theta> <cost per sample>"
" Bayes Factor test: BFT <theta> <threshold T> <alpha> <beta>"
" Sequential Probability Ratio Test: SPRT <theta> <threshold T> <indifference region delta>"
" Bayes Factor test with indifference region: BFTI <theta> <threshold T> <alpha> <beta> <indifference
region delta>"
Estimation methods:
" Chernoff-Hoeffding bound: CHB <delta> <coverage probability>"
" Bayesian estimation: BEST <delta> <coverage probability> <alpha> <beta>"
Sampling method:
" Naive sampling: NSAM <#samples>"