PRISM—probabilistic model checker概率模型检测器
骰子模型 The dieexample
http://www.prismmodelchecker.org/tutorial/die.php 与马尔科夫链有关
PRISM code:
dtmc
moduledie
//local state
s : [0..7]init0;
//value of the die
d : [0..6]init0;
[]s=0 -> 0.5 : (s'=1) + 0.5 : (s'=2);
[]s=1 -> 0.5 : (s'=3) + 0.5 : (s'=4);
[]s=2 -> 0.5