Generates samples from a multivariate gaussian distribution. More...
#include <multivariate_gaussian.h>
Public Member Functions | |
template<typename Derived1 , typename Derived2 > | |
MultivariateGaussian (const Eigen::MatrixBase< Derived1 > &mean, const Eigen::MatrixBase< Derived2 > &covariance) | |
template<typename Derived > | |
void | sample (Eigen::MatrixBase< Derived > &output, bool use_covariance=true) |
generates random values using a normal distribution. More... | |
Private Attributes | |
Eigen::MatrixXd | covariance_ |
Eigen::MatrixXd | covariance_cholesky_ |
std::shared_ptr< boost::variate_generator< boost::mt19937, boost::normal_distribution<> > > | gaussian_ |
Eigen::VectorXd | mean_ |
boost::normal_distribution | normal_dist_ |
boost::mt19937 | rng_ |
int | size_ |
Generates samples from a multivariate gaussian distribution.
Definition at line 60 of file multivariate_gaussian.h.
void stomp_moveit::utils::MultivariateGaussian::sample | ( | Eigen::MatrixBase< Derived > & | output, |
bool | use_covariance = true |
||
) |
generates random values using a normal distribution.
output | The random values |
use_covariance | True to apply the covariance matrix onto the random values, false otherwise |
Definition at line 101 of file multivariate_gaussian.h.
|
private |
Covariance of the gaussian distribution
Definition at line 76 of file multivariate_gaussian.h.
|
private |
Cholesky decomposition (LL^T) of the covariance
Definition at line 77 of file multivariate_gaussian.h.
|
private |
Mean of the gaussian distribution
Definition at line 75 of file multivariate_gaussian.h.