mlpack 3.4.2
first_point_is_root.hpp
Go to the documentation of this file.
1
13#ifndef MLPACK_CORE_TREE_FIRST_POINT_IS_ROOT_HPP
14#define MLPACK_CORE_TREE_FIRST_POINT_IS_ROOT_HPP
15
16#include <mlpack/prereqs.hpp>
17
18namespace mlpack {
19namespace tree {
20
30{
31 public:
36 template<typename MatType>
37 static size_t ChooseRoot(const MatType& /* dataset */) { return 0; }
38};
39
40} // namespace tree
41} // namespace mlpack
42
43#endif // MLPACK_CORE_TREE_FIRST_POINT_IS_ROOT_HPP
This class is meant to be used as a choice for the policy class RootPointPolicy of the CoverTree clas...
static size_t ChooseRoot(const MatType &)
Return the point to be used as the root point of the cover tree.
Linear algebra utility functions, generally performed on matrices or vectors.
Definition: cv.hpp:1
The core includes that mlpack expects; standard C++ includes and Armadillo.