![]() |
Home | Libraries | People | FAQ | More |
boost::random::hyperexponential_distribution::param_type
// In header: <boost/random/hyperexponential_distribution.hpp> class param_type { public: // types typedef hyperexponential_distribution ; // construct/copy/destruct (); template<typename ProbIterT, typename RateIterT> (, , , ); template<typename ProbRangeT, typename RateRangeT> (, , = ); template<typename RateIterT> (, , = ); template<typename RateRangeT> (); (, ); (); // public member functions () ; () ; // friend functions template<typename CharT, typename Traits> (, param_type &); template<typename CharT, typename Traits> (, param_type &); (param_type &, param_type &); (param_type &, param_type &); };
The parameters of a hyperexponential distribution.
Stores the phase probability vector and the rate vector of the hyperexponential distribution.
Marco Guazzone (marco.guazzone@gmail.com)
param_type
public
construct/copy/destruct();
Constructs a
with the default parameters of the distribution. param_type
template<typename ProbIterT, typename RateIterT> ( prob_first, prob_last, rate_first, rate_last);
Constructs a
from the phase probability vector and rate vector parameters of the distribution.param_type
The phase probability vector parameter is given by the range defined by [prob_first, prob_last) iterator pair, and the rate vector parameter is given by the range defined by [rate_first, rate_last) iterator pair.
References:
ISO, ISO/IEC 14882-2014: Information technology - Programming languages - C++, 2014
Parameters: |
|
||||||||
Template Parameters: |
|
template<typename ProbRangeT, typename RateRangeT> ( prob_range, rate_range, = );
Constructs a
from the phase probability vector and rate vector parameters of the distribution.param_type
The phase probability vector parameter is given by the range defined by prob_range, and the rate vector parameter is given by the range defined by rate_range.
![]() |
Note |
---|---|
The final |
Parameters: |
|
||||
Template Parameters: |
template<typename RateIterT> ( rate_first, rate_last, = );
Constructs a
from the rate vector parameter of the distribution and with equal phase probabilities.param_type
The rate vector parameter is given by the range defined by [rate_first, rate_last) iterator pair, and the phase probability vector parameter is set to the equal phase probabilities (i.e., to a vector of the same length of the rate vector and with each element set to
).
![]() |
Note |
---|---|
The final |
References:
ISO, ISO/IEC 14882-2014: Information technology - Programming languages - C++, 2014
Parameters: |
|
||||
Template Parameters: |
|
template<typename RateRangeT> ( rate_range);
Constructs a
from the "rates" parameters of the distribution and with equal phase probabilities.param_type
The rate vector parameter is given by the range defined by rate_range, and the phase probability vector parameter is set to the equal phase probabilities (i.e., to a vector of the same length of the rate vector and with each element set to
).
Parameters: |
|
||
Template Parameters: |
|
( l1, l2);
Constructs a
from the phase probability vector and rate vector parameters of the distribution.param_type
The phase probability vector parameter is given by the brace-init-list (ISO,2014,sec. 8.5.4 [dcl.init.list]) defined by l1, and the rate vector parameter is given by the brace-init-list (ISO,2014,sec. 8.5.4 [dcl.init.list]) defined by l2.
References:
ISO, ISO/IEC 14882-2014: Information technology - Programming languages - C++, 2014
Parameters: |
|
( l1);
Constructs a
from the rate vector parameter of the distribution and with equal phase probabilities.param_type
The rate vector parameter is given by the brace-init-list (ISO,2014,sec. 8.5.4 [dcl.init.list]) defined by l1, and the phase probability vector parameter is set to the equal phase probabilities (i.e., to a vector of the same length of the rate vector and with each element set to
).
References:
ISO, ISO/IEC 14882-2014: Information technology - Programming languages - C++, 2014
Parameters: |
|
param_type
public member functions() ;
Gets the phase probability vector parameter of the distribtuion.
![]() |
Note |
---|---|
The returned probabilities are the normalized version of the ones passed at construction time. |
Returns: |
The phase probability vector parameter of the distribution. |
() ;
Gets the rate vector parameter of the distribtuion.
Returns: |
The rate vector parameter of the distribution. |
param_type
friend functionstemplate<typename CharT, typename Traits> ( os, param_type & param);
Writes a
to a param_type
std::ostream
.
template<typename CharT, typename Traits> ( is, param_type & param);
Reads a
from a param_type
std::istream
.
(param_type & lhs, param_type & rhs);
Returns true if the two sets of parameters are the same.
(param_type & lhs, param_type & rhs);
Returns true if the two sets of parameters are the different.