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

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

#include <Multinomial.h>

Inheritance diagram for Eigen::Rand::DirichletGen< _Scalar, Dim >:
Collaboration diagram for Eigen::Rand::DirichletGen< _Scalar, Dim >:

Public Member Functions

template<typename AlphaTy >
 DirichletGen (const MatrixBase< AlphaTy > &_alpha)
 Construct a new Dirichlet generator. More...
 
 DirichletGen (const DirichletGen &)=default
 
 DirichletGen (DirichletGen &&)=default
 
Index dims () const
 
template<typename Urng >
Matrix< _Scalar, Dim, -1 > generate (Urng &&urng, Index samples)
 
template<typename Urng >
Matrix< _Scalar, Dim, 1 > generate (Urng &&urng)
 
- Public Member Functions inherited from Eigen::Rand::MvVecGenBase< DerivedGen, _Scalar, Dim >
Index dims () const
 returns the dimensions of vectors to be generated
 
template<typename Urng >
Matrix< _Scalar, Dim, -1 > generate (Urng &&urng, Index samples)
 generates multiple samples at once More...
 
template<typename Urng >
Matrix< _Scalar, Dim, 1 > generate (Urng &&urng)
 generates one sample More...
 

Detailed Description

template<typename _Scalar, Index Dim = -1>
class Eigen::Rand::DirichletGen< _Scalar, Dim >

Generator of reals on a Dirichlet distribution.

Template Parameters
_Scalar
Dimnumber of dimensions, or Eigen::Dynamic

Constructor & Destructor Documentation

◆ DirichletGen()

template<typename _Scalar , Index Dim = -1>
template<typename AlphaTy >
Eigen::Rand::DirichletGen< _Scalar, Dim >::DirichletGen ( const MatrixBase< AlphaTy > &  _alpha)
inline

Construct a new Dirichlet generator.

Template Parameters
AlphaTy
Parameters
_alphathe concentration parameters with shape (Dim, 1) matrix or vector

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