update simulation inference and add an example
Merge pull request #5 from weikang9009/master

update simulation inference and add an example