Commit Graph

4 Commits (8b85ca19bf0efc721dff2eceb95f918a6857a01e)

Author SHA1 Message Date
Marco Ratto 35a1c7ac17 Commented options for slice sampler, including default values and associated restrictions/default for main options_ fields 2016-05-19 14:34:09 +02:00
Marco Ratto 0c01565298 Allow sampler specific options via optim;
bug fixes on options logic
2016-05-19 14:34:09 +02:00
Marco Ratto a96dd5b964 for slice, always initialize empty invhess unless a new chain is initialized from a mode file 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