mlpack  2.0.1
first_point_is_root.hpp
Go to the documentation of this file.
1 
15 #ifndef __MLPACK_CORE_TREE_FIRST_POINT_IS_ROOT_HPP
16 #define __MLPACK_CORE_TREE_FIRST_POINT_IS_ROOT_HPP
17 
18 #include <mlpack/core.hpp>
19 
20 namespace mlpack {
21 namespace tree {
22 
32 {
33  public:
38  template<typename MatType>
39  static size_t ChooseRoot(const MatType& /* dataset */) { return 0; }
40 };
41 
42 } // namespace tree
43 } // namespace mlpack
44 
45 #endif // __MLPACK_CORE_TREE_FIRST_POINT_IS_ROOT_HPP
Linear algebra utility functions, generally performed on matrices or vectors.
static size_t ChooseRoot(const MatType &)
Return the point to be used as the root point of the cover tree.
Include all of the base components required to write MLPACK methods, and the main MLPACK Doxygen docu...
This class is meant to be used as a choice for the policy class RootPointPolicy of the CoverTree clas...