knncolle
Collection of KNN methods in C++
Loading...
Searching...
No Matches
Prebuilt.hpp
Go to the documentation of this file.
1#ifndef KNNCOLLE_PREBUILT_HPP
2#define KNNCOLLE_PREBUILT_HPP
3
4#include <memory>
5#include "Searcher.hpp"
6
13namespace knncolle {
14
27template<typename Dim_, typename Index_, typename Float_>
28class Prebuilt {
29public:
33 virtual Index_ num_observations() const = 0;
34
38 virtual Dim_ num_dimensions() const = 0;
39
43 virtual ~Prebuilt() = default;
48public:
53 virtual std::unique_ptr<Searcher<Index_, Float_> > initialize() const = 0;
54};
55
56}
57
58#endif
Interface for searching nearest-neighbor indices.
Interface for prebuilt nearest-neighbor search indices.
Definition Prebuilt.hpp:28
virtual Index_ num_observations() const =0
virtual std::unique_ptr< Searcher< Index_, Float_ > > initialize() const =0
virtual Dim_ num_dimensions() const =0
Collection of KNN algorithms.
Definition Bruteforce.hpp:22