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

Oracle for Matrix or MatrixProxy. More...

#include <kgraph-data.h>

Inheritance diagram for kgraph::MatrixOracle< DATA_TYPE, DIST_TYPE >:
kgraph::IndexOracle

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
 

Detailed Description

template<typename DATA_TYPE, typename DIST_TYPE>
class kgraph::MatrixOracle< DATA_TYPE, DIST_TYPE >

Oracle for Matrix or MatrixProxy.

DATA_TYPE can be Matrix or MatrixProxy, DIST_TYPE should be one class within the namespace kgraph.metric.

Member Function Documentation

template<typename DATA_TYPE , typename DIST_TYPE >
virtual float kgraph::MatrixOracle< DATA_TYPE, DIST_TYPE >::operator() ( unsigned  i,
unsigned  j 
) const
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.


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