|
autoppl
v0.8
A C++ template library for probabilistic programming
|
#include <bar_eq.hpp>
Public Types | |
| using | var_t = VarType |
| using | dist_t = DistType |
| using | dist_value_t = typename util::dist_expr_traits< dist_t >::dist_value_t |
Public Member Functions | |
| BarEqNode (const var_t &var, const dist_t &dist) noexcept | |
| template<class BarEqNodeFunc > | |
| void | traverse (BarEqNodeFunc &&eq_f) |
| template<class BarEqNodeFunc > | |
| void | traverse (BarEqNodeFunc &&eq_f) const |
| auto | pdf () |
| auto | log_pdf () |
| template<class PtrPackType > | |
| auto | ad_log_pdf (const PtrPackType &pack) const |
| template<class PtrPackType > | |
| void | bind (const PtrPackType &pack) |
| void | activate_refcnt () const |
| var_t & | get_variable () |
| const var_t & | get_variable () const |
| dist_t & | get_distribution () |
| const dist_t & | get_distribution () const |
Public Member Functions inherited from ppl::util::BaseCRTP< BarEqNode< VarType, DistType > > | |
| BarEqNode< VarType, DistType > & | self () |
| const BarEqNode< VarType, DistType > & | self () const |
This class represents a node in the model expression that relates a variable with a distribution. It cannot relate a variable expression in general to a distribution.
| using ppl::expr::model::BarEqNode< VarType, DistType >::dist_t = DistType |
| using ppl::expr::model::BarEqNode< VarType, DistType >::dist_value_t = typename util::dist_expr_traits<dist_t>::dist_value_t |
| using ppl::expr::model::BarEqNode< VarType, DistType >::var_t = VarType |
|
inlinenoexcept |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Generic traversal function. Assumes that eq_f is a function that takes in 1 parameter, which is simply the current object.
|
inline |