Multivariate normal distribution parameter set class. More...
#include <multivariate_normal_distribution.hpp>
Public Types | |
using | matrix_type = Matrix |
The covariance matrix from Vector. More... | |
using | scalar_type = typename Vector::Scalar |
The scalar type. More... | |
using | vector_type = Vector |
The vector type. More... | |
Public Member Functions | |
MultivariateNormalDistributionParam ()=default | |
Constructs a parameter set instance. More... | |
MultivariateNormalDistributionParam (matrix_type covariance) | |
Constructs a parameter set instance. More... | |
MultivariateNormalDistributionParam (vector_type mean, matrix_type covariance) | |
Constructs a parameter set instance. More... | |
bool | operator!= (const MultivariateNormalDistributionParam &other) const |
Compares this object with other parameter set object. More... | |
template<class Generator > | |
auto | operator() (std::normal_distribution< scalar_type > &distribution, Generator &generator) const |
Generates a new random object from the distribution. More... | |
bool | operator== (const MultivariateNormalDistributionParam &other) const |
Compares this object with other parameter set object. More... | |
Static Private Member Functions | |
static matrix_type | make_transform (matrix_type covariance) |
Private Attributes | |
vector_type | mean_ {vector_type::Zero()} |
matrix_type | transform_ {make_transform(vector_type::Ones().asDiagonal())} |
Multivariate normal distribution parameter set class.
Definition at line 32 of file multivariate_normal_distribution.hpp.
using beluga::MultivariateNormalDistributionParam< Vector, Matrix >::matrix_type = Matrix |
The covariance matrix from Vector.
Definition at line 46 of file multivariate_normal_distribution.hpp.
using beluga::MultivariateNormalDistributionParam< Vector, Matrix >::scalar_type = typename Vector::Scalar |
The scalar type.
Definition at line 40 of file multivariate_normal_distribution.hpp.
using beluga::MultivariateNormalDistributionParam< Vector, Matrix >::vector_type = Vector |
The vector type.
Definition at line 43 of file multivariate_normal_distribution.hpp.
|
default |
Constructs a parameter set instance.
|
inlineexplicit |
Constructs a parameter set instance.
covariance | Real symmetric matrix that represents the covariance of the random variable. |
std::runtime_error | If the provided covariance is invalid. |
Definition at line 57 of file multivariate_normal_distribution.hpp.
|
inline |
Constructs a parameter set instance.
mean | A vector that represents the mean value of the random variable. |
covariance | Real symmetric matrix that represents the covariance of the random variable. |
std::runtime_error | If the provided covariance is invalid. |
Definition at line 67 of file multivariate_normal_distribution.hpp.
|
inlinestaticprivate |
Definition at line 108 of file multivariate_normal_distribution.hpp.
|
inline |
Compares this object with other parameter set object.
other | Parameter set object to compare against. |
Definition at line 84 of file multivariate_normal_distribution.hpp.
|
inline |
Generates a new random object from the distribution.
Generator | The generator type that must meet the requirements of UniformRandomBitGenerator. |
distribution | A reference to a standard normal distribution instance. |
generator | An uniform random bit generator object. |
Definition at line 95 of file multivariate_normal_distribution.hpp.
|
inline |
Compares this object with other parameter set object.
other | Parameter set object to compare against. |
Definition at line 75 of file multivariate_normal_distribution.hpp.
|
private |
Definition at line 105 of file multivariate_normal_distribution.hpp.
|
private |
Definition at line 106 of file multivariate_normal_distribution.hpp.