Skip to content

Hamiltonian Monte Carlo for a linear forward model.

License

Notifications You must be signed in to change notification settings

smasuti/mcmc_hmc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mcmc_hmc

Hamiltonian/Hybrid Monte Carlo Sampling

This is the simple Hamiltonian sampling algorithm. The file hmc.m contains the function and a simple example. The example uses a simple forward model of the form dobs=m1*x+m2. Hamiltonian sampling is derivative based method and hence mostly applicable to continuous variable, however there are other methods involving discrete variable which are not covered here.

After running the example you will see the posterior plotted something like below.

About

Hamiltonian Monte Carlo for a linear forward model.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages