Public Types | Public Member Functions
vt::distance::L2< Feature > Struct Template Reference

Default implementation of L2 distance metric. More...

#include <distance.h>

List of all members.

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

Detailed Description

template<class Feature>
struct vt::distance::L2< Feature >

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.


Member Typedef Documentation

template<class Feature>
typedef Accumulator<value_type>::type vt::distance::L2< Feature >::result_type

Definition at line 46 of file distance.h.

template<class Feature>
typedef Feature::value_type vt::distance::L2< Feature >::value_type

Definition at line 45 of file distance.h.


Member Function Documentation

template<class Feature>
result_type vt::distance::L2< Feature >::operator() ( const Feature a,
const Feature b 
) const [inline]

Definition at line 48 of file distance.h.


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


vocabulary_tree
Author(s): Patrick Mihelich
autogenerated on Thu Jan 2 2014 12:12:26