Bernoulli Distributions(3)

NAME
Bernoulli Distributions -

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

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

Function Documentation

  template<typename _IntType , typename _CharT , typename _Traits > std::basic_ostream< _CharT, _Traits > & std::operator<< (std::basic_ostream< _CharT, _Traits > & __os, const std::negative_binomial_distribution< _IntType > & __x) [inline]

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

Parameters:
    __os An output stream.
    __x A negative_binomial_distribution random number distribution.

Returns:
    The output stream with the state of __x inserted or in an error state.

Definition at line 918 of file bits/random.tcc.

References 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) [inline]

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

Parameters:
    __os An output stream.
    __x A geometric_distribution random number distribution.

Returns:
    The output stream with the state of __x inserted or in an error state.

Definition at line 855 of file bits/random.tcc.

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

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

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

Parameters:
    __os An output stream.
    __x A bernoulli_distribution random number distribution.

Returns:
    The output stream with the state of __x inserted or in an error state.

Definition at line 805 of file bits/random.tcc.

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

  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 have the same parameters.

Definition at line 3469 of file bits/random.h.

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

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

Return true if two geometric distributions have the same parameters.

Definition at line 3311 of file bits/random.h.

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

  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 2963 of file bits/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::negative_binomial_distribution< _IntType > & __x) [inline]

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

Parameters:
    __is An input stream.
    __x A negative_binomial_distribution random number generator engine.

Returns:
    The input stream with __x extracted or in an error state.

Definition at line 942 of file bits/random.tcc.

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

  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) [inline]

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

Parameters:
    __is An input stream.
    __x A geometric_distribution random number generator engine.

Returns:
    The input stream with __x extracted or in an error state.

Definition at line 879 of file bits/random.tcc.

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

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

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

Parameters:
    __is An input stream.
    __x A bernoulli_distribution random number generator engine.

Returns:
    The input stream with __x extracted or in an error state.

Definition at line 2993 of file bits/random.h.

References std::bernoulli_distribution::param().

Author

Generated automatically by Doxygen for libstdc++ from the source code.