MTF
Public Types | Public Member Functions | List of all members
gnn::FGNN< DistType > Class Template Reference
Inheritance diagram for gnn::FGNN< DistType >:
gnn::GNN< DistType >

Public Types

typedef std::shared_ptr< const DistType > DistTypePtr
 
typedef GNN< DistType >::ParamType ParamType
 
typedef flann::Matrix< double > flannMatT
 
typedef flann::Matrix< int > flannResultT
 
typedef flann::Index< DistType > flannIdxT
 
- Public Types inherited from gnn::GNN< DistType >
typedef GNNParams ParamType
 
typedef std::shared_ptr< const DistType > DistTypePtr
 

Public Member Functions

 FGNN (DistTypePtr _dist_func, int _n_samples, int _n_dims, bool _is_symmetrical=true, const ParamType *gnn_params=nullptr)
 
void buildGraph (const double *dataset, flannIdxT *flann_index, const flann::SearchParams &search_params)
 
- Public Member Functions inherited from gnn::GNN< DistType >
 GNN (DistTypePtr _dist_func, int _n_samples, int _n_dims, bool _is_symmetrical=true, const ParamType *gnn_params=nullptr)
 
void computeDistances (const double *dataset)
 
void buildGraph (const double *dataset)
 
void searchGraph (const double *query, const double *dataset, int *nn_ids, double *nn_dists, int K=1)
 
void saveGraph (const char *file_name)
 
void loadGraph (const char *file_name)
 
void buildGraph (const double *X, int k)
 
int searchGraph (const double *Xq, const double *X, int NNs, int K)
 

Additional Inherited Members

- Protected Member Functions inherited from gnn::GNN< DistType >
int getRandNum (int lb, int ub)
 
template<typename ScalarT >
void swap (ScalarT *i, ScalarT *j)
 
void knnSearch2 (const double *Q, IndxDist *dists, const double *X, int rows, int cols, int k)
 
void knnSearch11 (const double *Q, IndxDist *dists, const double *X, int rows, int cols, int k, int *X_inds)
 
int min (int a, int b)
 
void pickKNNs (IndxDist *vis_nodes, int visited, IndxDist **gnn_dists, int K, int *gnns_cap)
 
void addNode (Node *node_i, int nn)
 
- Protected Attributes inherited from gnn::GNN< DistType >
DistTypePtr dist_func
 
const int n_samples
 
const int n_dims
 
const bool is_symmetrical
 
ParamType params
 
std::vector< Nodenodes
 
MatrixXd dataset_distances
 
int start_node_idx
 
bool dist_computed
 

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