hops
Public Types | Public Member Functions | Protected Attributes | List of all members
hops::HitAndRunProposal< MatrixType, VectorType, ChordStepDistribution, Precise > Class Template Reference

#include <HitAndRunProposal.hpp>

Collaboration diagram for hops::HitAndRunProposal< MatrixType, VectorType, ChordStepDistribution, Precise >:
Collaboration graph

Public Types

using StateType = VectorType
 

Public Member Functions

 HitAndRunProposal (MatrixType A, VectorType b, VectorType currentState)
 
void propose (RandomNumberGenerator &randomNumberGenerator)
 
void acceptProposal ()
 
StateType getState () const
 
StateType getProposal () const
 
void setState (StateType newState)
 
void setStepSize (typename MatrixType::Scalar stepSize)
 
MatrixType::Scalar computeLogAcceptanceProbability ()
 
MatrixType::Scalar getStepSize () const
 
std::string getName ()
 

Protected Attributes

StateType state
 
StateType m_proposal
 

Member Typedef Documentation

◆ StateType

template<typename MatrixType , typename VectorType , typename ChordStepDistribution = UniformStepDistribution<typename MatrixType::Scalar>, bool Precise = false>
using hops::HitAndRunProposal< MatrixType, VectorType, ChordStepDistribution, Precise >::StateType = VectorType

Constructor & Destructor Documentation

◆ HitAndRunProposal()

template<typename MatrixType , typename VectorType , typename ChordStepDistribution , bool Precise>
hops::HitAndRunProposal< MatrixType, VectorType, ChordStepDistribution, Precise >::HitAndRunProposal ( MatrixType  A,
VectorType  b,
VectorType  currentState 
)

Member Function Documentation

◆ acceptProposal()

template<typename MatrixType , typename VectorType , typename ChordStepDistribution , bool Precise>
void hops::HitAndRunProposal< MatrixType, VectorType, ChordStepDistribution, Precise >::acceptProposal

◆ computeLogAcceptanceProbability()

template<typename MatrixType , typename VectorType , typename ChordStepDistribution = UniformStepDistribution<typename MatrixType::Scalar>, bool Precise = false>
MatrixType::Scalar hops::HitAndRunProposal< MatrixType, VectorType, ChordStepDistribution, Precise >::computeLogAcceptanceProbability ( )
inline

◆ getName()

template<typename MatrixType , typename VectorType , typename ChordStepDistribution , bool Precise>
std::string hops::HitAndRunProposal< MatrixType, VectorType, ChordStepDistribution, Precise >::getName

◆ getProposal()

template<typename MatrixType , typename VectorType , typename ChordStepDistribution , bool Precise>
HitAndRunProposal< MatrixType, VectorType, ChordStepDistribution, Precise >::StateType hops::HitAndRunProposal< MatrixType, VectorType, ChordStepDistribution, Precise >::getProposal

◆ getState()

template<typename MatrixType , typename VectorType , typename ChordStepDistribution , bool Precise>
HitAndRunProposal< MatrixType, VectorType, ChordStepDistribution, Precise >::StateType hops::HitAndRunProposal< MatrixType, VectorType, ChordStepDistribution, Precise >::getState

◆ getStepSize()

template<typename MatrixType , typename VectorType , typename ChordStepDistribution , bool Precise>
MatrixType::Scalar hops::HitAndRunProposal< MatrixType, VectorType, ChordStepDistribution, Precise >::getStepSize

◆ propose()

template<typename MatrixType , typename VectorType , typename ChordStepDistribution , bool Precise>
void hops::HitAndRunProposal< MatrixType, VectorType, ChordStepDistribution, Precise >::propose ( RandomNumberGenerator randomNumberGenerator)

◆ setState()

template<typename MatrixType , typename VectorType , typename ChordStepDistribution , bool Precise>
void hops::HitAndRunProposal< MatrixType, VectorType, ChordStepDistribution, Precise >::setState ( StateType  newState)

◆ setStepSize()

template<typename MatrixType , typename VectorType , typename ChordStepDistribution , bool Precise>
void hops::HitAndRunProposal< MatrixType, VectorType, ChordStepDistribution, Precise >::setStepSize ( typename MatrixType::Scalar  stepSize)

Member Data Documentation

◆ m_proposal

template<typename MatrixType , typename VectorType , typename ChordStepDistribution = UniformStepDistribution<typename MatrixType::Scalar>, bool Precise = false>
StateType hops::HitAndRunProposal< MatrixType, VectorType, ChordStepDistribution, Precise >::m_proposal
protected

◆ state

template<typename MatrixType , typename VectorType , typename ChordStepDistribution = UniformStepDistribution<typename MatrixType::Scalar>, bool Precise = false>
StateType hops::HitAndRunProposal< MatrixType, VectorType, ChordStepDistribution, Precise >::state
protected

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