lppl  v2.0.0
Inference< A, I, O, V, Q, Ts > Struct Template Reference

Universal base class for inference methods. More...

#include "inference.hpp"

Public Member Functions

 Inference (pp_t< I, O, Ts... > f, Q< V, O, Ts... > &queryer, inf_options_t opts)
 
template<template< typename, typename, typename, template< class, class, class... > class, typename... > class G = A>
std::enable_if_t< std::is_same_v< typename has_proposal< G >::type, No >, V > operator() (I &input)
 Runs the specified inference algorithm with the specified queryer. More...
 
template<template< typename, typename, typename, template< class, class, class... > class, typename... > class G = A>
std::enable_if_t< std::is_same_v< typename has_proposal< G >::type, Endog >, V > operator() (I &input, endog_proposal_t< Ts... > &proposal)
 Runs the specified inference algorithm with the specified queryer using the specified proposal distribution. More...
 
template<template< typename, typename, typename, template< class, class, class... > class, typename... > class G = A>
std::enable_if_t< std::is_same_v< typename has_proposal< G >::type, Exog >, V > operator() (I &input, exog_proposal_t< I, Ts... > &proposal)
 Runs the specified inference algorithm with the specified queryer using the specified proposal distribution. More...
 
void step (record_t< DTypes< Ts... >> &r, I &input)
 

Public Attributes

pp_t< I, O, Ts... > f
 
inf_options_t opts
 
Q< V, O, Ts... > & queryer
 
inference_state< A, I, O, Ts... > state
 

Detailed Description

template<template< typename, typename, typename, template< class, class, class... > class, typename... > class A, typename I, typename O, typename V, template< class, class, class... > class Q, typename... Ts>
struct Inference< A, I, O, V, Q, Ts >

Universal base class for inference methods.

Template Parameters
AThe class template of the inference method
IThe type of the input data
OThe type of the output data
VThe type of the query variable(s)
QThe class template of the queryer
HasProposalwill the passed class template have an associated proposal class?
TsThe distribution types in the program

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