Default implementation of L2 distance metric. More...
#include <distance.h>
Public Types | |
typedef Accumulator < value_type >::type | result_type |
typedef Feature::value_type | value_type |
Public Member Functions | |
result_type | operator() (const Feature &a, const Feature &b) const |
Default implementation of L2 distance metric.
Works with std::vector, boost::array, or more generally any container that has a value_type
typedef, size()
and array-indexed element access.
Definition at line 43 of file distance.h.
typedef Accumulator<value_type>::type vt::distance::L2< Feature >::result_type |
Definition at line 46 of file distance.h.
typedef Feature::value_type vt::distance::L2< Feature >::value_type |
Definition at line 45 of file distance.h.
result_type vt::distance::L2< Feature >::operator() | ( | const Feature & | a, | |
const Feature & | b | |||
) | const [inline] |
Definition at line 48 of file distance.h.