LTI-Lib latest version v1.9 - last update 10 Apr 2010

lti::distanceType< T > Class Template Reference

This class defines the appropriate return types when calculating the distance between to values of type T. More...

#include <ltiDistanceType.h>

Inheritance diagram for lti::distanceType< T >:
Inheritance graph
[legend]
Collaboration diagram for lti::distanceType< T >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef distanceType< typename
T::value_type >::distance_type 
distance_type
typedef distanceType< typename
T::value_type >
::square_distance_type 
square_distance_type
typedef distanceType< typename
T::value_type >
::fp_distance_type 
fp_distance_type

Detailed Description

template<class T>
class lti::distanceType< T >

This class defines the appropriate return types when calculating the distance between to values of type T.

These can be simple types like int or double or lti types like vector<T>, rgbPixel etc. There are three different distance types:


Member Typedef Documentation

template<class T>
typedef distanceType<typename T::value_type>::distance_type lti::distanceType< T >::distance_type

Suggested distance type for distances that use simple accumulation of type elements (for example l1Distantor).

template<class T>
typedef distanceType<typename T::value_type>::fp_distance_type lti::distanceType< T >::fp_distance_type

Suggested distance type for distances that use accumulation of type elements or their squares and use a typical floating point (fp) operation like sqrt or log on that.

(for example l2Distantor).

template<class T>
typedef distanceType<typename T::value_type>::square_distance_type lti::distanceType< T >::square_distance_type

Suggested distance type for distances that use accumulation of squares of type elements (for example l2SqrDistantor).


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

Generated on Sat Apr 10 15:26:43 2010 for LTI-Lib by Doxygen 1.6.1