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_ | Numeric type for the distances, usually floating-point. |
| 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_>>
| auto knncolle::Builder< Index_, Data_, Distance_, Matrix_ >::build_known_raw |
( |
const Matrix_ & | data | ) |
const |
|
inline |
- Parameters
-
| data | Object satisfying the Matrix interface, containing observations in columns and dimensions in rows. |
- Returns
- Pointer to a
Prebuilt subclass.
Subclasses may override this method to return a pointer to a specific Prebuilt subclass. This is used for devirtualization in other knncolle functions. If no override is provided, build_raw() is called instead.
template<typename Index_ , typename Data_ , typename Distance_ , class Matrix_ = Matrix<Index_, Data_>>
| auto knncolle::Builder< Index_, Data_, Distance_, Matrix_ >::build_known_shared |
( |
const Matrix_ & | data | ) |
const |
|
inline |
- Parameters
-
| data | Object satisfying the Matrix interface, containing observations in columns and dimensions in rows. |
- Returns
- Shared pointer to a
Prebuilt subclass.
Subclasses may override this method to return a pointer to a specific Prebuilt subclass. This is used for devirtualization in other knncolle functions. If no override is provided, build_shared() is called instead.
template<typename Index_ , typename Data_ , typename Distance_ , class Matrix_ = Matrix<Index_, Data_>>
| auto knncolle::Builder< Index_, Data_, Distance_, Matrix_ >::build_known_unique |
( |
const Matrix_ & | data | ) |
const |
|
inline |
- Parameters
-
| data | Object satisfying the Matrix interface, containing observations in columns and dimensions in rows. |
- Returns
- Unique pointer to a
Prebuilt subclass.
Subclasses may override this method to return a pointer to a specific Prebuilt subclass. This is used for devirtualization in other knncolle functions. If no override is provided, build_unique() is called instead.