mlpack
3.4.2
mlpack-3.4.2
src
mlpack
core
tree
cover_tree
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
18
namespace
mlpack
{
19
namespace
tree {
20
29
class
FirstPointIsRoot
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
prereqs.hpp
The core includes that mlpack expects; standard C++ includes and Armadillo.
mlpack
Linear algebra utility functions, generally performed on matrices or vectors.
Definition:
add_to_cli11.hpp:21
mlpack::tree::FirstPointIsRoot
This class is meant to be used as a choice for the policy class RootPointPolicy of the CoverTree clas...
Definition:
first_point_is_root.hpp:30
mlpack::tree::FirstPointIsRoot::ChooseRoot
static size_t ChooseRoot(const MatType &)
Return the point to be used as the root point of the cover tree.
Definition:
first_point_is_root.hpp:37
Generated by
1.8.20