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... | |
|
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.