EigenRand  0.3.0
Eigen::Rand::GammaGen< _Scalar > Class Template Reference

Generator of reals on a gamma distribution. More...

#include <NormalExp.h>

Public Types

using Scalar = _Scalar
 

Public Member Functions

 GammaGen (_Scalar _alpha=1, _Scalar _beta=1)
 Construct a new gamma generator. More...
 
 GammaGen (const GammaGen &)=default
 
 GammaGen (GammaGen &&)=default
 
template<typename Rng >
EIGEN_STRONG_INLINE const _Scalar operator() (Rng &&rng)
 
template<typename Packet , typename Rng >
EIGEN_STRONG_INLINE const Packet packetOp (Rng &&rng)
 

Friends

template<typename _Ty >
class NegativeBinomialGen
 

Detailed Description

template<typename _Scalar>
class Eigen::Rand::GammaGen< _Scalar >

Generator of reals on a gamma distribution.

Template Parameters
_Scalar

Constructor & Destructor Documentation

◆ GammaGen()

template<typename _Scalar >
Eigen::Rand::GammaGen< _Scalar >::GammaGen ( _Scalar  _alpha = 1,
_Scalar  _beta = 1 
)
inline

Construct a new gamma generator.

Parameters
_alphashape parameter of the distribution
_betascale parameter of the distribution

The documentation for this class was generated from the following file: