|
template<typename WeightTy > |
| MultinomialGen (_Scalar _trials, const MatrixBase< WeightTy > &_weights) |
| Construct a new multinomial generator. More...
|
|
| MultinomialGen (const MultinomialGen &)=default |
|
| MultinomialGen (MultinomialGen &&)=default |
|
MultinomialGen & | operator= (const MultinomialGen &)=default |
|
MultinomialGen & | operator= (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< 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...
|
|
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 |