lppl  v2.0.0

◆ sample()

template<typename D , size_t N>
template<typename RNG >
std::shared_ptr<std::array<DSType<D>, N> > slice_plate< D, N >::sample ( RNG &  rng)
inline

Samples \(x_1,...,x_N \sim p(x_n | z_n)\).

Template Parameters
RNGThe type of the pseudorandom number generator
Parameters
rngThe pseudorandom number generator
Returns
std::shared_ptr<std::array<DSType<D>, N>>