lppl  v2.0.0
static_plate< D, N > Struct Template Reference

Represents \(N\) iid random variables. More...

#include "plate.hpp"

Inheritance diagram for static_plate< D, N >:
plate_base_< D >

Public Member Functions

template<typename... Ts>
 static_plate (Ts... ts)
 
double logprob (std::shared_ptr< std::array< DSType< D >, N >> value)
 Computes \(\sum_{1\leq n \leq N} \log p(x_n | z)\). More...
 
template<typename RNG >
std::shared_ptr< std::array< DSType< D >, N > > sample (RNG &rng)
 Draws \(x_1,...,x_N \sim p(x|z)\). More...
 
std::string string () const
 
- Public Member Functions inherited from plate_base_< D >
template<typename... Ts>
 plate_base_ (Ts... ts)
 

Additional Inherited Members

- Public Attributes inherited from plate_base_< D >
dist
 

Detailed Description

template<typename D, size_t N>
struct static_plate< D, N >

Represents \(N\) iid random variables.

Template Parameters
DThe type of the underlying distribution
NThe number of iid random variables

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