lppl
v2.0.0
|
Interface to all querying mechanisms for sample-based inference (and possibly other inference algorithms). Much computation that is associated with inference is implemented by subclasses of Queryer (rather than in inference algorithms themselves, as is often done). More...
#include "query.hpp"
Public Member Functions | |
V | emit () |
Emits the result of the query. | |
void | update (record_t< DTypes< Ts... >> &r, O output, double weight, inf_options_t opts) |
Updates the state of the queryer. More... | |
Interface to all querying mechanisms for sample-based inference (and possibly other inference algorithms). Much computation that is associated with inference is implemented by subclasses of Queryer (rather than in inference algorithms themselves, as is often done).
V | The type that will be returned when the emit method is called |
O | The type returned by the probabilistic program that will be queried |
Ts | The types of distributions in the probabilistic program that will be queried |