A Gaussian with variance independent in each dimension. More...
#include <vpdl_gaussian_indep.h>

Public Types | |
| typedef vpdt_field_default< T, n >::type | vector |
| the data type used for vectors. More... | |
| typedef vpdt_field_traits< vector >::matrix_type | matrix |
| the data type used for matrices. More... | |
| typedef vector | covar_type |
| the type used internally for covariance. More... | |
| typedef vpdt_field_default< T, n >::type | field_type |
| the data type used for vectors. More... | |
Public Member Functions | |
| vpdl_gaussian_indep (unsigned int var_dim=n) | |
| Constructor. More... | |
| vpdl_gaussian_indep (const vector &mean_val, const covar_type &var) | |
| Constructor - from mean and variance. More... | |
| virtual | ~vpdl_gaussian_indep () |
| Destructor. More... | |
| virtual vpdl_distribution< T, n > * | clone () const |
| Create a copy on the heap and return base class pointer. More... | |
| virtual unsigned int | dimension () const |
Return the run time dimension, which does not equal n when n==0. More... | |
| virtual T | density (const vector &pt) const |
| Evaluate the unnormalized density at a point. More... | |
| virtual T | prob_density (const vector &pt) const |
| Evaluate the probability density at a point. More... | |
| virtual T | log_prob_density (const vector &pt) const |
| Evaluate the log probability density at a point. More... | |
| virtual T | gradient_density (const vector &pt, vector &g) const |
| Compute the gradient of the unnormalized density at a point. More... | |
| virtual T | norm_const () const |
| The normalization constant for the density. More... | |
| T | sqr_mahal_dist (const vector &pt) const |
| The squared Mahalanobis distance to this point. More... | |
| virtual T | cumulative_prob (const vector &pt) const |
| Evaluate the cumulative distribution function at a point. More... | |
| virtual const vector & | mean () const |
| Access the mean directly. More... | |
| virtual void | set_mean (const vector &mean_val) |
| Set the mean. More... | |
| virtual void | compute_mean (vector &mean_val) const |
| Compute the mean of the distribution. More... | |
| const covar_type & | covariance () const |
| Access the vector of variance. More... | |
| void | set_covariance (const covar_type &var) |
| Set the vector of variance. More... | |
| virtual void | compute_covar (matrix &covar) const |
| Compute the covariance of the distribution. More... | |
| virtual vector | inverse_cdf (const T &p) const |
| Compute the inverse of the cumulative_prob() function. More... | |
| virtual T | box_prob (const vector &min_pt, const vector &max_pt) const |
| The probability of being in an axis-aligned box. More... | |
Protected Attributes | |
| vpdt_gaussian< vector, covar_type > | impl_ |
| the Gaussian implementation from vpdt. More... | |
A Gaussian with variance independent in each dimension.
Definition at line 28 of file vpdl_gaussian_indep.h.
| typedef vector vpdl_gaussian_indep< T, n >::covar_type |
the type used internally for covariance.
Definition at line 36 of file vpdl_gaussian_indep.h.
|
inherited |
the data type used for vectors.
Definition at line 39 of file vpdl_distribution.h.
| typedef vpdt_field_traits<vector>::matrix_type vpdl_gaussian_indep< T, n >::matrix |
the data type used for matrices.
Definition at line 34 of file vpdl_gaussian_indep.h.
| typedef vpdt_field_default<T,n>::type vpdl_gaussian_indep< T, n >::vector |
the data type used for vectors.
Definition at line 32 of file vpdl_gaussian_indep.h.
|
inline |
Constructor.
Optionally initialize the dimension for when n==0. Otherwise var_dim is ignored
Definition at line 41 of file vpdl_gaussian_indep.h.
|
inline |
Constructor - from mean and variance.
Definition at line 45 of file vpdl_gaussian_indep.h.
|
inlinevirtual |
Destructor.
Definition at line 49 of file vpdl_gaussian_indep.h.
|
virtualinherited |
The probability of being in an axis-aligned box.
The box is defined by two points, the minimum and maximum. Implemented in terms of cumulative_prob() by default.
Reimplemented in vpdl_mixture< T, n >, vpdl_kernel_gaussian_sfbw< T, n >, and vpdl_gaussian_sphere< T, n >.
Definition at line 89 of file vpdl_distribution.hxx.
|
inlinevirtual |
Create a copy on the heap and return base class pointer.
Implements vpdl_distribution< T, n >.
Definition at line 52 of file vpdl_gaussian_indep.h.
|
inlinevirtual |
Compute the covariance of the distribution.
Should be the diagonal matrix of var_
Implements vpdl_distribution< T, n >.
Definition at line 127 of file vpdl_gaussian_indep.h.
|
inlinevirtual |
Compute the mean of the distribution.
Implements vpdl_distribution< T, n >.
Definition at line 117 of file vpdl_gaussian_indep.h.
|
inline |
Access the vector of variance.
Definition at line 120 of file vpdl_gaussian_indep.h.
|
inlinevirtual |
Evaluate the cumulative distribution function at a point.
This is the integral of the density function from negative infinity (in all dimensions) to the point in question
Implements vpdl_distribution< T, n >.
Definition at line 105 of file vpdl_gaussian_indep.h.
|
inlinevirtual |
Evaluate the unnormalized density at a point.
Implements vpdl_distribution< T, n >.
Definition at line 61 of file vpdl_gaussian_indep.h.
|
inlinevirtual |
Return the run time dimension, which does not equal n when n==0.
Implements vpdl_distribution< T, n >.
Definition at line 58 of file vpdl_gaussian_indep.h.
|
inlinevirtual |
Compute the gradient of the unnormalized density at a point.
| g | the gradient vector |
Implements vpdl_distribution< T, n >.
Definition at line 82 of file vpdl_gaussian_indep.h.
|
virtualinherited |
Compute the inverse of the cumulative_prob() function.
The value of x: P(x'<x) = P for x' drawn from the distribution.
The value of x: P(x'<x) = P for x' drawn from the distribution. This is only valid for univariate distributions multivariate distributions will return -infinity
Definition at line 78 of file vpdl_distribution.hxx.
|
inlinevirtual |
Evaluate the log probability density at a point.
Reimplemented from vpdl_distribution< T, n >.
Definition at line 73 of file vpdl_gaussian_indep.h.
|
inlinevirtual |
Access the mean directly.
Implements vpdl_gaussian_base< T, n >.
Definition at line 111 of file vpdl_gaussian_indep.h.
|
inlinevirtual |
The normalization constant for the density.
When density() is multiplied by this value it becomes prob_density norm_const() is reciprocal of the integral of density over the entire field
Implements vpdl_distribution< T, n >.
Definition at line 90 of file vpdl_gaussian_indep.h.
|
inlinevirtual |
Evaluate the probability density at a point.
Reimplemented from vpdl_distribution< T, n >.
Definition at line 67 of file vpdl_gaussian_indep.h.
|
inline |
Set the vector of variance.
Definition at line 123 of file vpdl_gaussian_indep.h.
|
inlinevirtual |
Set the mean.
Implements vpdl_gaussian_base< T, n >.
Definition at line 114 of file vpdl_gaussian_indep.h.
|
inline |
The squared Mahalanobis distance to this point.
Non-virtual for efficiency
Definition at line 97 of file vpdl_gaussian_indep.h.
|
protected |
the Gaussian implementation from vpdt.
Definition at line 134 of file vpdl_gaussian_indep.h.
1.8.15