|
template<typename MeanTy , typename LTTy > |
| MvNormalGen (const MatrixBase< MeanTy > &_mean, const MatrixBase< LTTy > &_lt, detail::LowerTriangular) |
| Construct a new multivariate normal generator from lower triangular matrix of decomposed covariance. More...
|
|
template<typename MeanTy , typename CovTy > |
| MvNormalGen (const MatrixBase< MeanTy > &_mean, const MatrixBase< CovTy > &_cov, detail::FullMatrix={}) |
| Construct a new multivariate normal generator from covariance matrix. More...
|
|
| MvNormalGen (const MvNormalGen &)=default |
|
| MvNormalGen (MvNormalGen &&)=default |
|
MvNormalGen & | operator= (const MvNormalGen &)=default |
|
MvNormalGen & | operator= (MvNormalGen &&)=default |
|
Index | dims () const |
|
template<typename Urng > |
auto | generate (Urng &&urng, Index samples) -> decltype((lt *stdnorm.template generate< Matrix< _Scalar, Dim, -1 > >(mean.rows(), samples, std::forward< Urng >(urng))).colwise()+mean) |
|
template<typename Urng > |
auto | generate (Urng &&urng) -> decltype((lt *stdnorm.template generate< Matrix< _Scalar, Dim, 1 > >(mean.rows(), 1, std::forward< Urng >(urng))).colwise()+mean) |
|
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, Index Dim = -1>
class Eigen::Rand::MvNormalGen< _Scalar, Dim >
Generator of real vectors on a multivariate normal distribution.
- Template Parameters
-
_Scalar | Numeric type |
Dim | number of dimensions, or Eigen::Dynamic |