KGraph
 All Classes Namespaces Functions Pages
Public Member Functions | List of all members
kgraph::MatrixOracle< DATA_TYPE, DIST_TYPE >::SearchOracle Class Reference
Inheritance diagram for kgraph::MatrixOracle< DATA_TYPE, DIST_TYPE >::SearchOracle:
kgraph::SearchOracle

Public Member Functions

 SearchOracle (MatrixProxy< DATA_TYPE > const &p, DATA_TYPE const *q)
 
virtual unsigned size () const
 Returns the size of the dataset.
 
virtual float operator() (unsigned i) const
 Computes similarity. More...
 
- Public Member Functions inherited from kgraph::SearchOracle
unsigned search (unsigned K, float epsilon, unsigned *ids, float *dists=nullptr) const
 Search with brutal force. More...
 

Member Function Documentation

template<typename DATA_TYPE , typename DIST_TYPE >
virtual float kgraph::MatrixOracle< DATA_TYPE, DIST_TYPE >::SearchOracle::operator() ( unsigned  i) const
inlinevirtual

Computes similarity.

0 <= i < size() are the index of an objects in the dataset. This method return the distance between the query and object i.

Implements kgraph::SearchOracle.


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