std::negative_binomial_distribution::negative_binomial_distribution

explicit negative_binomial_distribution( IntType k = 1, double p = 0.5 ); (1) (since C++11) explicit negative_binomial_distribution( const param_type& params ); (2) (since C++11) Constructs a new distribution object. The first version uses k and p as the distribution parameters, the second version uses params as the distribution parameters. Parameters k - the k distribution parameter (number of trial failures) p - the p distribution parameter (probability of a tr

std::negative_binomial_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::negative_binomial_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::negation

Defined in header <type_traits> template<class B> struct negation; (1) (since C++17) Forms the logical negation of the type trait B. The type std::negation<B> is a UnaryTypeTrait with a BaseCharacteristic of std::integral_constant<bool, !B::value>. Template parameters B - any type such that B::value is convertible to bool Helper variable template template<class B> constexpr bool negation_v = negation<B>::value; (since C++17

std::negative_binomial_distribution::p

double p() const; (1) (since C++11) IntType k() const; (2) (since C++11) Returns the parameters the distribution was constructed with. 1) Returns the p distribution parameter. It defines the probability of a trial generating true. The default value is 0.5. 2) Returns the k distribution parameter. It defines the number of desired outcomes. The default value is 1. Parameters (none). Return value 1) The p distribution parameter. 2) The k distribution parameter. See also

std::negative_binomial_distribution

Defined in header <random> template< class IntType = int > class negative_binomial_distribution; (since C++11) Produces random non-negative integer values i, distributed according to discrete probability function: P(i|k,p) = ⎛⎜⎝k + i − 1i⎞⎟⎠ · pk · (1 − p)i The value represents the number of failures in a series of independent yes/no trials (each succeeds with probability p), before exactly k successes occur. std::negative_binomial_distribution satisfies RandomNu

std::negate

Defined in header <functional> template< class T > struct negate; (until C++14) template< class T = void > struct negate; (since C++14) Function object for performing negation. Effectively calls operator- on an instance of type T. Specializations The standard library provides a specialization of std::negate when T is not specified, which leaves the parameter types and return type to be deduced. negate<void> function object implementing -x ded

std::negate&lt;void&gt;

Defined in header <functional> template<> class negate<void>; (since C++14) std::negate<> is a specialization of std::negate with parameter and return type deduced. Member types Member type Definition is_transparent /* unspecified */ Member functions operator() returns its negated argument (public member function) std::negate<>::operator() template< class T > constexpr auto operator()( T&& arg ) const ->

std::nan

Defined in header <cmath> float nanf( const char* arg ); (since C++11) double nan( const char* arg ); (since C++11) long double nanl( const char* arg ); (since C++11) Converts the implementation-defined character string arg into the corresponding quiet NaN value, as if by calling std::strtod, std::strtof, or std::strtold, respectively, as follows: The call std::nan("string") is equivalent to the call std::strtod("NAN(string)", (char**)NULL);. The call std::nan("

std::nearbyint

Defined in header <cmath> float nearbyint( float arg ); (1) (since C++11) double nearbyint( double arg ); (2) (since C++11) long double nearbyint( long double arg ); (3) (since C++11) double nearbyint( Integral arg ); (4) (since C++11) 1-3) Rounds the floating-point argument arg to an integer value in floating-point format, using the current rounding mode. 4) A set of overloads or a function template accepting an argument of any integral