|
fmcs
v0.2.1
|
Creates a sample node in a graph_ir. More...
#include "graph.hpp"
Public Member Functions | |
| graph_sample_node_construct (gr_pair< Ts... > &gr, std::string address, RNG &rng) | |
| template<typename... Args> | |
| graph_node< D > | operator() (Args &&... args) |
| Constructs a sampled graph node based on passed parent nodes or values. More... | |
Public Member Functions inherited from graph_node_construct< D, Ts... > | |
| graph_node_construct (gr_pair< Ts... > &gr, std::string address, bool obs) | |
| void | add_parents_children (graph_node< D > &node, Args &&... args) |
Public Attributes | |
| RNG & | rng |
Public Attributes inherited from graph_node_construct< D, Ts... > | |
| std::string | address |
| gr_pair< Ts... > & | gr |
| bool | obs |
Creates a sample node in a graph_ir.
| D | Distribution type of the node |
| RNG | PRNG used to sample from the distribution |
| Ts | Types of distributions used in the probabilistic program |