A.I.M.S algorithms

aims::knn::ManhattanDistance Class Reference

#include <aims/math/knn.h>

Inheritance diagram for aims::knn::ManhattanDistance:
Collaboration diagram for aims::knn::ManhattanDistance:

Public Member Functions

 ManhattanDistance ()
virtual ~ManhattanDistance ()
virtual double operator() (const double *v1, const double *v2, unsigned int dim) const
- Public Member Functions inherited from aims::knn::Distance
 Distance ()
virtual ~Distance ()
virtual const std::string & name (void) const
virtual double operator() (const std::vector< double > &v1, const std::vector< double > &v2) const

Additional Inherited Members

- Protected Attributes inherited from aims::knn::Distance
std::string _name

Detailed Description

Definition at line 120 of file knn.h.

Constructor & Destructor Documentation

aims::knn::ManhattanDistance::ManhattanDistance ( )

Definition at line 123 of file knn.h.

References aims::knn::Distance::_name.

virtual aims::knn::ManhattanDistance::~ManhattanDistance ( )

Definition at line 127 of file knn.h.

Member Function Documentation

virtual double aims::knn::ManhattanDistance::operator() ( const double *  v1,
const double *  v2,
unsigned int  dim 
) const

Implements aims::knn::Distance.

Definition at line 129 of file knn.h.

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