stdgamma_distribution(3)
std::gamma_distribution - std::gamma_distribution
Synopsis
Defined in header <random>
template< class RealType = double > (since C++11)
class gamma_distribution;Produces random positive floating-point values x, distributed according to probability density function:
(\mathsf{p}(x\mid\alpha,\beta) = \frac{e^{-x/\beta} }{\beta^\alpha\cdot\Gamma(\alpha)}\cdot x^{\alpha-1} )P(x|α,β) = Template parameters
RealType - The result type generated by the generator. The effect is undefined if this is not one of float, double, or long double.
Member types
Member type Definition result_type RealType param_type the type of the parameter set, see RandomNumberDistribution.
Member functions
Generation
Characteristics
Non-member functions
Example
This section is incomplete Reason: no example
External links
Weisstein,Eric_W."Gamma_Distribution." From MathWorld–A Wolfram Web Resource.