A.I.M.S algorithms


aims::knn::KnnFriedman Class Referenceabstract

#include <aims/math/knn.h>

Inheritance diagram for aims::knn::KnnFriedman:
Collaboration diagram for aims::knn::KnnFriedman:

Public Member Functions

 KnnFriedman (Database &db, unsigned int k, Distance *distance=new SquaredEuclidianDistance())
 
virtual ~KnnFriedman ()
 
virtual void precompute (void)=0
 
virtual std::pair< std::vector
< unsigned int >, std::vector
< double > > 
find (const std::vector< double > &v)=0
 
- Public Member Functions inherited from aims::knn::Knn
 Knn (Database &db, unsigned int k, Distance *distance=new SquaredEuclidianDistance())
 
virtual ~Knn ()
 

Additional Inherited Members

- Protected Attributes inherited from aims::knn::Knn
Database_db
 database wrapper of data More...
 
unsigned int _k
 k : number of nearest neighbours More...
 
Distance_distance
 distance used in nearest neighbours computations More...
 
int _distance_n
 number of computed distance More...
 

Detailed Description

Definition at line 555 of file knn.h.

Constructor & Destructor Documentation

aims::knn::KnnFriedman::KnnFriedman ( Database db,
unsigned int  k,
Distance distance = new SquaredEuclidianDistance() 
)
inline

Definition at line 558 of file knn.h.

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

Definition at line 561 of file knn.h.

Member Function Documentation

virtual std::pair<std::vector<unsigned int>, std::vector<double> > aims::knn::KnnFriedman::find ( const std::vector< double > &  v)
pure virtual

Implements aims::knn::Knn.

Implemented in aims::knn::KnnGlobalFriedman.

virtual void aims::knn::KnnFriedman::precompute ( void  )
pure virtual

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