vSMC
vSMC: Scalable Monte Carlo
Classes | Namespaces | Functions
bernoulli_distribution.hpp File Reference
#include <vsmc/rng/internal/common.hpp>
#include <vsmc/rng/u01_distribution.hpp>

Go to the source code of this file.

Classes

class  vsmc::BernoulliDistribution< IntType >
 Bernoulli distribution. More...
 
class  vsmc::BernoulliDistribution< IntType >::param_type
 

Namespaces

 vsmc
 
 vsmc::internal
 

Functions

template<typename IntType , typename RNGType >
void vsmc::bernoulli_distribution (RNGType &rng, std::size_t n, IntType *r, IntType p)
 Generating bernoulli random variates. More...
 
bool vsmc::internal::bernoulli_distribution_check_param (double p)
 
template<std::size_t K, typename IntType , typename RNGType >
void vsmc::internal::bernoulli_distribution_impl (RNGType &rng, std::size_t n, IntType *r, double p)
 
template<typename IntType , typename RNGType >
void vsmc::rng_rand (RNGType &rng, BernoulliDistribution< IntType > &dist, std::size_t n, IntType *r)