EigenRand
0.5.0
|
Generator of reals on a Dirichlet distribution. More...
#include <Multinomial.h>
Public Member Functions | |
template<typename AlphaTy > | |
DirichletGen (const MatrixBase< AlphaTy > &_alpha) | |
Construct a new Dirichlet generator. | |
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) |
![]() | |
DerivedGen & | derived () |
Return a reference to the derived type. | |
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 | |
template<typename Urng > | |
Matrix< _Scalar, Dim, 1 > | generate (Urng &&urng) |
generates one sample | |
Generator of reals on a Dirichlet distribution.
_Scalar | |
Dim | number of dimensions, or Eigen::Dynamic |
|
inline |
Construct a new Dirichlet generator.
AlphaTy |
_alpha | the concentration parameters with shape (Dim, 1) matrix or vector |