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

#include <poisson_distribution.hpp>

Public Types

typedef poisson_distribution distribution_type
 

Public Member Functions

 param_type (RealType mean_arg=RealType(1))
 Construct a param_type object with the parameter "mean". More...
 
RealType mean () const
 

Friends

template<class CharT , class Traits >
std::basic_ostream< CharT,
Traits > & 
operator<< (std::basic_ostream< CharT, Traits > &os, const param_type &parm)
 Writes the parameters of the distribution to a std::ostream. More...
 
template<class CharT , class Traits >
std::basic_istream< CharT,
Traits > & 
operator>> (std::basic_istream< CharT, Traits > &is, param_type &parm)
 Reads the parameters of the distribution from a std::istream. More...
 
bool operator== (const param_type &lhs, const param_type &rhs)
 Returns true if the parameters have the same values. More...
 
bool operator!= (const param_type &lhs, const param_type &rhs)
 Returns true if the parameters have different values. More...
 

Member Typedef Documentation

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

Constructor & Destructor Documentation

template<class IntType = int, class RealType = double>
boost::random::poisson_distribution< IntType, RealType >::param_type::param_type ( RealType  mean_arg = RealType(1))
inlineexplicit

Construct a param_type object with the parameter "mean".

Requires: mean > 0

References BOOST_ASSERT.

Member Function Documentation

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

Friends And Related Function Documentation

template<class IntType = int, class RealType = double>
bool operator!= ( const param_type lhs,
const param_type rhs 
)
friend

Returns true if the parameters have different values.

template<class IntType = int, class RealType = double>
template<class CharT , class Traits >
std::basic_ostream<CharT, Traits>& operator<< ( std::basic_ostream< CharT, Traits > &  os,
const param_type parm 
)
friend

Writes the parameters of the distribution to a std::ostream.

template<class IntType = int, class RealType = double>
bool operator== ( const param_type lhs,
const param_type rhs 
)
friend

Returns true if the parameters have the same values.

template<class IntType = int, class RealType = double>
template<class CharT , class Traits >
std::basic_istream<CharT, Traits>& operator>> ( std::basic_istream< CharT, Traits > &  is,
param_type parm 
)
friend

Reads the parameters of the distribution from a std::istream.


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