lppl  v2.0.0
Value< V > Struct Template Reference

A minimal wrapper of a value that is tracked in a graph_ir. More...

#include "graph_distributions.hpp"

Public Member Functions

 Value (V value)
 
double logprob (V value_)
 
template<typename RNG >
sample (RNG &)
 
std::string string () const
 

Public Attributes

value
 

Detailed Description

template<typename V>
struct Value< V >

A minimal wrapper of a value that is tracked in a graph_ir.

This models the value as the distribution \(p(v') = \delta( v' = v ) \), where \(v\) is the value passed to the constructor. Value nodes do not have parents.

Template Parameters
VThe type of the value to be tracked

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