lppl  v2.0.0

◆ sample_g()

template<typename D , typename RNG , typename... Ts>
graph_sample_node_construct<D, RNG, Ts...> sample_g ( gr_pair< Ts... > &  gr,
std::string &&  address,
RNG &  rng 
)

Prepares a sample node for construction and placement in the graph.

Template Parameters
DType of the distribution of the node
RNGType of the PRNG used to sample from the distribution
TsTypes of distributions in the probabilistic program
Parameters
gra graph_ir and a record
addressthe address at which to store the created node
rngthe PRNG used to draw the samples
Returns
graph_sample_node_construct<D, RNG, Ts...>