Fermat
Public Types | Public Methods | List of all members
cugar::Gaussian_distribution_2d Struct Reference

Detailed description

2d Gaussian distribution with fully prescribed covariance matrix

#include <distributions.h>

Public Types

enum  MatrixType { COVARIANCE_MATRIX, PRECISION_MATRIX }
 

Public Methods

CUGAR_HOST_DEVICE Gaussian_distribution_2d ()
 
CUGAR_HOST_DEVICE Gaussian_distribution_2d (const Vector2f mu, const Matrix2x2f matrix, const MatrixType matrix_type=COVARIANCE_MATRIX)
 
CUGAR_HOST_DEVICE Gaussian_distribution_2d (const Vector2f mu, const Matrix2x2f sigma, const Matrix2x2f prec)
 
CUGAR_HOST_DEVICE Vector2f map (const Vector2f uv) const
 
CUGAR_HOST_DEVICE float density (const Vector2f x) const
 
CUGAR_HOST_DEVICE Vector2f mean () const
 
CUGAR_HOST_DEVICE const Matrix2x2fprecision () const
 
CUGAR_HOST_DEVICE const Matrix2x2f covariance () const
 

Constructor & Destructor Documentation

◆ Gaussian_distribution_2d() [1/3]

CUGAR_HOST_DEVICE cugar::Gaussian_distribution_2d::Gaussian_distribution_2d ( )
inline

constructor

Parameters
mumean
matrixcovariance | precision matrix
matrix_typespecify which matrix is passed

◆ Gaussian_distribution_2d() [2/3]

CUGAR_HOST_DEVICE cugar::Gaussian_distribution_2d::Gaussian_distribution_2d ( const Vector2f  mu,
const Matrix2x2f  matrix,
const MatrixType  matrix_type = COVARIANCE_MATRIX 
)
inline

constructor

Parameters
mumean
matrixcovariance | precision matrix
matrix_typespecify which matrix is passed

◆ Gaussian_distribution_2d() [3/3]

CUGAR_HOST_DEVICE cugar::Gaussian_distribution_2d::Gaussian_distribution_2d ( const Vector2f  mu,
const Matrix2x2f  sigma,
const Matrix2x2f  prec 
)
inline

constructor

Parameters
sigmacovariance matrix
precprecision matrix

Member Function Documentation

◆ covariance()

CUGAR_HOST_DEVICE const Matrix2x2f cugar::Gaussian_distribution_2d::covariance ( ) const
inline

return the covariance matrix

◆ density()

CUGAR_HOST_DEVICE float cugar::Gaussian_distribution_2d::density ( const Vector2f  x) const
inline

probability density function

Parameters
xsample location

◆ map()

CUGAR_HOST_DEVICE Vector2f cugar::Gaussian_distribution_2d::map ( const Vector2f  uv) const
inline

transform a uniformly distributed vector through the distribution

Parameters
uvreal numbers to transform

◆ mean()

CUGAR_HOST_DEVICE Vector2f cugar::Gaussian_distribution_2d::mean ( ) const
inline

return the mean vector

◆ precision()

CUGAR_HOST_DEVICE const Matrix2x2f& cugar::Gaussian_distribution_2d::precision ( ) const
inline

return the precision matrix


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