std::geometric_distribution::geometric_distribution

explicit geometric_distribution( double p = 0.5 ); (1) (since C++11) explicit geometric_distribution( const param_type& params ); (2) (since C++11) Constructs new distribution object. The first version uses p as the distribution parameter, the second version uses params as the distribution parameter. Parameters p - the p distribution parameter (probability of a trial generating true) params - the distribution parameter set Notes Requires that 0 < p <

std::geometric_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::generate

Defined in header <algorithm> template< class ForwardIt, class Generator > void generate( ForwardIt first, ForwardIt last, Generator g ); Assigns each element in range [first, last) a value generated by the given function object g. Parameters first, last - the range of elements to generate g - generator function object that will be called. The signature of the function should be equivalent to the following: Ret fun(); The type Ret must be such that

std::generate_n

Defined in header <algorithm> template< class OutputIt, class Size, class Generator > void generate_n( OutputIt first, Size count, Generator g ); (until C++11) template< class OutputIt, class Size, class Generator > OutputIt generate_n( OutputIt first, Size count, Generator g ); (since C++11) Assigns values, generated by given function object g, to the first count elements in the range beginning at first, if count>0. Does nothing otherwise. Parameters

std::generate_canonical

template< class RealType, size_t bits, class Generator > RealType generate_canonical( Generator& g ); (since C++11) Generates a random floating point number in range [0; 1). To generate enough entropy, generate_canonical() will call g() exactly k times, where k = max(1, ⌈ b / log2 R ⌉) and. b = std::min<std::size_t>(bits, std::numeric_limits<RealType>::digits) R = g.max() - g.min() + 1. Parameters g - generator to use to acquire entropy Return va

std::generic_category

Defined in header <system_error> const std::error_category& generic_category(); (since C++11) Obtains a reference to the static error category object for generic errors. The object is required to override the virtual function error_category::name() to return a pointer to the string "generic". It is used to identify error conditions that correspond to the POSIX errno codes. Parameters (none). Return value A reference to the static object of unspecified runtime type

std::gamma_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::gamma_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::gamma_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::gamma_distribution::gamma_distribution

explicit gamma_distribution( RealType alpha = 1.0, RealType beta = 1.0 ); (1) (since C++11) explicit gamma_distribution( const param_type& params ); (2) (since C++11) Constructs a new distribution object. The first version uses alpha and beta as the distribution parameters, the second version uses params as the distribution parameters. Parameters alpha - the α distribution parameter (shape) beta - the β distribution parameter (scale) params - the distributi