A.I.M.S algorithms


aims::knn::Distance Class Referenceabstract

#include <aims/math/knn.h>

Inheritance diagram for aims::knn::Distance:
Collaboration diagram for aims::knn::Distance:

Public Member Functions

 Distance ()
 
virtual ~Distance ()
 
virtual const std::string & name (void) const
 
virtual double operator() (const double *v1, const double *v2, unsigned int dim) const =0
 
virtual double operator() (const std::vector< double > &v1, const std::vector< double > &v2) const
 

Protected Attributes

std::string _name
 

Detailed Description

Definition at line 51 of file knn.h.

Constructor & Destructor Documentation

aims::knn::Distance::Distance ( )
inline

Definition at line 54 of file knn.h.

virtual aims::knn::Distance::~Distance ( )
inlinevirtual

Definition at line 55 of file knn.h.

Member Function Documentation

virtual const std::string& aims::knn::Distance::name ( void  ) const
inlinevirtual

Definition at line 57 of file knn.h.

References _name.

virtual double aims::knn::Distance::operator() ( const double *  v1,
const double *  v2,
unsigned int  dim 
) const
pure virtual
virtual double aims::knn::Distance::operator() ( const std::vector< double > &  v1,
const std::vector< double > &  v2 
) const
inlinevirtual

Definition at line 65 of file knn.h.

Member Data Documentation


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