lppl  v2.0.0
graph_sample_node_construct< D, RNG, Ts > Struct Template Reference

Creates a sample node in a graph_ir. More...

#include "graph.hpp"

Inheritance diagram for graph_sample_node_construct< D, RNG, Ts >:
graph_node_construct< D, Ts... >

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
 

Detailed Description

template<typename D, typename RNG, typename... Ts>
struct graph_sample_node_construct< D, RNG, Ts >

Creates a sample node in a graph_ir.

Template Parameters
DDistribution type of the node
RNGPRNG used to sample from the distribution
TsTypes of distributions used in the probabilistic program

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