lppl  v2.0.0

◆ observe_g()

template<typename D , typename V , typename... Ts>
graph_observe_node_construct<D, V, Ts...> observe_g ( gr_pair< Ts... > &  gr,
std::string &&  address,
value 
)

Prepares an observe node for construction and placement in the graph.

Template Parameters
DType of the distribution of the node
VType of the value to score against the node
TsTypes of distributions in the probabilistic program
Parameters
gra graph_ir and a record
addressthe address at which to store the created node
valuevalue to score against the distribution
Returns
graph_observe_node_construct<D, V, Ts...>