A.I.M.S algorithms

aims::knn::KnnBruteForce Class Reference

#include <aims/math/knn.h>

Inheritance diagram for aims::knn::KnnBruteForce:
Collaboration diagram for aims::knn::KnnBruteForce:

Public Member Functions

 KnnBruteForce (Database &db, unsigned int k, Distance *distance=new SquaredEuclidianDistance())
virtual ~KnnBruteForce ()
virtual std::pair< std::vector
< unsigned int >, std::vector
< double > > 
find (const std::vector< double > &v)
- 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 wrapper of data More...
unsigned int _k
 k : number of nearest neighbours More...
 distance used in nearest neighbours computations More...
int _distance_n
 number of computed distance More...

Detailed Description

Definition at line 543 of file knn.h.

Constructor & Destructor Documentation

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

Definition at line 546 of file knn.h.

virtual aims::knn::KnnBruteForce::~KnnBruteForce ( )

Definition at line 549 of file knn.h.

Member Function Documentation

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

Implements aims::knn::Knn.

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