std::piecewise_linear_distribution

Defined in header <random> template< class RealType = double > class piecewise_linear_distribution; (since C++11) std::piecewise_linear_distribution produces random floating-point numbers, which are distributed according to a linear probability density function within each of the several subintervals [bi, bi+1). The distribution is such that the probability density at each interval boundary is exactly the predefined value pi. The probability density for any b. i≤x&l

std::piecewise_construct_t

Defined in header <utility> struct piecewise_construct_t { }; (since C++11) std::piecewise_construct_t is an empty struct tag type used to disambiguate between different functions that take two tuple arguments. The overloads that do not use std::piecewise_construct_t assume that each tuple argument becomes the element of a pair. The overloads that use std::piecewise_construct_t assume that each tuple argument is used to construct, piecewise, a new object of specified type,

std::piecewise_construct

constexpr piecewise_construct_t piecewise_construct = std::piecewise_construct_t(); (since C++11) The constant std::piecewise_construct is an instance of an empty struct tag type std::piecewise_construct_t. Example #include <iostream> #include <utility> #include <tuple> struct Foo { Foo(std::tuple<int, float>) { std::cout << "Constructed a Foo from a tuple\n"; } Foo(int, float) { std::cout << "Constructed a

std::piecewise_constant_distribution::reset

void reset(); (since C++11) Resets the internal state of the distribution object. After a call to this function, the next call to operator() on the distribution object will not be dependent on previous calls to operator(). Parameters (none). Return value (none). Complexity Constant.

std::piecewise_constant_distribution::piecewise_constant_distribution

piecewise_constant_distribution(); (1) (since C++11) template< class InputIt1, class InputIt2 > piecewise_constant_distribution( InputIt1 first_i, InputIt1 last_i, InputIt2 first_w ); (2) (since C++11) template< class UnaryOperation > piecewise_constant_distribution( std::initializer_list<RealType> bl, UnaryOperation fw ); (3) (since C++11) template< class UnaryOperation > piecewise_con

std::piecewise_constant_distribution::param

param_type param() const; (1) (since C++11) void param( const param_type& params ); (2) (since C++11) Manages the associated distribution parameter set. 1) Returns the associated parameter set. 2) Sets the associated parameter set to params. Parameters params - new contents of the associated parameter set Return value 1) The associated parameter set. 2) (none). Complexity Constant.

std::piecewise_constant_distribution::min

result_type min() const; (since C++11) Returns the minimum value potentially generated by the distribution. Parameters (none). Return value The minimum value potentially generated by the distribution. Complexity Constant. See also max returns the maximum potentially generated value (public member function)

std::piecewise_constant_distribution::max

result_type max() const; (since C++11) Returns the maximum value potentially generated by the distribution. Parameters (none). Return value The maximum value potentially generated by the distribution. Complexity Constant. See also min returns the minimum potentially generated value (public member function)

std::piecewise_constant_distribution::intervals

std::vector<RealType> intervals() const; (1) (since C++11) std::vector<RealType> densities() const; (2) (since C++11) Returns the distribution parameters. 1) Returns the list of boundaries of the intervals. 2) Returns the list of probability densities of the intervals. Parameters (none). Return value The distribution parameters: 1) The list of boundaries of the intervals. 2) The list of probability densities of the intervals. Complexity Constant.

std::piecewise_constant_distribution

Defined in header <random> template< class RealType = double > class piecewise_constant_distribution; (since C++11) std::piecewise_constant_distribution produces random floating-point numbers, which are uniformly distributed within each of the several subintervals [bi, bi+1), each with its own weight wi. The set of interval boundaries and the set of weights are the parameters of this distribution. The probability density for any b. i≤x<bi+1 is wk S (bi+1 - bi)