Fleet  0.0.9
Inference in the LOT
Public Types | Public Member Functions | Public Attributes | List of all members
ConstrainedMCMC< HYP > Class Template Reference

#include <ShibbolethSampler.h>

Inheritance diagram for ConstrainedMCMC< HYP >:
Inheritance graph
[legend]
Collaboration diagram for ConstrainedMCMC< HYP >:
Collaboration graph
[legend]

Public Types

using input_t = HYP::input_t
 
using output_t = decltype(std::declval< HYP >().shibboleth_call(std::declval< input_t >()))
 
- Public Types inherited from MCMCChain< HYP >
using HYP = HYP
 

Public Member Functions

 ConstrainedMCMC (HYP &h0, input_t &in, typename HYP::data_t *d)
 
virtual bool check (HYP &h) override
 This allows us to overwrite/enforce stuff about proposals in subclasses of MCMCChain. More...
 
- Public Member Functions inherited from MCMCChain< HYP >
 MCMCChain (HYP &h0, typename HYP::data_t *d)
 
 MCMCChain (HYP &&h0, typename HYP::data_t *d)
 
 MCMCChain (const MCMCChain &m)
 
 MCMCChain (MCMCChain &&m)
 
virtual ~MCMCChain ()
 
void set_data (typename HYP::data_t *d, bool recompute_posterior=true)
 Set this data. More...
 
HYPgetCurrent ()
 
const HYPgetCurrent () const
 
void runOnCurrent ()
 
const HYPgetMax ()
 
void restart ()
 
generator< HYP &> run (Control ctl)
 Run MCMC according to the control parameters passed in. NOTE: ctl cannot be passed by reference. More...
 
void run ()
 
double acceptance_ratio ()
 
double at_temperature (double t)
 

Public Attributes

size_t FLIP_EVERY = 10
 
bool store = false
 
size_t steps = 0
 
input_t sh_in
 
output_t sh_out
 
- Public Attributes inherited from MCMCChain< HYP >
HYP current
 
OrderedLock current_mutex
 
HYP::data_t * data
 
double maxval
 
unsigned long samples
 
unsigned long proposals
 
unsigned long acceptances
 
unsigned long steps_since_improvement
 
std::atomic< double > temperature
 
FiniteHistory< bool > history
 

Member Typedef Documentation

◆ input_t

template<typename HYP >
using ConstrainedMCMC< HYP >::input_t = HYP::input_t

◆ output_t

template<typename HYP >
using ConstrainedMCMC< HYP >::output_t = decltype(std::declval<HYP>().shibboleth_call( std::declval<input_t>()))

Constructor & Destructor Documentation

◆ ConstrainedMCMC()

template<typename HYP >
ConstrainedMCMC< HYP >::ConstrainedMCMC ( HYP h0,
input_t in,
typename HYP::data_t *  d 
)
inline

Member Function Documentation

◆ check()

template<typename HYP >
virtual bool ConstrainedMCMC< HYP >::check ( HYP p)
inlineoverridevirtual

This allows us to overwrite/enforce stuff about proposals in subclasses of MCMCChain.

Parameters
p
Returns

Reimplemented from MCMCChain< HYP >.

Member Data Documentation

◆ FLIP_EVERY

template<typename HYP >
size_t ConstrainedMCMC< HYP >::FLIP_EVERY = 10

◆ sh_in

template<typename HYP >
input_t ConstrainedMCMC< HYP >::sh_in

◆ sh_out

template<typename HYP >
output_t ConstrainedMCMC< HYP >::sh_out

◆ steps

template<typename HYP >
size_t ConstrainedMCMC< HYP >::steps = 0

◆ store

template<typename HYP >
bool ConstrainedMCMC< HYP >::store = false

The documentation for this class was generated from the following file: