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_linear_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_linear_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_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::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::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::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::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::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::perror

Defined in header <cstdio> void perror( const char *s ); Prints a textual description of the error code currently stored in the system variable errno to stderr. The description is formed by concatenating the following components: the contents of the null-terminated byte string pointed to by s (unless s is a null pointer) ": " implementation-defined error message describing the error code stored in errno. This message is identical to the output of std::strerror(errno).