Public Member Functions | Public Attributes | List of all members
ML::knn_graph< value_idx, value_t > Struct Template Reference

#include <common.hpp>

Collaboration diagram for ML::knn_graph< value_idx, value_t >:
Collaboration graph

Public Member Functions

 knn_graph (value_idx n_rows_, int n_neighbors_)
 
 knn_graph (value_idx n_rows_, int n_neighbors_, value_idx *knn_indices_, value_t *knn_dists_)
 

Public Attributes

value_idx * knn_indices
 
value_t * knn_dists
 
value_idx n_rows
 
int n_neighbors
 

Detailed Description

template<typename value_idx, typename value_t>
struct ML::knn_graph< value_idx, value_t >

Simple container for KNN graph properties

Template Parameters
value_idx
value_t

Constructor & Destructor Documentation

◆ knn_graph() [1/2]

template<typename value_idx , typename value_t >
ML::knn_graph< value_idx, value_t >::knn_graph ( value_idx  n_rows_,
int  n_neighbors_ 
)
inline

◆ knn_graph() [2/2]

template<typename value_idx , typename value_t >
ML::knn_graph< value_idx, value_t >::knn_graph ( value_idx  n_rows_,
int  n_neighbors_,
value_idx *  knn_indices_,
value_t *  knn_dists_ 
)
inline

Member Data Documentation

◆ knn_dists

template<typename value_idx , typename value_t >
value_t* ML::knn_graph< value_idx, value_t >::knn_dists

◆ knn_indices

template<typename value_idx , typename value_t >
value_idx* ML::knn_graph< value_idx, value_t >::knn_indices

◆ n_neighbors

template<typename value_idx , typename value_t >
int ML::knn_graph< value_idx, value_t >::n_neighbors

◆ n_rows

template<typename value_idx , typename value_t >
value_idx ML::knn_graph< value_idx, value_t >::n_rows

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