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. | |
typedef vpdt_field_traits< F > ::scalar_type | T |
the data type used for scalars. | |
typedef vpdt_field_traits< F > ::vector_type | vector |
the data type used for vectors. | |
typedef vpdt_field_traits< F > ::matrix_type | matrix |
the data type used for matrices. | |
Static Public Member Functions | |
static T | distance (const F &pt1, const F &pt2, const covar_type &c) |
Compute the Mahalanobis distance between two points. | |
static T | sqr_distance (const F &pt1, const F &pt2, const covar_type &c) |
Compute the square Mahalanobis distance between two points. | |
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. | |
static void | compute_covar (matrix &covar, const F &, const covar_type &c) |
Compute the covariance matrix (metric tensor) at a point. | |
static T | covar_det (const F &, const covar_type &c) |
Compute the determinant of the covariance matrix (metric tensor) at a point. |
A metric in field F
with scalar variance.
In this case the metric is a scaled L2 norm
Definition at line 254 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 258 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 264 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 260 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 262 of file vpdt_norm_metric.h.
static void vpdt_norm_metric< F, typename vpdt_field_traits< F >::scalar_type, typename vpdt_field_traits< F >::type_is_scalar >::compute_covar | ( | matrix & | covar, |
const F & | , | ||
const covar_type & | c | ||
) | [inline, static] |
Compute the covariance matrix (metric tensor) at a point.
Definition at line 290 of file vpdt_norm_metric.h.
static T vpdt_norm_metric< F, typename vpdt_field_traits< F >::scalar_type, typename vpdt_field_traits< F >::type_is_scalar >::covar_det | ( | const F & | , |
const covar_type & | c | ||
) | [inline, static] |
Compute the determinant of the covariance matrix (metric tensor) at a point.
Definition at line 297 of file vpdt_norm_metric.h.
static T vpdt_norm_metric< F, typename vpdt_field_traits< F >::scalar_type, typename vpdt_field_traits< F >::type_is_scalar >::distance | ( | const F & | pt1, |
const F & | pt2, | ||
const covar_type & | c | ||
) | [inline, static] |
Compute the Mahalanobis distance between two points.
Definition at line 267 of file vpdt_norm_metric.h.
static T vpdt_norm_metric< F, typename vpdt_field_traits< F >::scalar_type, typename vpdt_field_traits< F >::type_is_scalar >::sqr_distance | ( | const F & | pt1, |
const F & | pt2, | ||
const covar_type & | c | ||
) | [inline, static] |
Compute the square Mahalanobis distance between two points.
Definition at line 273 of file vpdt_norm_metric.h.
static T vpdt_norm_metric< F, typename vpdt_field_traits< F >::scalar_type, typename vpdt_field_traits< F >::type_is_scalar >::sqr_distance_deriv | ( | const F & | pt1, |
const F & | pt2, | ||
const covar_type & | c, | ||
vector & | g | ||
) | [inline, static] |
Compute the square Mahalanobis distance and also the derivative g wrt pt1.
Definition at line 280 of file vpdt_norm_metric.h.