#include <bernoulli_distribution.hpp>
Public Types | |
typedef bernoulli_distribution | distribution_type |
Public Member Functions | |
param_type (RealType p_arg=RealType(0.5)) | |
Constructs the parameters of the distribution. More... | |
RealType | p () const |
Returns the p parameter of the distribution. More... | |
BOOST_RANDOM_DETAIL_OSTREAM_OPERATOR (os, param_type, parm) | |
Writes the parameters to a std::ostream. More... | |
BOOST_RANDOM_DETAIL_ISTREAM_OPERATOR (is, param_type, parm) | |
Reads the parameters from a std::istream. More... | |
BOOST_RANDOM_DETAIL_EQUALITY_OPERATOR (param_type, lhs, rhs) | |
Returns true if the two sets of parameters are equal. More... | |
typedef bernoulli_distribution boost::random::bernoulli_distribution< RealType >::param_type::distribution_type |
|
inlineexplicit |
Constructs the parameters of the distribution.
Requires: 0 <= p <= 1
References BOOST_ASSERT.
Referenced by boost::random::bernoulli_distribution< RealType >::param().
|
inline |
Returns true if the two sets of parameters are equal.
|
inline |
Reads the parameters from a std::istream.
|
inline |
Writes the parameters to a std::ostream.
|
inline |
Returns the p parameter of the distribution.
Referenced by boost::random::bernoulli_distribution< RealType >::param().