lppl  v2.0.0
inference_state< C, I, O, Ts > Struct Template Reference

State that is used by inference algorithms. More...

#include "inference.hpp"

Detailed Description

template<template< class, class, class, template< class, class, class... > class, typename... > class C, typename I, typename O, typename... Ts>
struct inference_state< C, I, O, Ts >

State that is used by inference algorithms.

Some inference algorithms are stateless (e.g., likelihood weighting), but others may depend on state (e.g., proposal distributions, past samples from the posterior)

By default, this contains no state; inference algorithms that contain state should specialize this struct and refer to it within .step(...) and .operator()(...).

Template Parameters
CInference algorithm template
IInput type of the probabilistic program
OOutput type of the probabilistic program
TsTypes of the distributions in the probabilistic program

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