libstdc++
Bernoulli Distributions
Collaboration diagram for Bernoulli Distributions:

Classes

class  std::bernoulli_distribution
 A Bernoulli random number distribution. More...
class  std::binomial_distribution< _IntType >
 A discrete binomial random number distribution. More...
class  std::geometric_distribution< _IntType >
 A discrete geometric random number distribution. More...
class  std::negative_binomial_distribution< _IntType >
 A negative_binomial_distribution random number distribution. More...

Functions

bool std::operator!= (const std::bernoulli_distribution &__d1, const std::bernoulli_distribution &__d2)
template<typename _IntType >
bool std::operator!= (const std::binomial_distribution< _IntType > &__d1, const std::binomial_distribution< _IntType > &__d2)
template<typename _IntType >
bool std::operator!= (const std::geometric_distribution< _IntType > &__d1, const std::geometric_distribution< _IntType > &__d2)
template<typename _IntType >
bool std::operator!= (const std::negative_binomial_distribution< _IntType > &__d1, const std::negative_binomial_distribution< _IntType > &__d2)
template<typename _CharT , typename _Traits >
std::basic_ostream< _CharT,
_Traits > & 
std::operator<< (std::basic_ostream< _CharT, _Traits > &__os, const std::bernoulli_distribution &__x)
template<typename _IntType , typename _CharT , typename _Traits >
std::basic_ostream< _CharT,
_Traits > & 
std::operator<< (std::basic_ostream< _CharT, _Traits > &__os, const std::geometric_distribution< _IntType > &__x)
bool std::operator== (const std::bernoulli_distribution &__d1, const std::bernoulli_distribution &__d2)
template<typename _IntType >
bool std::operator== (const std::geometric_distribution< _IntType > &__d1, const std::geometric_distribution< _IntType > &__d2)
template<typename _CharT , typename _Traits >
std::basic_istream< _CharT,
_Traits > & 
std::operator>> (std::basic_istream< _CharT, _Traits > &__is, std::bernoulli_distribution &__x)
template<typename _IntType , typename _CharT , typename _Traits >
std::basic_istream< _CharT,
_Traits > & 
std::operator>> (std::basic_istream< _CharT, _Traits > &__is, std::geometric_distribution< _IntType > &__x)

Detailed Description


Function Documentation

bool std::operator!= ( const std::bernoulli_distribution __d1,
const std::bernoulli_distribution __d2 
)
inline

Return true if two Bernoulli distributions have different parameters.

Definition at line 3354 of file random.h.

template<typename _IntType >
bool std::operator!= ( const std::binomial_distribution< _IntType > &  __d1,
const std::binomial_distribution< _IntType > &  __d2 
)
inline

Return true if two binomial distributions are different.

Definition at line 3590 of file random.h.

template<typename _IntType >
bool std::operator!= ( const std::geometric_distribution< _IntType > &  __d1,
const std::geometric_distribution< _IntType > &  __d2 
)
inline

Return true if two geometric distributions have different parameters.

Definition at line 3731 of file random.h.

template<typename _IntType >
bool std::operator!= ( const std::negative_binomial_distribution< _IntType > &  __d1,
const std::negative_binomial_distribution< _IntType > &  __d2 
)
inline

Return true if two negative binomial distributions are different.

Definition at line 3936 of file random.h.

template<typename _CharT , typename _Traits >
std::basic_ostream< _CharT, _Traits > & std::operator<< ( std::basic_ostream< _CharT, _Traits > &  __os,
const std::bernoulli_distribution __x 
)

Inserts a bernoulli_distribution random number distribution __x into the output stream __os.

Parameters:
__osAn output stream.
__xA bernoulli_distribution random number distribution.
Returns:
The output stream with the state of __x inserted or in an error state.

Definition at line 1015 of file random.tcc.

References std::ios_base::flags(), std::left(), and std::scientific().

template<typename _IntType , typename _CharT , typename _Traits >
std::basic_ostream< _CharT, _Traits > & std::operator<< ( std::basic_ostream< _CharT, _Traits > &  __os,
const std::geometric_distribution< _IntType > &  __x 
)

Inserts a geometric_distribution random number distribution __x into the output stream __os.

Parameters:
__osAn output stream.
__xA geometric_distribution random number distribution.
Returns:
The output stream with the state of __x inserted or in an error state.

Definition at line 1065 of file random.tcc.

References std::ios_base::flags(), std::left(), and std::scientific().

bool std::operator== ( const std::bernoulli_distribution __d1,
const std::bernoulli_distribution __d2 
)
inline

Return true if two Bernoulli distributions have the same parameters.

Definition at line 3345 of file random.h.

References std::bernoulli_distribution::param().

template<typename _IntType >
bool std::operator== ( const std::geometric_distribution< _IntType > &  __d1,
const std::geometric_distribution< _IntType > &  __d2 
)
inline

Return true if two geometric distributions have the same parameters.

Definition at line 3721 of file random.h.

References std::geometric_distribution< _IntType >::param().

template<typename _CharT , typename _Traits >
std::basic_istream<_CharT, _Traits>& std::operator>> ( std::basic_istream< _CharT, _Traits > &  __is,
std::bernoulli_distribution __x 
)

Extracts a bernoulli_distribution random number distribution __x from the input stream __is.

Parameters:
__isAn input stream.
__xA bernoulli_distribution random number generator engine.
Returns:
The input stream with __x extracted or in an error state.

Definition at line 3384 of file random.h.

References std::bernoulli_distribution::param().

template<typename _IntType , typename _CharT , typename _Traits >
std::basic_istream< _CharT, _Traits > & std::operator>> ( std::basic_istream< _CharT, _Traits > &  __is,
std::geometric_distribution< _IntType > &  __x 
)

Extracts a geometric_distribution random number distribution __x from the input stream __is.

Parameters:
__isAn input stream.
__xA geometric_distribution random number generator engine.
Returns:
The input stream with __x extracted or in an error state.

Definition at line 1089 of file random.tcc.

References std::ios_base::flags(), std::geometric_distribution< _IntType >::param(), and std::skipws().