ssmkit  master-68aed98
ssmkit::distribution Namespace Reference

Probability distribution functions. More...

Classes

class  Categorical
 Categorical (multinomial) distribution. More...
 
class  Conditional
 Conditional distribution function. More...
 
class  Gaussian
 A D-dimensional multivariate Gaussian distribution. More...
 

Functions

template<class TPDF , class TParamMap >
Conditional< TPDF, TParamMap > makeConditional (TPDF pdf, TParamMap map)
 Convenient builder that returns a conditional distribution object. More...
 

Detailed Description

Probability distribution functions.

Function Documentation

Conditional<TPDF, TParamMap> ssmkit::distribution::makeConditional ( TPDF  pdf,
TParamMap  map 
)

Convenient builder that returns a conditional distribution object.

Use this when you want to use type deduction for TPDF and TParamMap

Returns
Conditional object
Parameters
pdfA probability distribution object that implements \(\mathcal{F}(\theta)\).
mapA callable object that implements \(g(.)\).
Precondition
pdf should provide random, likelihood and parameterize methods, e.g. Gaussian. map should be callable with return type equivalent to parameter type of pdf, e.g. map::LinearGaussian.

Definition at line 92 of file conditional.hpp.