lppl  v2.0.0

◆ update()

template<template< typename, typename, typename... > class Impl, typename V , typename O , typename... Ts>
void Queryer< Impl, V, O, Ts >::update ( record_t< DTypes< Ts... >> &  r,
output,
double  weight,
inf_options_t  opts 
)
inline

Updates the state of the queryer.

Parameters
ra record with state set by the probabilistic program being queried
outputthe output of the probabilistic program being queried
weightthe weight associated with the query. The weight will be interpreted as the posterior log probability of the record.
optsinference options passed to the inference algorithm