lppl  v2.0.0
graph_node< D > Struct Template Reference

A fundamental data structure of which a graph intermediate representation is composed. More...

#include "graph.hpp"

Public Member Functions

double logprob (DSType< D > value)
 Returns the log probability of the value scored against the node's distribution. More...
 
template<typename RNG >
DSType< D > sample (RNG &rng)
 Returns a sample from the node's distribution. More...
 
std::string string () const
 

Public Attributes

std::string address
 
std::vector< std::string > children
 
distribution
 
bool obs
 
std::vector< std::string > parents
 
DSType< D > value
 

Detailed Description

template<typename D>
struct graph_node< D >

A fundamental data structure of which a graph intermediate representation is composed.

Template Parameters
D

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