|
| param_type () |
| Constructs a param_type object, representing a distribution that produces values uniformly distributed in the range [0, 1). More...
|
|
template<class IntervalIter , class WeightIter > |
| param_type (IntervalIter intervals_first, IntervalIter intervals_last, WeightIter weight_first) |
| Constructs a param_type object from two iterator ranges containing the interval boundaries and weights at the boundaries. More...
|
|
template<class T , class F > |
| param_type (const std::initializer_list< T > &il, F f) |
| Constructs a param_type object from an initializer_list containing the interval boundaries and a unary function specifying the weights at the boundaries. More...
|
|
template<class IntervalRange , class WeightRange > |
| param_type (const IntervalRange &intervals_arg, const WeightRange &weights_arg) |
| Constructs a param_type object from Boost.Range ranges holding the interval boundaries and the weights at the boundaries. More...
|
|
template<class F > |
| param_type (std::size_t nw, RealType xmin, RealType xmax, F f) |
| Constructs the parameters for a distribution that approximates a function. More...
|
|
std::vector< RealType > | intervals () const |
| Returns a vector containing the interval boundaries. More...
|
|
std::vector< RealType > | densities () const |
| Returns a vector containing the probability densities at all the interval boundaries. 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 RealType = double>
template<class IntervalIter , class WeightIter >
Constructs a param_type
object from two iterator ranges containing the interval boundaries and weights at the boundaries.
If there are fewer than two boundaries, then this is equivalent to the default constructor and the distribution will produce values uniformly distributed in the range [0, 1).
The values of the interval boundaries must be strictly increasing, and the number of weights must be the same as the number of interval boundaries. If there are extra weights, they are ignored.
References boost::multiprecision::backends::i.
template<class RealType = double>
template<class T , class F >
Constructs a param_type
object from an initializer_list containing the interval boundaries and a unary function specifying the weights at the boundaries.
Each weight is determined by calling the function at the corresponding point.
If the initializer_list contains fewer than two elements, this is equivalent to the default constructor and the distribution will produce values uniformly distributed in the range [0, 1).
References boost::end.
template<class RealType = double>
template<class IntervalRange , class WeightRange >
Constructs a param_type
object from Boost.Range ranges holding the interval boundaries and the weights at the boundaries.
If there are fewer than two interval boundaries, this is equivalent to the default constructor and the distribution will produce values uniformly distributed in the range [0, 1). The number of weights must be equal to the number of interval boundaries.
template<class RealType = double>
template<class F >
Constructs the parameters for a distribution that approximates a function.
The range of the distribution is [xmin, xmax). This range is divided into nw equally sized intervals and the weights are found by calling the unary function f on the boundaries of the intervals.
References BOOST_ASSERT, boost::polygon::delta(), and boost::n.