#include <discrete_distribution.hpp>
|
| param_type () |
| Constructs a param_type object, representing a distribution with and . More...
|
|
template<class Iter > |
| param_type (Iter first, Iter last) |
| If first == last , equivalent to the default constructor. More...
|
|
| param_type (const std::initializer_list< WeightType > &wl) |
| If wl.size() == 0, equivalent to the default constructor. More...
|
|
template<class Range > |
| param_type (const Range &range) |
| If the range is empty, equivalent to the default constructor. More...
|
|
template<class Func > |
| param_type (std::size_t nw, double xmin, double xmax, Func fw) |
| If nw is zero, equivalent to the default constructor. More...
|
|
std::vector< WeightType > | probabilities () const |
| Returns a vector containing the probabilities of each possible value 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 the same. More...
|
|
template<class IntType = int, class WeightType = double>
template<class IntType = int, class WeightType = double>
Constructs a param_type
object, representing a distribution with and .
template<class IntType = int, class WeightType = double>
template<class Iter >
If first
== last
, equivalent to the default constructor.
Otherwise, the values of the range represent weights for the possible values of the distribution.
References boost::locale::normalize().
template<class IntType = int, class WeightType = double>
If wl.size() == 0, equivalent to the default constructor.
Otherwise, the values of the initializer_list
represent weights for the possible values of the distribution.
References boost::locale::normalize().
template<class IntType = int, class WeightType = double>
template<class Range >
If the range is empty, equivalent to the default constructor.
Otherwise, the elements of the range represent weights for the possible values of the distribution.
References boost::locale::normalize().
template<class IntType = int, class WeightType = double>
template<class Func >
template<class IntType = int, class WeightType = double>
Returns true if the two sets of parameters are the same.
template<class IntType = int, class WeightType = double>
Reads the parameters from a std::istream
.
template<class IntType = int, class WeightType = double>
Writes the parameters to a std::ostream
.
template<class IntType = int, class WeightType = double>
Returns a vector containing the probabilities of each possible value of the distribution.
The documentation for this class was generated from the following file: