Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
std::tr1::bernoulli_distribution Class Reference

#include <random.hpp>

Public Types

typedef int input_type
 
typedef bool result_type
 

Public Member Functions

 bernoulli_distribution (double p=0.5)
 
double p () const
 
void reset ()
 
template<class UniformRandomNumberGenerator >
result_type operator() (UniformRandomNumberGenerator &urng)
 

Friends

template<class CharT , class Traits >
std::basic_ostream< CharT,
Traits > & 
operator<< (std::basic_ostream< CharT, Traits > &os, const bernoulli_distribution &lcg)
 
template<class CharT , class Traits >
std::basic_istream< CharT,
Traits > & 
operator>> (std::basic_istream< CharT, Traits > &is, bernoulli_distribution &lcg)
 

Member Typedef Documentation

Constructor & Destructor Documentation

std::tr1::bernoulli_distribution::bernoulli_distribution ( double  p = 0.5)
inlineexplicit

Member Function Documentation

template<class UniformRandomNumberGenerator >
result_type std::tr1::bernoulli_distribution::operator() ( UniformRandomNumberGenerator &  urng)
inline
double std::tr1::bernoulli_distribution::p ( ) const
inline
void std::tr1::bernoulli_distribution::reset ( void  )
inline

Friends And Related Function Documentation

template<class CharT , class Traits >
std::basic_ostream<CharT,Traits>& operator<< ( std::basic_ostream< CharT, Traits > &  os,
const bernoulli_distribution lcg 
)
friend
template<class CharT , class Traits >
std::basic_istream<CharT,Traits>& operator>> ( std::basic_istream< CharT, Traits > &  is,
bernoulli_distribution lcg 
)
friend

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