A metric in field F with scalar variance.
More...
#include <vpdt_norm_metric.h>
Public Types | |
| typedef vpdt_field_traits< F >::scalar_type | covar_type |
| the data type used for the metric tensor. More... | |
| typedef vpdt_field_traits< F >::scalar_type | T |
| the data type used for scalars. More... | |
| typedef vpdt_field_traits< F >::vector_type | vector |
| the data type used for vectors. More... | |
| typedef vpdt_field_traits< F >::matrix_type | matrix |
| the data type used for matrices. More... | |
Static Public Member Functions | |
| static T | distance (const F &pt1, const F &pt2, const covar_type &c) |
| Compute the Mahalanobis distance between two points. More... | |
| static T | sqr_distance (const F &pt1, const F &pt2, const covar_type &c) |
| Compute the square Mahalanobis distance between two points. More... | |
| static T | sqr_distance_deriv (const F &pt1, const F &pt2, const covar_type &c, vector &g) |
| Compute the square Mahalanobis distance and also the derivative g wrt pt1. More... | |
| static void | compute_covar (matrix &covar, const F &, const covar_type &c) |
| Compute the covariance matrix (metric tensor) at a point. More... | |
| static T | covar_det (const F &, const covar_type &c) |
| Compute the determinant of the covariance matrix (metric tensor) at a point. More... | |
A metric in field F with scalar variance.
In this case the metric is a scaled L2 norm
Definition at line 257 of file vpdt_norm_metric.h.
| typedef vpdt_field_traits<F>::scalar_type vpdt_norm_metric< F, typename vpdt_field_traits< F >::scalar_type, typename vpdt_field_traits< F >::type_is_scalar >::covar_type |
the data type used for the metric tensor.
Definition at line 261 of file vpdt_norm_metric.h.
| typedef vpdt_field_traits<F>::matrix_type vpdt_norm_metric< F, typename vpdt_field_traits< F >::scalar_type, typename vpdt_field_traits< F >::type_is_scalar >::matrix |
the data type used for matrices.
Definition at line 267 of file vpdt_norm_metric.h.
| typedef vpdt_field_traits<F>::scalar_type vpdt_norm_metric< F, typename vpdt_field_traits< F >::scalar_type, typename vpdt_field_traits< F >::type_is_scalar >::T |
the data type used for scalars.
Definition at line 263 of file vpdt_norm_metric.h.
| typedef vpdt_field_traits<F>::vector_type vpdt_norm_metric< F, typename vpdt_field_traits< F >::scalar_type, typename vpdt_field_traits< F >::type_is_scalar >::vector |
the data type used for vectors.
Definition at line 265 of file vpdt_norm_metric.h.
|
inlinestatic |
Compute the covariance matrix (metric tensor) at a point.
Definition at line 293 of file vpdt_norm_metric.h.
|
inlinestatic |
Compute the determinant of the covariance matrix (metric tensor) at a point.
Definition at line 300 of file vpdt_norm_metric.h.
|
inlinestatic |
Compute the Mahalanobis distance between two points.
Definition at line 270 of file vpdt_norm_metric.h.
|
inlinestatic |
Compute the square Mahalanobis distance between two points.
Definition at line 276 of file vpdt_norm_metric.h.
|
inlinestatic |
Compute the square Mahalanobis distance and also the derivative g wrt pt1.
Definition at line 283 of file vpdt_norm_metric.h.
1.8.15