Commit Graph

8 Commits (beb7d42d748f9f0f5216ed7aca93dceb4f73df2c)

Author SHA1 Message Date
Johannes Pfeifer 433a68169d TaRB: fix bug where incorrect last posterior was returned if last draw was rejected 2018-07-24 17:07:29 +02:00
Stéphane Adjemian (Charybdis) 5417b27ac7 Fixed indentation of matlab files. 2017-05-16 15:10:20 +02:00
Johannes Pfeifer 0c00e28799 Remove objective_function_penalty_base 2016-06-15 00:30:28 +02:00
Johannes Pfeifer 12ee5b7276 Fix copyrights and references to random_walk_metropolis_hastings headers 2016-05-19 17:15:31 +02:00
Johannes Pfeifer 3073988ac1 Fix vector dimension for independent_metropolis_hastings 2016-05-19 14:37:05 +02:00
Johannes Pfeifer 90ab263587 Fix location of TaRB options 2016-05-19 14:37:05 +02:00
Marco Ratto 9c62021d3c Move TaRB to posterior_sampler_iteration.m [PATCH from Johannes: thanks a lot] 2016-05-19 14:34:09 +02:00
Marco Ratto c30b6f20a6 Added routines that factor out posterior samplers into the iteration routine posterior_sampler_iteration.m.
It generalizes the random_walk_metropolis_hastings.m structure but adds two new items:
- check_posterior_sampler_options.m which is a wrapper for method specific options (stored in options_.posterior_options)
- posterior_sampler_iteration.m which is a wrapper of the individual iteration of any posterior sampler.

It already embeds, with parallelization implementation:
- random_walk metropolis hastings
- independent metropolis hastings
- slice sampler

It also contains a quick fix for TARB, although the latter should be embedded in posterior_sampler_iteration.m as well.

Any new posterior sampler can be simply added to posterior_sampler_iteration.m, with  wrapper to specific iterations in check_posterior_sampler_options.m
2016-05-19 14:34:09 +02:00