template<typename Index_, typename Data_, typename Distance_, class Matrix_ = Matrix<Index_, Data_>>
class knncolle::Builder< Index_, Data_, Distance_, Matrix_ >
Interface to build nearest-neighbor search indices.
- Template Parameters
-
Index_ | Integer type for the observation indices. |
Data_ | Numeric type for the input and query data. |
Distance_ | Floating point type for the distances. |
Matrix_ | Class of the input data matrix. This should satisfy the Matrix interface. |
template<typename Index_ , typename Data_ , typename Distance_ , class Matrix_ = Matrix<Index_, Data_>>
virtual Prebuilt< Index_, Data_, Distance_ > * knncolle::Builder< Index_, Data_, Distance_, Matrix_ >::build_raw |
( |
const Matrix_ & | data | ) |
const |
|
pure virtual |
- Parameters
-
data | Object satisfying the Matrix interface, containing observations in columns and dimensions in rows. |
- Returns
- Pointer to a pre-built search index.
Implemented in knncolle::BruteforceBuilder< Index_, Data_, Distance_, Matrix_, DistanceMetric_ >, knncolle::L2NormalizedBuilder< Index_, Data_, Distance_, Normalized_, Matrix_ >, and knncolle::VptreeBuilder< Index_, Data_, Distance_, Matrix_, DistanceMetric_ >.