Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::random::geometric_distribution< IntType, RealType >::param_type Class Reference

#include <geometric_distribution.hpp>

Public Types

typedef geometric_distribution distribution_type
 

Public Member Functions

 param_type (RealType p_arg=RealType(0.5))
 Constructs the parameters with p. 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...
 

Member Typedef Documentation

template<class IntType = int, class RealType = double>
typedef geometric_distribution boost::random::geometric_distribution< IntType, RealType >::param_type::distribution_type

Constructor & Destructor Documentation

template<class IntType = int, class RealType = double>
boost::random::geometric_distribution< IntType, RealType >::param_type::param_type ( RealType  p_arg = RealType(0.5))
inlineexplicit

Constructs the parameters with p.

References BOOST_ASSERT.

Referenced by boost::random::geometric_distribution< IntType, RealType >::param().

Member Function Documentation

template<class IntType = int, class RealType = double>
boost::random::geometric_distribution< IntType, RealType >::param_type::BOOST_RANDOM_DETAIL_EQUALITY_OPERATOR ( param_type  ,
lhs  ,
rhs   
)
inline

Returns true if the two sets of parameters are equal.

template<class IntType = int, class RealType = double>
boost::random::geometric_distribution< IntType, RealType >::param_type::BOOST_RANDOM_DETAIL_ISTREAM_OPERATOR ( is  ,
param_type  ,
parm   
)
inline

Reads the parameters from a std::istream.

References boost::regex_constants::failbit.

template<class IntType = int, class RealType = double>
boost::random::geometric_distribution< IntType, RealType >::param_type::BOOST_RANDOM_DETAIL_OSTREAM_OPERATOR ( os  ,
param_type  ,
parm   
)
inline

Writes the parameters to a std::ostream.

template<class IntType = int, class RealType = double>
RealType boost::random::geometric_distribution< IntType, RealType >::param_type::p ( ) const
inline

Returns the p parameter of the distribution.

Referenced by boost::random::geometric_distribution< IntType, RealType >::param().


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