EigenRand  0.5.0
 
Loading...
Searching...
No Matches
Eigen::Rand::GammaGen< _Scalar > Class Template Reference

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

#include <NormalExp.h>

Inheritance diagram for Eigen::Rand::GammaGen< _Scalar >:
Collaboration diagram for Eigen::Rand::GammaGen< _Scalar >:

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
 
GammaGenoperator= (const GammaGen &)=default
 
GammaGenoperator= (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)
 
- Public Member Functions inherited from Eigen::Rand::GenBase< GammaGen< _Scalar >, _Scalar >
const CwiseNullaryOp< internal::scalar_rng_adaptor< GammaGen< _Scalar > &, _Scalar, Urng >, const Derived > generate (Index rows, Index cols, Urng &&urng)
 generate random values from its distribution More...
 
const CwiseNullaryOp< internal::scalar_rng_adaptor< GammaGen< _Scalar > &, _Scalar, Urng >, const Derived > generateLike (const Derived &o, Urng &&urng)
 generate random values from its distribution More...
 

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: