autoppl
v0.8
A C++ template library for probabilistic programming
|
#include <momentum_handler.hpp>
Public Types | |
using | adapter_policy_t = diag_var |
using | variance_t = Eigen::VectorXd |
Public Member Functions | |
MomentumHandler (size_t n_params) | |
template<class MatType , class GenType > | |
void | sample (Eigen::MatrixBase< MatType > &rho, GenType &gen) |
template<class MatType > | |
double | kinetic (const Eigen::MatrixBase< MatType > &rho) const |
template<class MatType > | |
auto | dkinetic_dr (const Eigen::MatrixBase< MatType > &rho) const |
variance_t & | get_m_inverse () |
const variance_t & | get_m_inverse () const |
Diagonal variance with adaptation.
using ppl::mcmc::MomentumHandler< diag_var >::adapter_policy_t = diag_var |
using ppl::mcmc::MomentumHandler< diag_var >::variance_t = Eigen::VectorXd |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Compute corresponding kinetic energy
|
inline |
Sample from N(0, M) where M inverse ~ sample variance matrix