|
Fermat
|
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 Matrix2x2f & | precision () const |
| CUGAR_HOST_DEVICE const Matrix2x2f | covariance () const |
|
inline |
constructor
| mu | mean |
| matrix | covariance | precision matrix |
| matrix_type | specify which matrix is passed |
|
inline |
constructor
| mu | mean |
| matrix | covariance | precision matrix |
| matrix_type | specify which matrix is passed |
|
inline |
constructor
| sigma | covariance matrix |
| prec | precision matrix |
|
inline |
return the covariance matrix
|
inline |
probability density function
| x | sample location |
transform a uniformly distributed vector through the distribution
| uv | real numbers to transform |
|
inline |
return the mean vector
|
inline |
return the precision matrix
1.8.13