hops
Public Member Functions | List of all members
hops::ModelMixin< MarkovChainProposer, ModelType > Class Template Reference

ModelMixin Mixin to add model likelihood to computeLogAcceptanceRate(). More...

#include <ModelMixin.hpp>

Inheritance diagram for hops::ModelMixin< MarkovChainProposer, ModelType >:
Inheritance graph
Collaboration diagram for hops::ModelMixin< MarkovChainProposer, ModelType >:
Collaboration graph

Public Member Functions

 ModelMixin (const MarkovChainProposer &markovChainProposer, const ModelType &model)
 
void acceptProposal ()
 
double computeLogAcceptanceProbability ()
 
double getNegativeLogLikelihoodOfCurrentState ()
 

Detailed Description

template<typename MarkovChainProposer, typename ModelType>
class hops::ModelMixin< MarkovChainProposer, ModelType >

ModelMixin Mixin to add model likelihood to computeLogAcceptanceRate().

Useful for MarkovChainProposer classes, that do not already contain the model.

Template Parameters
MarkovChainProposer
ModelImpl

Constructor & Destructor Documentation

◆ ModelMixin()

template<typename MarkovChainProposer , typename ModelType >
hops::ModelMixin< MarkovChainProposer, ModelType >::ModelMixin ( const MarkovChainProposer &  markovChainProposer,
const ModelType &  model 
)
inline

Member Function Documentation

◆ acceptProposal()

template<typename MarkovChainProposer , typename ModelType >
void hops::ModelMixin< MarkovChainProposer, ModelType >::acceptProposal

◆ computeLogAcceptanceProbability()

template<typename MarkovChainProposer , typename ModelType >
double hops::ModelMixin< MarkovChainProposer, ModelType >::computeLogAcceptanceProbability

◆ getNegativeLogLikelihoodOfCurrentState()

template<typename MarkovChainProposer , typename ModelType >
double hops::ModelMixin< MarkovChainProposer, ModelType >::getNegativeLogLikelihoodOfCurrentState

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