#include <negative_binomial_distribution.hpp>
|
| param_type (IntType k_arg=1, RealType p_arg=RealType(0.5)) |
| Construct a param_type object. More...
|
|
IntType | k () const |
| Returns the k parameter of the distribution. More...
|
|
RealType | p () const |
| Returns the p parameter of the distribution. More...
|
|
|
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...
|
|
template<class IntType = int, class RealType = double>
template<class IntType = int, class RealType = double>
Construct a param_type object.
k
and p
are the parameters of the distribution.
Requires: k >=0 && 0 <= p <= 1
template<class IntType = int, class RealType = double>
template<class IntType = int, class RealType = double>
template<class IntType = int, class RealType = double>
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>
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: