lppl  v2.0.0
graph_observe_node_construct< D, V, Ts > Struct Template Reference

Creates an observe node in a graph_ir. More...

#include "graph.hpp"

Inheritance diagram for graph_observe_node_construct< D, V, Ts >:
graph_node_construct< D, Ts... >

Public Member Functions

 graph_observe_node_construct (gr_pair< Ts... > &gr, std::string address, V value)
 
template<typename... Args>
graph_node< D > operator() (Args &&... args)
 Constructs a observed 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

value
 
- Public Attributes inherited from graph_node_construct< D, Ts... >
std::string address
 
gr_pair< Ts... > & gr
 
bool obs
 

Detailed Description

template<typename D, typename V, typename... Ts>
struct graph_observe_node_construct< D, V, Ts >

Creates an observe node in a graph_ir.

Template Parameters
DDistribution type of the node
VType of value to score against the distribution
TsTypes of distributions used in the probabilistic program

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