Added changes to the MCMC sampling code. Added an MCMC example.

This commit is contained in:
Alec Helbling
2023-02-03 23:13:20 -05:00
parent 7538e2b620
commit 2b21261db7
4 changed files with 175 additions and 14 deletions

View File

@ -15,8 +15,8 @@ plt.style.use('dark_background')
# Make the specific scene
config.pixel_height = 1200
config.pixel_width = 1200
config.frame_height = 10.0
config.frame_width = 10.0
config.frame_height = 7.0
config.frame_width = 7.0
def test_metropolis_hastings_sampler(iterations=100):
samples, _, candidates = metropolis_hastings_sampler(iterations=iterations)