mlpack::tree::FirstPointIsRoot Class Reference

This class is meant to be used as a choice for the policy class RootPointPolicy of the CoverTree class. More...

List of all members.

Static Public Member Functions

static size_t ChooseRoot (const arma::mat &)
 Return the point to be used as the root point of the cover tree.

Detailed Description

This class is meant to be used as a choice for the policy class RootPointPolicy of the CoverTree class.

This policy determines which point is used for the root node of the cover tree. This particular implementation simply chooses the first point in the dataset as the root. A more complex implementation might choose, for instance, the point with least maximum distance to other points (the closest to the "middle").

Definition at line 39 of file first_point_is_root.hpp.


Member Function Documentation

static size_t mlpack::tree::FirstPointIsRoot::ChooseRoot ( const arma::mat &   )  [inline, static]

Return the point to be used as the root point of the cover tree.

This just returns 0.

Definition at line 46 of file first_point_is_root.hpp.


The documentation for this class was generated from the following file:

Generated on 13 Aug 2014 for MLPACK by  doxygen 1.6.1