Public Member Functions | Private Attributes
stomp_moveit::utils::MultivariateGaussian Class Reference

Generates samples from a multivariate gaussian distribution. More...

#include <multivariate_gaussian.h>

List of all members.

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.

Private Attributes

Eigen::MatrixXd covariance_
Eigen::MatrixXd covariance_cholesky_
boost::shared_ptr
< boost::variate_generator
< boost::mt19937,
boost::normal_distribution<> > > 
gaussian_
Eigen::VectorXd mean_
boost::normal_distribution normal_dist_
boost::mt19937 rng_
int size_

Detailed Description

Generates samples from a multivariate gaussian distribution.

Definition at line 60 of file multivariate_gaussian.h.


Constructor & Destructor Documentation

template<typename Derived1 , typename Derived2 >
stomp_moveit::utils::MultivariateGaussian::MultivariateGaussian ( const Eigen::MatrixBase< Derived1 > &  mean,
const Eigen::MatrixBase< Derived2 > &  covariance 
)

Definition at line 88 of file multivariate_gaussian.h.


Member Function Documentation

template<typename Derived >
void stomp_moveit::utils::MultivariateGaussian::sample ( Eigen::MatrixBase< Derived > &  output,
bool  use_covariance = true 
)

generates random values using a normal distribution.

Parameters:
outputThe random values
use_covarianceTrue to apply the covariance matrix onto the random values, false otherwise

Definition at line 101 of file multivariate_gaussian.h.


Member Data Documentation

Covariance of the gaussian distribution

Definition at line 76 of file multivariate_gaussian.h.

Cholesky decomposition (LL^T) of the covariance

Definition at line 77 of file multivariate_gaussian.h.

boost::shared_ptr<boost::variate_generator<boost::mt19937, boost::normal_distribution<> > > stomp_moveit::utils::MultivariateGaussian::gaussian_ [private]

Definition at line 82 of file multivariate_gaussian.h.

Mean of the gaussian distribution

Definition at line 75 of file multivariate_gaussian.h.

boost::normal_distribution stomp_moveit::utils::MultivariateGaussian::normal_dist_ [private]

Definition at line 81 of file multivariate_gaussian.h.

Definition at line 80 of file multivariate_gaussian.h.

Definition at line 79 of file multivariate_gaussian.h.


The documentation for this class was generated from the following file:


stomp_moveit
Author(s): Jorge Nicho
autogenerated on Sat Jun 8 2019 19:24:01