Oracle for Matrix or MatrixProxy. More...
#include <kgraph-data.h>
Classes | |
| class | SearchOracle |
Public Member Functions | |
| template<typename MATRIX_TYPE > | |
| MatrixOracle (MATRIX_TYPE const &m) | |
| virtual unsigned | size () const |
| Returns the size of the dataset. | |
| virtual float | operator() (unsigned i, unsigned j) const |
| Computes similarity. More... | |
| SearchOracle | query (DATA_TYPE const *query) const |
Oracle for Matrix or MatrixProxy.
DATA_TYPE can be Matrix or MatrixProxy, DIST_TYPE should be one class within the namespace kgraph.metric.
|
inlinevirtual |
Computes similarity.
0 <= i, j < size() are the index of two objects in the dataset. This method return the distance between objects i and j.
Implements kgraph::IndexOracle.
1.8.5