|
Infinity Engine v0.6.20
C++ API Documentation
|
Parameter set for the distribution. More...
#include <PRNGDistribution.hpp>
Public Types | |
| using | distribution_type = GammaDistribution< RealType > |
Public Member Functions | |
| param_type () | |
| Default constructor. Creates parameters for Gamma(1, 1). | |
| param_type (RealType alpha, RealType beta=RealType(1)) | |
| Constructs parameters. | |
| RealType | alpha () const |
| Gets the shape parameter. | |
| RealType | beta () const |
| Gets the scale parameter. | |
Friends | |
| bool | operator== (const param_type &lhs, const param_type &rhs) |
| bool | operator!= (const param_type &lhs, const param_type &rhs) |
Parameter set for the distribution.
Stores the shape (alpha) and scale (beta) parameters of the gamma distribution.
| using Infinity::Engine::GammaDistribution< RealType >::param_type::distribution_type = GammaDistribution<RealType> |
|
inline |
Default constructor. Creates parameters for Gamma(1, 1).
|
inlineexplicit |
Constructs parameters.
| alpha | Shape parameter (must be > 0) |
| beta | Scale parameter (must be > 0), defaults to 1 |
|
inline |
Gets the shape parameter.
|
inline |
Gets the scale parameter.
|
friend |
|
friend |