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

lti::earthMoversDistance< W, C, D >::parameters Class Reference

the parameters for the class earthMoversDistance More...

#include <ltiEarthMoversDistance.h>

Inheritance diagram for lti::earthMoversDistance< W, C, D >::parameters:
Inheritance graph
[legend]
Collaboration diagram for lti::earthMoversDistance< W, C, D >::parameters:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 parameters ()
 parameters (const parameters &other)
 ~parameters ()
const char * getTypeName () const
parameterscopy (const parameters &other)
parametersoperator= (const parameters &other)
virtual functor::parametersclone () const
virtual bool write (ioHandler &handler, const bool complete=true) const
virtual bool read (ioHandler &handler, const bool complete=true)

Public Attributes

matrix< W > costMatrix
epsilon
int maxSteps

Detailed Description

template<class W, class C = vector<W>, class D = l2Distantor<C>>
class lti::earthMoversDistance< W, C, D >::parameters

the parameters for the class earthMoversDistance


Constructor & Destructor Documentation

template<class W , class C = vector<W>, class D = l2Distantor<C>>
lti::earthMoversDistance< W, C, D >::parameters::parameters ( void   )  [inline]
template<class W , class C = vector<W>, class D = l2Distantor<C>>
lti::earthMoversDistance< W, C, D >::parameters::parameters ( const parameters other  )  [inline]

copy constructor

Parameters:
other the parameters object to be copied

Reimplemented from lti::distanceFunctor< T >::parameters.

References lti::earthMoversDistance< W, C, D >::parameters::copy().

template<class W , class C = vector<W>, class D = l2Distantor<C>>
lti::earthMoversDistance< W, C, D >::parameters::~parameters (  )  [inline, virtual]

destructor

Reimplemented from lti::distanceFunctor< T >::parameters.


Member Function Documentation

template<class W , class C = vector<W>, class D = l2Distantor<C>>
virtual functor::parameters* lti::earthMoversDistance< W, C, D >::parameters::clone (  )  const [inline, virtual]

returns a pointer to a clone of the parameters

Reimplemented from lti::distanceFunctor< T >::parameters.

References lti::earthMoversDistance< W, C, D >::parameters::parameters().

template<class W , class C = vector<W>, class D = l2Distantor<C>>
parameters& lti::earthMoversDistance< W, C, D >::parameters::copy ( const parameters other  )  [inline]
template<class W , class C = vector<W>, class D = l2Distantor<C>>
const char* lti::earthMoversDistance< W, C, D >::parameters::getTypeName ( void   )  const [inline, virtual]

returns name of this type

Reimplemented from lti::distanceFunctor< T >::parameters.

template<class W , class C = vector<W>, class D = l2Distantor<C>>
parameters& lti::earthMoversDistance< W, C, D >::parameters::operator= ( const parameters other  )  [inline]

copy the contents of a parameters object

Parameters:
other the parameters object to be copied
Returns:
a reference to this parameters object

References lti::earthMoversDistance< W, C, D >::parameters::copy().

template<class W , class C = vector<W>, class D = l2Distantor<C>>
virtual bool lti::earthMoversDistance< W, C, D >::parameters::read ( ioHandler handler,
const bool  complete = true 
) [inline, virtual]

read the parameters from the given ioHandler

Parameters:
handler the ioHandler to be used
complete if true (the default) the enclosing begin/end will be also written, otherwise only the data block will be written.
Returns:
true if write was successful

Reimplemented from lti::distanceFunctor< T >::parameters.

References lti::earthMoversDistance< W, C, D >::parameters::costMatrix, lti::earthMoversDistance< W, C, D >::parameters::epsilon, lti::earthMoversDistance< W, C, D >::parameters::maxSteps, lti::ioHandler::readBegin(), and lti::ioHandler::readEnd().

template<class W , class C = vector<W>, class D = l2Distantor<C>>
virtual bool lti::earthMoversDistance< W, C, D >::parameters::write ( ioHandler handler,
const bool  complete = true 
) const [inline, virtual]

write the parameters in the given ioHandler

Parameters:
handler the ioHandler to be used
complete if true (the default) the enclosing begin/end will be also written, otherwise only the data block will be written.
Returns:
true if write was successful

Reimplemented from lti::distanceFunctor< T >::parameters.

References lti::earthMoversDistance< W, C, D >::parameters::costMatrix, lti::earthMoversDistance< W, C, D >::parameters::epsilon, lti::earthMoversDistance< W, C, D >::parameters::maxSteps, lti::ioHandler::writeBegin(), and lti::ioHandler::writeEnd().


Member Data Documentation

template<class W , class C = vector<W>, class D = l2Distantor<C>>
matrix<W> lti::earthMoversDistance< W, C, D >::parameters::costMatrix

Usually the template type D (for distance) of the earthMoversDistance is used to calculate the ground distance.

For some data type, espacially when comparing feature vectors, it is difficult to find a distance measure which describes the knowledge of relationship between the elements of the feature vector correctly. For these cases give the costMatrix explicitly here. The ground distance measure will be disregarded for the calculations. Note that for distances between vectors or matrices of weights the diagonal is usually 0 (no cost to move weight between equal indices). Default empty.

Referenced by lti::earthMoversDistance< W, C, D >::parameters::copy(), lti::earthMoversDistance< W, C, D >::parameters::parameters(), lti::earthMoversDistance< W, C, D >::parameters::read(), and lti::earthMoversDistance< W, C, D >::parameters::write().

template<class W , class C = vector<W>, class D = l2Distantor<C>>
W lti::earthMoversDistance< W, C, D >::parameters::epsilon
template<class W , class C = vector<W>, class D = l2Distantor<C>>
int lti::earthMoversDistance< W, C, D >::parameters::maxSteps

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

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