|
| template<typename WeightTy > |
| | MultinomialGen (_Scalar _trials, const MatrixBase< WeightTy > &_weights) |
| | Construct a new multinomial generator. More...
|
| |
|
| MultinomialGen (const MultinomialGen &)=default |
| |
|
| MultinomialGen (MultinomialGen &&)=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< MultinomialGen< int32_t, -1 >, int32_t, -1 > |
|
Index | dims () const |
| | returns the dimensions of vectors to be generated
|
| |
| Matrix< int32_t, Dim, -1 > | generate (Urng &&urng, Index samples) |
| | generates multiple samples at once More...
|
| |
| Matrix< int32_t, Dim, 1 > | generate (Urng &&urng) |
| | generates one sample More...
|
| |
template<typename _Scalar = int32_t, Index Dim = -1>
class Eigen::Rand::MultinomialGen< _Scalar, Dim >
Generator of real vectors on a multinomial distribution.
- Template Parameters
-
| _Scalar | |
| Dim | number of dimensions, or Eigen::Dynamic |