last update 20 Sep 2009 |
#include <cvrEuclideanDistanceFunctor.h>
Public Types | |
typedef distanceFunctor< T > ::parameters | parameters |
Public Member Functions | |
euclideanDistanceFunctor () | |
euclideanDistanceFunctor (const euclideanDistanceFunctor< T > &other) | |
virtual | ~euclideanDistanceFunctor () |
virtual bool | apply (const vector< T > &a, const vector< T > &b, T &dist) const |
virtual bool | apply (const matrix< T > &a, const matrix< T > &b, vector< T > &dists) const |
virtual bool | apply (const matrix< T > &m, const vector< T > &v, vector< T > &dest) const |
virtual bool | apply (const matrix< T > &a, const matrix< T > &b, T &dist) const |
euclideanDistanceFunctor< T > & | copy (const euclideanDistanceFunctor< T > &other) |
virtual euclideanDistanceFunctor< T > * | clone () const |
virtual euclideanDistanceFunctor< T > * | newInstance () const |
virtual const std::string & | name () const |
const parameters & | getParameters () const |
typedef distanceFunctor<T>::parameters cvr::euclideanDistanceFunctor< T >::parameters |
The parameters of euclideanDistanceFunctor are equivalent to those of distanceFunctor.
cvr::euclideanDistanceFunctor< T >::euclideanDistanceFunctor | ( | ) |
default constructor
cvr::euclideanDistanceFunctor< T >::euclideanDistanceFunctor | ( | const euclideanDistanceFunctor< T > & | other | ) |
virtual cvr::euclideanDistanceFunctor< T >::~euclideanDistanceFunctor | ( | ) | [virtual] |
destructor
virtual bool cvr::euclideanDistanceFunctor< T >::apply | ( | const matrix< T > & | a, | |
const matrix< T > & | b, | |||
T & | dist | |||
) | const [virtual] |
calculate something like the distance between the matrices a and b: both matrices are seen as vectors.
By default uses the distance() member function.
a | the first matrix<T> | |
b | the second matrix<T> | |
dist | the 'distance' between the matrices |
Implements cvr::distanceFunctor< T >.
virtual bool cvr::euclideanDistanceFunctor< T >::apply | ( | const matrix< T > & | m, | |
const vector< T > & | v, | |||
vector< T > & | dest | |||
) | const [virtual] |
Calculate the distance between each row or column of m depending on the value of rowWise and the vector v.
By default uses the distance() member function.
m | the matrix<T> | |
v | the vector to be compared with | |
dest | the vector with the distances to the vector v |
Implements cvr::distanceFunctor< T >.
virtual bool cvr::euclideanDistanceFunctor< T >::apply | ( | const matrix< T > & | a, | |
const matrix< T > & | b, | |||
vector< T > & | dists | |||
) | const [virtual] |
calculate the distances between the rows or columns of the matrices a and b, determined by the parameters rowWise.
By default uses the distance() member function.
a | the first vector<T> | |
b | the second vector<T> | |
dists | the distances between the matrices |
Implements cvr::distanceFunctor< T >.
virtual bool cvr::euclideanDistanceFunctor< T >::apply | ( | const vector< T > & | a, | |
const vector< T > & | b, | |||
T & | dist | |||
) | const [virtual] |
calculate the distance between the vectors a and b.
By default uses the distance member function.
a | the first vector<T> | |
b | the second vector<T> | |
dist | the distance between the vectors |
Implements cvr::distanceFunctor< T >.
virtual euclideanDistanceFunctor<T>* cvr::euclideanDistanceFunctor< T >::clone | ( | ) | const [virtual] |
euclideanDistanceFunctor<T>& cvr::euclideanDistanceFunctor< T >::copy | ( | const euclideanDistanceFunctor< T > & | other | ) |
const parameters& cvr::euclideanDistanceFunctor< T >::getParameters | ( | ) | const |
virtual const std::string& cvr::euclideanDistanceFunctor< T >::name | ( | ) | const [virtual] |
virtual euclideanDistanceFunctor<T>* cvr::euclideanDistanceFunctor< T >::newInstance | ( | ) | const [virtual] |