---
name: "mlpack_tree_FirstPointIsRoot"
section: "3"
platform: "linux"
package: "mlpack-doc"
version: "1.0.10-1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/mlpack_tree_FirstPointIsRoot"
---

# mlpack\_tree\_FirstPointIsRoot(3)

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

## NAME

mlpack::tree::FirstPointIsRoot -

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

## SYNOPSIS

### 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.

## Author

Generated automatically by Doxygen for MLPACK from the source code.
