knncolle
Collection of KNN methods in C++
|
Interface to build nearest-neighbor search indices. More...
#include <Builder.hpp>
Public Member Functions | |
virtual Prebuilt< typename Matrix_::dimension_type, typename Matrix_::index_type, Float_ > * | build_raw (const Matrix_ &data) const =0 |
std::shared_ptr< Prebuilt< typename Matrix_::dimension_type, typename Matrix_::index_type, Float_ > > | build_shared (const Matrix_ &data) const |
std::unique_ptr< Prebuilt< typename Matrix_::dimension_type, typename Matrix_::index_type, Float_ > > | build_unique (const Matrix_ &data) const |
Interface to build nearest-neighbor search indices.
Matrix_ | Matrix-like type that satisfies the MockMatrix interface. |
Float_ | Floating point type for the query data and output distances. |
|
pure virtual |
data | Matrix-like object (see MockMatrix ) containing observations in columns and dimensions in rows. |
Implemented in knncolle::BruteforceBuilder< Distance_, Matrix_, Float_ >, knncolle::KmknnBuilder< Distance_, Matrix_, Float_ >, knncolle::L2NormalizedBuilder< Matrix_, Float_ >, and knncolle::VptreeBuilder< Distance_, Matrix_, Float_ >.
|
inline |
data | Matrix-like object (see MockMatrix ) containing observations in columns and dimensions in rows. |
|
inline |
data | Matrix-like object (see MockMatrix ) containing observations in columns and dimensions in rows. |