Files
mlpack/doc/html/classmlpack_1_1tree_1_1CoverTree.html
T

3141 lines
201 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>mlpack: mlpack::tree::CoverTree&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="extra-stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">mlpack
&#160;<span id="projectnumber">master</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&#160;List</span></a></li>
<li><a href="classes.html"><span>Class&#160;Index</span></a></li>
<li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&#160;Members</span></a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespacemlpack.html">mlpack</a></li><li class="navelem"><a class="el" href="namespacemlpack_1_1tree.html">tree</a></li><li class="navelem"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">CoverTree</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="classmlpack_1_1tree_1_1CoverTree-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">mlpack::tree::CoverTree&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt; Class Template Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>A cover tree is a tree specifically designed to speed up nearest-neighbor computation in high-dimensional spaces.
<a href="classmlpack_1_1tree_1_1CoverTree.html#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree_1_1DualTreeTraverser.html">DualTreeTraverser</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">A dual-tree cover tree traverser; see dual_tree_traverser.hpp. <a href="classmlpack_1_1tree_1_1CoverTree_1_1DualTreeTraverser.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree_1_1SingleTreeTraverser.html">SingleTreeTraverser</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">A single-tree cover tree traverser; see single_tree_traverser.hpp for implementation. <a href="classmlpack_1_1tree_1_1CoverTree_1_1SingleTreeTraverser.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a6ad87f457dcb3c5fda1a02ca2c630847"><td class="memTemplParams" colspan="2">template&lt;typename RuleType &gt; </td></tr>
<tr class="memitem:a6ad87f457dcb3c5fda1a02ca2c630847"><td class="memTemplItemLeft" align="right" valign="top">using&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a6ad87f457dcb3c5fda1a02ca2c630847">BreadthFirstDualTreeTraverser</a> = <a class="el" href="classmlpack_1_1tree_1_1CoverTree_1_1DualTreeTraverser.html">DualTreeTraverser</a>&lt; RuleType &gt;</td></tr>
<tr class="separator:a6ad87f457dcb3c5fda1a02ca2c630847"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a642f3b132a13c354b6216392a349e10f"><td class="memItemLeft" align="right" valign="top">typedef MatType::elem_type&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a></td></tr>
<tr class="memdesc:a642f3b132a13c354b6216392a349e10f"><td class="mdescLeft">&#160;</td><td class="mdescRight">The type held by the matrix type. <a href="#a642f3b132a13c354b6216392a349e10f">More...</a><br /></td></tr>
<tr class="separator:a642f3b132a13c354b6216392a349e10f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a75114973b7b4ec9b6459a2a2ffb8eddc"><td class="memItemLeft" align="right" valign="top">typedef MatType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a75114973b7b4ec9b6459a2a2ffb8eddc">Mat</a></td></tr>
<tr class="memdesc:a75114973b7b4ec9b6459a2a2ffb8eddc"><td class="mdescLeft">&#160;</td><td class="mdescRight">So that other classes can access the matrix type. <a href="#a75114973b7b4ec9b6459a2a2ffb8eddc">More...</a><br /></td></tr>
<tr class="separator:a75114973b7b4ec9b6459a2a2ffb8eddc"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a3df0aa1fec8459e5e55bceee89545a6e"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a3df0aa1fec8459e5e55bceee89545a6e">CoverTree</a> (const MatType &amp;<a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#adfd47c0f8ba7d5872aacc8ec076173e9">dataset</a>, const <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a> <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a02f91a888a58e108a3862ac527548e6a">base</a>=2.0, MetricType *<a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#ae06af16ea4c191e6bf6b83b98d68446e">metric</a>=NULL)</td></tr>
<tr class="memdesc:a3df0aa1fec8459e5e55bceee89545a6e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create the cover tree with the given dataset and given base. <a href="#a3df0aa1fec8459e5e55bceee89545a6e">More...</a><br /></td></tr>
<tr class="separator:a3df0aa1fec8459e5e55bceee89545a6e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a826e5c232306bf6368a8ad9ad4e464d9"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a826e5c232306bf6368a8ad9ad4e464d9">CoverTree</a> (const MatType &amp;<a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#adfd47c0f8ba7d5872aacc8ec076173e9">dataset</a>, MetricType &amp;<a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#ae06af16ea4c191e6bf6b83b98d68446e">metric</a>, const <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a> <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a02f91a888a58e108a3862ac527548e6a">base</a>=2.0)</td></tr>
<tr class="memdesc:a826e5c232306bf6368a8ad9ad4e464d9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create the cover tree with the given dataset and the given instantiated metric. <a href="#a826e5c232306bf6368a8ad9ad4e464d9">More...</a><br /></td></tr>
<tr class="separator:a826e5c232306bf6368a8ad9ad4e464d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae70dc14e53d01ffd7f540dc3b33ab9a4"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#ae70dc14e53d01ffd7f540dc3b33ab9a4">CoverTree</a> (MatType &amp;&amp;<a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#adfd47c0f8ba7d5872aacc8ec076173e9">dataset</a>, const <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a> <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a02f91a888a58e108a3862ac527548e6a">base</a>=2.0)</td></tr>
<tr class="memdesc:ae70dc14e53d01ffd7f540dc3b33ab9a4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create the cover tree with the given dataset, taking ownership of the dataset. <a href="#ae70dc14e53d01ffd7f540dc3b33ab9a4">More...</a><br /></td></tr>
<tr class="separator:ae70dc14e53d01ffd7f540dc3b33ab9a4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae2eeb3c58aae3eeb4fa1720ee6da6148"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#ae2eeb3c58aae3eeb4fa1720ee6da6148">CoverTree</a> (MatType &amp;&amp;<a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#adfd47c0f8ba7d5872aacc8ec076173e9">dataset</a>, MetricType &amp;<a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#ae06af16ea4c191e6bf6b83b98d68446e">metric</a>, const <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a> <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a02f91a888a58e108a3862ac527548e6a">base</a>=2.0)</td></tr>
<tr class="memdesc:ae2eeb3c58aae3eeb4fa1720ee6da6148"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create the cover tree with the given dataset and the given instantiated metric, taking ownership of the dataset. <a href="#ae2eeb3c58aae3eeb4fa1720ee6da6148">More...</a><br /></td></tr>
<tr class="separator:ae2eeb3c58aae3eeb4fa1720ee6da6148"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad74b0613756174481ade5c1d70b54b98"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#ad74b0613756174481ade5c1d70b54b98">CoverTree</a> (const MatType &amp;<a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#adfd47c0f8ba7d5872aacc8ec076173e9">dataset</a>, const <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a> <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a02f91a888a58e108a3862ac527548e6a">base</a>, const size_t pointIndex, const int <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a268da22f80377d7ebb25b9d12b2128b4">scale</a>, <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">CoverTree</a> *<a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a47dad54f3d619550d5c9a4e077b3b32d">parent</a>, const <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a> <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a0601970c11e745c323269e9782dfbf0e">parentDistance</a>, arma::Col&lt; size_t &gt; &amp;indices, arma::vec &amp;distances, size_t nearSetSize, size_t &amp;farSetSize, size_t &amp;usedSetSize, MetricType &amp;<a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#ae06af16ea4c191e6bf6b83b98d68446e">metric</a>=NULL)</td></tr>
<tr class="memdesc:ad74b0613756174481ade5c1d70b54b98"><td class="mdescLeft">&#160;</td><td class="mdescRight">Construct a child cover tree node. <a href="#ad74b0613756174481ade5c1d70b54b98">More...</a><br /></td></tr>
<tr class="separator:ad74b0613756174481ade5c1d70b54b98"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a82c67e0d4407065cc105b189acadbe02"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a82c67e0d4407065cc105b189acadbe02">CoverTree</a> (const MatType &amp;<a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#adfd47c0f8ba7d5872aacc8ec076173e9">dataset</a>, const <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a> <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a02f91a888a58e108a3862ac527548e6a">base</a>, const size_t pointIndex, const int <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a268da22f80377d7ebb25b9d12b2128b4">scale</a>, <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">CoverTree</a> *<a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a47dad54f3d619550d5c9a4e077b3b32d">parent</a>, const <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a> <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a0601970c11e745c323269e9782dfbf0e">parentDistance</a>, const <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a> <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a290c1faf9cc9ae2357bec59a2f1502dc">furthestDescendantDistance</a>, MetricType *<a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#ae06af16ea4c191e6bf6b83b98d68446e">metric</a>=NULL)</td></tr>
<tr class="memdesc:a82c67e0d4407065cc105b189acadbe02"><td class="mdescLeft">&#160;</td><td class="mdescRight">Manually construct a cover tree node; no tree assembly is done in this constructor, and children must be added manually (use <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a0027dac9b598ae3c4541b2db36a8b111" title="Modify the children manually (maybe not a great idea). ">Children()</a>). <a href="#a82c67e0d4407065cc105b189acadbe02">More...</a><br /></td></tr>
<tr class="separator:a82c67e0d4407065cc105b189acadbe02"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a537db7b52e2c3426604ad6f34710dd33"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a537db7b52e2c3426604ad6f34710dd33">CoverTree</a> (const <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">CoverTree</a> &amp;other)</td></tr>
<tr class="memdesc:a537db7b52e2c3426604ad6f34710dd33"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a cover tree from another tree. <a href="#a537db7b52e2c3426604ad6f34710dd33">More...</a><br /></td></tr>
<tr class="separator:a537db7b52e2c3426604ad6f34710dd33"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8720353fb2e6f7b46c79424302cf071c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a8720353fb2e6f7b46c79424302cf071c">CoverTree</a> (<a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">CoverTree</a> &amp;&amp;other)</td></tr>
<tr class="memdesc:a8720353fb2e6f7b46c79424302cf071c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Move constructor for a Cover Tree, possess all the members of the given tree. <a href="#a8720353fb2e6f7b46c79424302cf071c">More...</a><br /></td></tr>
<tr class="separator:a8720353fb2e6f7b46c79424302cf071c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa57ca8739c13b7bf3437e94eacc40b9d"><td class="memTemplParams" colspan="2">template&lt;typename Archive &gt; </td></tr>
<tr class="memitem:aa57ca8739c13b7bf3437e94eacc40b9d"><td class="memTemplItemLeft" align="right" valign="top">&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#aa57ca8739c13b7bf3437e94eacc40b9d">CoverTree</a> (Archive &amp;ar, const typename <a class="el" href="namespacestd.html#ac774dbdf8ae769197167b2a8273462fc">std::enable_if_t</a>&lt; Archive::is_loading::value &gt; *=0)</td></tr>
<tr class="memdesc:aa57ca8739c13b7bf3437e94eacc40b9d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a cover tree from a <a class="el" href="namespaceboost_1_1serialization.html">boost::serialization</a> archive. <a href="#aa57ca8739c13b7bf3437e94eacc40b9d">More...</a><br /></td></tr>
<tr class="separator:aa57ca8739c13b7bf3437e94eacc40b9d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a33cc8ae8c40dc16c733ebf1cd1711bd9"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a33cc8ae8c40dc16c733ebf1cd1711bd9">~CoverTree</a> ()</td></tr>
<tr class="memdesc:a33cc8ae8c40dc16c733ebf1cd1711bd9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Delete this cover tree node and its children. <a href="#a33cc8ae8c40dc16c733ebf1cd1711bd9">More...</a><br /></td></tr>
<tr class="separator:a33cc8ae8c40dc16c733ebf1cd1711bd9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a427fdef7116fa186fcbd97c7badba608"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a427fdef7116fa186fcbd97c7badba608">Base</a> () const </td></tr>
<tr class="memdesc:a427fdef7116fa186fcbd97c7badba608"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the base. <a href="#a427fdef7116fa186fcbd97c7badba608">More...</a><br /></td></tr>
<tr class="separator:a427fdef7116fa186fcbd97c7badba608"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1674fe051bbe42ffae646d100b2eb4a7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a1674fe051bbe42ffae646d100b2eb4a7">Base</a> ()</td></tr>
<tr class="memdesc:a1674fe051bbe42ffae646d100b2eb4a7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Modify the base; don't do this, you'll break everything. <a href="#a1674fe051bbe42ffae646d100b2eb4a7">More...</a><br /></td></tr>
<tr class="separator:a1674fe051bbe42ffae646d100b2eb4a7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a98990555dafef479f4cc1afa125daebb"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a98990555dafef479f4cc1afa125daebb">Center</a> (arma::vec &amp;center) const </td></tr>
<tr class="memdesc:a98990555dafef479f4cc1afa125daebb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the center of the node and store it in the given vector. <a href="#a98990555dafef479f4cc1afa125daebb">More...</a><br /></td></tr>
<tr class="separator:a98990555dafef479f4cc1afa125daebb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0737407fbd8c454844933c83d574cfa7"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">CoverTree</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a0737407fbd8c454844933c83d574cfa7">Child</a> (const size_t index) const </td></tr>
<tr class="memdesc:a0737407fbd8c454844933c83d574cfa7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get a particular child node. <a href="#a0737407fbd8c454844933c83d574cfa7">More...</a><br /></td></tr>
<tr class="separator:a0737407fbd8c454844933c83d574cfa7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2cfa2e7d58176a85d2a52dfa7f569290"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">CoverTree</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a2cfa2e7d58176a85d2a52dfa7f569290">Child</a> (const size_t index)</td></tr>
<tr class="memdesc:a2cfa2e7d58176a85d2a52dfa7f569290"><td class="mdescLeft">&#160;</td><td class="mdescRight">Modify a particular child node. <a href="#a2cfa2e7d58176a85d2a52dfa7f569290">More...</a><br /></td></tr>
<tr class="separator:a2cfa2e7d58176a85d2a52dfa7f569290"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6a9281286d39fc8fff2e1e65a1cbfc07"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">CoverTree</a> *&amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a6a9281286d39fc8fff2e1e65a1cbfc07">ChildPtr</a> (const size_t index)</td></tr>
<tr class="separator:a6a9281286d39fc8fff2e1e65a1cbfc07"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a757545c9dda7e527efb618c09d468b87"><td class="memItemLeft" align="right" valign="top">const std::vector&lt; <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">CoverTree</a> * &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a757545c9dda7e527efb618c09d468b87">Children</a> () const </td></tr>
<tr class="memdesc:a757545c9dda7e527efb618c09d468b87"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the children. <a href="#a757545c9dda7e527efb618c09d468b87">More...</a><br /></td></tr>
<tr class="separator:a757545c9dda7e527efb618c09d468b87"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0027dac9b598ae3c4541b2db36a8b111"><td class="memItemLeft" align="right" valign="top">std::vector&lt; <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">CoverTree</a> * &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a0027dac9b598ae3c4541b2db36a8b111">Children</a> ()</td></tr>
<tr class="memdesc:a0027dac9b598ae3c4541b2db36a8b111"><td class="mdescLeft">&#160;</td><td class="mdescRight">Modify the children manually (maybe not a great idea). <a href="#a0027dac9b598ae3c4541b2db36a8b111">More...</a><br /></td></tr>
<tr class="separator:a0027dac9b598ae3c4541b2db36a8b111"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae60926ac52a340ab6460f0b3166c4560"><td class="memItemLeft" align="right" valign="top">const MatType &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#ae60926ac52a340ab6460f0b3166c4560">Dataset</a> () const </td></tr>
<tr class="memdesc:ae60926ac52a340ab6460f0b3166c4560"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get a reference to the dataset. <a href="#ae60926ac52a340ab6460f0b3166c4560">More...</a><br /></td></tr>
<tr class="separator:ae60926ac52a340ab6460f0b3166c4560"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afacf661b4d068be353359093c36e297e"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#afacf661b4d068be353359093c36e297e">Descendant</a> (const size_t index) const </td></tr>
<tr class="memdesc:afacf661b4d068be353359093c36e297e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the index of a particular descendant point. <a href="#afacf661b4d068be353359093c36e297e">More...</a><br /></td></tr>
<tr class="separator:afacf661b4d068be353359093c36e297e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3e9bc47574fc407b975c01f5f0b447c9"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a3e9bc47574fc407b975c01f5f0b447c9">DistanceComps</a> () const </td></tr>
<tr class="separator:a3e9bc47574fc407b975c01f5f0b447c9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a511284621893472e2b577b2c67f0c3c9"><td class="memItemLeft" align="right" valign="top">size_t &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a511284621893472e2b577b2c67f0c3c9">DistanceComps</a> ()</td></tr>
<tr class="separator:a511284621893472e2b577b2c67f0c3c9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9d080b25267d41c1f9b30da0b477184a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a9d080b25267d41c1f9b30da0b477184a">FurthestDescendantDistance</a> () const </td></tr>
<tr class="memdesc:a9d080b25267d41c1f9b30da0b477184a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the distance from the center of the node to the furthest descendant. <a href="#a9d080b25267d41c1f9b30da0b477184a">More...</a><br /></td></tr>
<tr class="separator:a9d080b25267d41c1f9b30da0b477184a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2eafe6d384d67aad28d23b7aee4ba313"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a2eafe6d384d67aad28d23b7aee4ba313">FurthestDescendantDistance</a> ()</td></tr>
<tr class="memdesc:a2eafe6d384d67aad28d23b7aee4ba313"><td class="mdescLeft">&#160;</td><td class="mdescRight">Modify the distance from the center of the node to the furthest descendant. <a href="#a2eafe6d384d67aad28d23b7aee4ba313">More...</a><br /></td></tr>
<tr class="separator:a2eafe6d384d67aad28d23b7aee4ba313"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab198744571bcb2258d2c30bd32be0f60"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#ab198744571bcb2258d2c30bd32be0f60">FurthestPointDistance</a> () const </td></tr>
<tr class="memdesc:ab198744571bcb2258d2c30bd32be0f60"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the distance to the furthest point. This is always 0 for cover trees. <a href="#ab198744571bcb2258d2c30bd32be0f60">More...</a><br /></td></tr>
<tr class="separator:ab198744571bcb2258d2c30bd32be0f60"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3d8a884391b492c4f774d81c0ee665ba"><td class="memTemplParams" colspan="2">template&lt;typename VecType &gt; </td></tr>
<tr class="memitem:a3d8a884391b492c4f774d81c0ee665ba"><td class="memTemplItemLeft" align="right" valign="top">size_t&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a3d8a884391b492c4f774d81c0ee665ba">GetFurthestChild</a> (const VecType &amp;<a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#abe65d8768e7599c6a5278cf35c78d97e">point</a>, typename <a class="el" href="namespacestd.html#ac774dbdf8ae769197167b2a8273462fc">std::enable_if_t</a>&lt; <a class="el" href="structIsVector.html">IsVector</a>&lt; VecType &gt;::value &gt; *=0)</td></tr>
<tr class="memdesc:a3d8a884391b492c4f774d81c0ee665ba"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the index of the furthest child node to the given query point. <a href="#a3d8a884391b492c4f774d81c0ee665ba">More...</a><br /></td></tr>
<tr class="separator:a3d8a884391b492c4f774d81c0ee665ba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a93c73fba945a33911d95b6014497a511"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a93c73fba945a33911d95b6014497a511">GetFurthestChild</a> (const <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">CoverTree</a> &amp;queryNode)</td></tr>
<tr class="memdesc:a93c73fba945a33911d95b6014497a511"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the index of the furthest child node to the given query node. <a href="#a93c73fba945a33911d95b6014497a511">More...</a><br /></td></tr>
<tr class="separator:a93c73fba945a33911d95b6014497a511"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abf42b5bd15362b7f18d3b61958851826"><td class="memTemplParams" colspan="2">template&lt;typename VecType &gt; </td></tr>
<tr class="memitem:abf42b5bd15362b7f18d3b61958851826"><td class="memTemplItemLeft" align="right" valign="top">size_t&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#abf42b5bd15362b7f18d3b61958851826">GetNearestChild</a> (const VecType &amp;<a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#abe65d8768e7599c6a5278cf35c78d97e">point</a>, typename <a class="el" href="namespacestd.html#ac774dbdf8ae769197167b2a8273462fc">std::enable_if_t</a>&lt; <a class="el" href="structIsVector.html">IsVector</a>&lt; VecType &gt;::value &gt; *=0)</td></tr>
<tr class="memdesc:abf42b5bd15362b7f18d3b61958851826"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the index of the nearest child node to the given query point. <a href="#abf42b5bd15362b7f18d3b61958851826">More...</a><br /></td></tr>
<tr class="separator:abf42b5bd15362b7f18d3b61958851826"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9ffe9b0276ff5e3a3a4ef24d60e2cf6b"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a9ffe9b0276ff5e3a3a4ef24d60e2cf6b">GetNearestChild</a> (const <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">CoverTree</a> &amp;queryNode)</td></tr>
<tr class="memdesc:a9ffe9b0276ff5e3a3a4ef24d60e2cf6b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the index of the nearest child node to the given query node. <a href="#a9ffe9b0276ff5e3a3a4ef24d60e2cf6b">More...</a><br /></td></tr>
<tr class="separator:a9ffe9b0276ff5e3a3a4ef24d60e2cf6b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3bb1efed1a28a8fc7f5171cb2eba8505"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a3bb1efed1a28a8fc7f5171cb2eba8505">IsLeaf</a> () const </td></tr>
<tr class="separator:a3bb1efed1a28a8fc7f5171cb2eba8505"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac34136681c6ed01506c860dd1e815825"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#ac34136681c6ed01506c860dd1e815825">MaxDistance</a> (const <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">CoverTree</a> &amp;other) const </td></tr>
<tr class="memdesc:ac34136681c6ed01506c860dd1e815825"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the maximum distance to another node. <a href="#ac34136681c6ed01506c860dd1e815825">More...</a><br /></td></tr>
<tr class="separator:ac34136681c6ed01506c860dd1e815825"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa92c3e282821170705c946d15421d778"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#aa92c3e282821170705c946d15421d778">MaxDistance</a> (const <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">CoverTree</a> &amp;other, const <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a> distance) const </td></tr>
<tr class="memdesc:aa92c3e282821170705c946d15421d778"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the maximum distance to another node given that the point-to-point distance has already been calculated. <a href="#aa92c3e282821170705c946d15421d778">More...</a><br /></td></tr>
<tr class="separator:aa92c3e282821170705c946d15421d778"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a91d061eee88cba38709cfbf6f458580f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a91d061eee88cba38709cfbf6f458580f">MaxDistance</a> (const arma::vec &amp;other) const </td></tr>
<tr class="memdesc:a91d061eee88cba38709cfbf6f458580f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the maximum distance to another point. <a href="#a91d061eee88cba38709cfbf6f458580f">More...</a><br /></td></tr>
<tr class="separator:a91d061eee88cba38709cfbf6f458580f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a11eaf5874bf8f5c996e83856c8cdeeb7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a11eaf5874bf8f5c996e83856c8cdeeb7">MaxDistance</a> (const arma::vec &amp;other, const <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a> distance) const </td></tr>
<tr class="memdesc:a11eaf5874bf8f5c996e83856c8cdeeb7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the maximum distance to another point given that the distance from the center to the point has already been calculated. <a href="#a11eaf5874bf8f5c996e83856c8cdeeb7">More...</a><br /></td></tr>
<tr class="separator:a11eaf5874bf8f5c996e83856c8cdeeb7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6b207b875e2417607b0b6aec34f8906e"><td class="memItemLeft" align="right" valign="top">MetricType &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a6b207b875e2417607b0b6aec34f8906e">Metric</a> () const </td></tr>
<tr class="memdesc:a6b207b875e2417607b0b6aec34f8906e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the instantiated metric. <a href="#a6b207b875e2417607b0b6aec34f8906e">More...</a><br /></td></tr>
<tr class="separator:a6b207b875e2417607b0b6aec34f8906e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a224890c6d0c8dd58bb7b9761990cac4e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a224890c6d0c8dd58bb7b9761990cac4e">MinDistance</a> (const <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">CoverTree</a> &amp;other) const </td></tr>
<tr class="memdesc:a224890c6d0c8dd58bb7b9761990cac4e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the minimum distance to another node. <a href="#a224890c6d0c8dd58bb7b9761990cac4e">More...</a><br /></td></tr>
<tr class="separator:a224890c6d0c8dd58bb7b9761990cac4e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae9909712ecc46641ade692cba5fae929"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#ae9909712ecc46641ade692cba5fae929">MinDistance</a> (const <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">CoverTree</a> &amp;other, const <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a> distance) const </td></tr>
<tr class="memdesc:ae9909712ecc46641ade692cba5fae929"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the minimum distance to another node given that the point-to-point distance has already been calculated. <a href="#ae9909712ecc46641ade692cba5fae929">More...</a><br /></td></tr>
<tr class="separator:ae9909712ecc46641ade692cba5fae929"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6249d58ab805cdf8be3dc54b6468e1e5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a6249d58ab805cdf8be3dc54b6468e1e5">MinDistance</a> (const arma::vec &amp;other) const </td></tr>
<tr class="memdesc:a6249d58ab805cdf8be3dc54b6468e1e5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the minimum distance to another point. <a href="#a6249d58ab805cdf8be3dc54b6468e1e5">More...</a><br /></td></tr>
<tr class="separator:a6249d58ab805cdf8be3dc54b6468e1e5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a90f936936e8e17bd35ab813b7cc75c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a4a90f936936e8e17bd35ab813b7cc75c">MinDistance</a> (const arma::vec &amp;other, const <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a> distance) const </td></tr>
<tr class="memdesc:a4a90f936936e8e17bd35ab813b7cc75c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the minimum distance to another point given that the distance from the center to the point has already been calculated. <a href="#a4a90f936936e8e17bd35ab813b7cc75c">More...</a><br /></td></tr>
<tr class="separator:a4a90f936936e8e17bd35ab813b7cc75c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4f39bc6648e21a7aecaaf5ca71c69dfd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a4f39bc6648e21a7aecaaf5ca71c69dfd">MinimumBoundDistance</a> () const </td></tr>
<tr class="memdesc:a4f39bc6648e21a7aecaaf5ca71c69dfd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the minimum distance from the center to any bound edge (this is the same as furthestDescendantDistance). <a href="#a4f39bc6648e21a7aecaaf5ca71c69dfd">More...</a><br /></td></tr>
<tr class="separator:a4f39bc6648e21a7aecaaf5ca71c69dfd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3b8f146e0dd0e1b93fc1323337b03015"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a3b8f146e0dd0e1b93fc1323337b03015">NumChildren</a> () const </td></tr>
<tr class="memdesc:a3b8f146e0dd0e1b93fc1323337b03015"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the number of children. <a href="#a3b8f146e0dd0e1b93fc1323337b03015">More...</a><br /></td></tr>
<tr class="separator:a3b8f146e0dd0e1b93fc1323337b03015"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a636250f6263af229c53ba39ff8d90c58"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a636250f6263af229c53ba39ff8d90c58">NumDescendants</a> () const </td></tr>
<tr class="memdesc:a636250f6263af229c53ba39ff8d90c58"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the number of descendant points. <a href="#a636250f6263af229c53ba39ff8d90c58">More...</a><br /></td></tr>
<tr class="separator:a636250f6263af229c53ba39ff8d90c58"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a960fe5e58b30eee324f09a274acefbbd"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a960fe5e58b30eee324f09a274acefbbd">NumPoints</a> () const </td></tr>
<tr class="separator:a960fe5e58b30eee324f09a274acefbbd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad6c8c4015ce8cca967cc8984be46ee17"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">CoverTree</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#ad6c8c4015ce8cca967cc8984be46ee17">Parent</a> () const </td></tr>
<tr class="memdesc:ad6c8c4015ce8cca967cc8984be46ee17"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the parent node. <a href="#ad6c8c4015ce8cca967cc8984be46ee17">More...</a><br /></td></tr>
<tr class="separator:ad6c8c4015ce8cca967cc8984be46ee17"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aecaec628cffa169aee3ad423b2eda993"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">CoverTree</a> *&amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#aecaec628cffa169aee3ad423b2eda993">Parent</a> ()</td></tr>
<tr class="memdesc:aecaec628cffa169aee3ad423b2eda993"><td class="mdescLeft">&#160;</td><td class="mdescRight">Modify the parent node. <a href="#aecaec628cffa169aee3ad423b2eda993">More...</a><br /></td></tr>
<tr class="separator:aecaec628cffa169aee3ad423b2eda993"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5e7ae2e58272d84c8f708940de346ae0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a5e7ae2e58272d84c8f708940de346ae0">ParentDistance</a> () const </td></tr>
<tr class="memdesc:a5e7ae2e58272d84c8f708940de346ae0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the distance to the parent. <a href="#a5e7ae2e58272d84c8f708940de346ae0">More...</a><br /></td></tr>
<tr class="separator:a5e7ae2e58272d84c8f708940de346ae0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3a07575869b17786688799abd21d0778"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a3a07575869b17786688799abd21d0778">ParentDistance</a> ()</td></tr>
<tr class="memdesc:a3a07575869b17786688799abd21d0778"><td class="mdescLeft">&#160;</td><td class="mdescRight">Modify the distance to the parent. <a href="#a3a07575869b17786688799abd21d0778">More...</a><br /></td></tr>
<tr class="separator:a3a07575869b17786688799abd21d0778"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaf6a77d1e77e4e18f30d3a099e805e0f"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#aaf6a77d1e77e4e18f30d3a099e805e0f">Point</a> () const </td></tr>
<tr class="memdesc:aaf6a77d1e77e4e18f30d3a099e805e0f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the index of the point which this node represents. <a href="#aaf6a77d1e77e4e18f30d3a099e805e0f">More...</a><br /></td></tr>
<tr class="separator:aaf6a77d1e77e4e18f30d3a099e805e0f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab3f8e37fab1a6993896440002de36402"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#ab3f8e37fab1a6993896440002de36402">Point</a> (const size_t) const </td></tr>
<tr class="memdesc:ab3f8e37fab1a6993896440002de36402"><td class="mdescLeft">&#160;</td><td class="mdescRight">For compatibility with other trees; the argument is ignored. <a href="#ab3f8e37fab1a6993896440002de36402">More...</a><br /></td></tr>
<tr class="separator:ab3f8e37fab1a6993896440002de36402"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab9cb1ec67855df16783c9925c36f8370"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmlpack_1_1math_1_1RangeType.html">math::RangeType</a>&lt; <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#ab9cb1ec67855df16783c9925c36f8370">RangeDistance</a> (const <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">CoverTree</a> &amp;other) const </td></tr>
<tr class="memdesc:ab9cb1ec67855df16783c9925c36f8370"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the minimum and maximum distance to another node. <a href="#ab9cb1ec67855df16783c9925c36f8370">More...</a><br /></td></tr>
<tr class="separator:ab9cb1ec67855df16783c9925c36f8370"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2838478e41dc5f7c5737fb5723e26a4e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmlpack_1_1math_1_1RangeType.html">math::RangeType</a>&lt; <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a2838478e41dc5f7c5737fb5723e26a4e">RangeDistance</a> (const <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">CoverTree</a> &amp;other, const <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a> distance) const </td></tr>
<tr class="memdesc:a2838478e41dc5f7c5737fb5723e26a4e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the minimum and maximum distance to another node given that the point-to-point distance has already been calculated. <a href="#a2838478e41dc5f7c5737fb5723e26a4e">More...</a><br /></td></tr>
<tr class="separator:a2838478e41dc5f7c5737fb5723e26a4e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab822714680aea9c61d508e98ec947097"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmlpack_1_1math_1_1RangeType.html">math::RangeType</a>&lt; <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#ab822714680aea9c61d508e98ec947097">RangeDistance</a> (const arma::vec &amp;other) const </td></tr>
<tr class="memdesc:ab822714680aea9c61d508e98ec947097"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the minimum and maximum distance to another point. <a href="#ab822714680aea9c61d508e98ec947097">More...</a><br /></td></tr>
<tr class="separator:ab822714680aea9c61d508e98ec947097"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a776d321e871a93c0eac6bfdeee974cf5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmlpack_1_1math_1_1RangeType.html">math::RangeType</a>&lt; <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a776d321e871a93c0eac6bfdeee974cf5">RangeDistance</a> (const arma::vec &amp;other, const <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a> distance) const </td></tr>
<tr class="memdesc:a776d321e871a93c0eac6bfdeee974cf5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the minimum and maximum distance to another point given that the point-to-point distance has already been calculated. <a href="#a776d321e871a93c0eac6bfdeee974cf5">More...</a><br /></td></tr>
<tr class="separator:a776d321e871a93c0eac6bfdeee974cf5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac6ed268c6f2fadd341f825f2d6a7c4be"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#ac6ed268c6f2fadd341f825f2d6a7c4be">Scale</a> () const </td></tr>
<tr class="memdesc:ac6ed268c6f2fadd341f825f2d6a7c4be"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the scale of this node. <a href="#ac6ed268c6f2fadd341f825f2d6a7c4be">More...</a><br /></td></tr>
<tr class="separator:ac6ed268c6f2fadd341f825f2d6a7c4be"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1e0ba4c2ad71797c47a86368e6b64a4d"><td class="memItemLeft" align="right" valign="top">int &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a1e0ba4c2ad71797c47a86368e6b64a4d">Scale</a> ()</td></tr>
<tr class="memdesc:a1e0ba4c2ad71797c47a86368e6b64a4d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Modify the scale of this node. Be careful... <a href="#a1e0ba4c2ad71797c47a86368e6b64a4d">More...</a><br /></td></tr>
<tr class="separator:a1e0ba4c2ad71797c47a86368e6b64a4d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a749d57e31307ae682f68981c33895792"><td class="memTemplParams" colspan="2">template&lt;typename Archive &gt; </td></tr>
<tr class="memitem:a749d57e31307ae682f68981c33895792"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a749d57e31307ae682f68981c33895792">Serialize</a> (Archive &amp;ar, const unsigned int)</td></tr>
<tr class="memdesc:a749d57e31307ae682f68981c33895792"><td class="mdescLeft">&#160;</td><td class="mdescRight">Serialize the tree. <a href="#a749d57e31307ae682f68981c33895792">More...</a><br /></td></tr>
<tr class="separator:a749d57e31307ae682f68981c33895792"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a805333d4c49319bc9a65392eff723c7e"><td class="memItemLeft" align="right" valign="top">const StatisticType &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a805333d4c49319bc9a65392eff723c7e">Stat</a> () const </td></tr>
<tr class="memdesc:a805333d4c49319bc9a65392eff723c7e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the statistic for this node. <a href="#a805333d4c49319bc9a65392eff723c7e">More...</a><br /></td></tr>
<tr class="separator:a805333d4c49319bc9a65392eff723c7e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a05a9c01433f36a9f21f67abc13a1ef37"><td class="memItemLeft" align="right" valign="top">StatisticType &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a05a9c01433f36a9f21f67abc13a1ef37">Stat</a> ()</td></tr>
<tr class="memdesc:a05a9c01433f36a9f21f67abc13a1ef37"><td class="mdescLeft">&#160;</td><td class="mdescRight">Modify the statistic for this node. <a href="#a05a9c01433f36a9f21f67abc13a1ef37">More...</a><br /></td></tr>
<tr class="separator:a05a9c01433f36a9f21f67abc13a1ef37"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a3e8ba98ec80f4ed426dc50b5a5aa2da6"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a3e8ba98ec80f4ed426dc50b5a5aa2da6">CoverTree</a> ()</td></tr>
<tr class="memdesc:a3e8ba98ec80f4ed426dc50b5a5aa2da6"><td class="mdescLeft">&#160;</td><td class="mdescRight">A default constructor. <a href="#a3e8ba98ec80f4ed426dc50b5a5aa2da6">More...</a><br /></td></tr>
<tr class="separator:a3e8ba98ec80f4ed426dc50b5a5aa2da6"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr class="memitem:a0e85c192e7960a904122c987ff83871b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a0e85c192e7960a904122c987ff83871b">ComputeDistances</a> (const size_t pointIndex, const arma::Col&lt; size_t &gt; &amp;indices, arma::vec &amp;distances, const size_t pointSetSize)</td></tr>
<tr class="memdesc:a0e85c192e7960a904122c987ff83871b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Fill the vector of distances with the distances between the point specified by pointIndex and each point in the indices array. <a href="#a0e85c192e7960a904122c987ff83871b">More...</a><br /></td></tr>
<tr class="separator:a0e85c192e7960a904122c987ff83871b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a511dff4cf835339aa9aaafcdc425e902"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a511dff4cf835339aa9aaafcdc425e902">CreateChildren</a> (arma::Col&lt; size_t &gt; &amp;indices, arma::vec &amp;distances, size_t nearSetSize, size_t &amp;farSetSize, size_t &amp;usedSetSize)</td></tr>
<tr class="memdesc:a511dff4cf835339aa9aaafcdc425e902"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create the children for this node. <a href="#a511dff4cf835339aa9aaafcdc425e902">More...</a><br /></td></tr>
<tr class="separator:a511dff4cf835339aa9aaafcdc425e902"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aefd0b12f7369727b24ecbafc67344248"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#aefd0b12f7369727b24ecbafc67344248">MoveToUsedSet</a> (arma::Col&lt; size_t &gt; &amp;indices, arma::vec &amp;distances, size_t &amp;nearSetSize, size_t &amp;farSetSize, size_t &amp;usedSetSize, arma::Col&lt; size_t &gt; &amp;childIndices, const size_t childFarSetSize, const size_t childUsedSetSize)</td></tr>
<tr class="separator:aefd0b12f7369727b24ecbafc67344248"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7b712e1c689cd76c80fad0f71efaad13"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a7b712e1c689cd76c80fad0f71efaad13">PruneFarSet</a> (arma::Col&lt; size_t &gt; &amp;indices, arma::vec &amp;distances, const <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a> bound, const size_t nearSetSize, const size_t pointSetSize)</td></tr>
<tr class="separator:a7b712e1c689cd76c80fad0f71efaad13"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9b2ebd124ecafec70d30f6d777ae8b86"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a9b2ebd124ecafec70d30f6d777ae8b86">RemoveNewImplicitNodes</a> ()</td></tr>
<tr class="memdesc:a9b2ebd124ecafec70d30f6d777ae8b86"><td class="mdescLeft">&#160;</td><td class="mdescRight">Take a look at the last child (the most recently created one) and remove any implicit nodes that have been created. <a href="#a9b2ebd124ecafec70d30f6d777ae8b86">More...</a><br /></td></tr>
<tr class="separator:a9b2ebd124ecafec70d30f6d777ae8b86"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aecc2d731a64ea28547d0f357e5ad1942"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#aecc2d731a64ea28547d0f357e5ad1942">SortPointSet</a> (arma::Col&lt; size_t &gt; &amp;indices, arma::vec &amp;distances, const size_t childFarSetSize, const size_t childUsedSetSize, const size_t farSetSize)</td></tr>
<tr class="memdesc:aecc2d731a64ea28547d0f357e5ad1942"><td class="mdescLeft">&#160;</td><td class="mdescRight">Assuming that the list of indices and distances is sorted as [ childFarSet | childUsedSet | farSet | usedSet ], resort the sets so the organization is [ childFarSet | farSet | childUsedSet | usedSet ]. <a href="#aecc2d731a64ea28547d0f357e5ad1942">More...</a><br /></td></tr>
<tr class="separator:aecc2d731a64ea28547d0f357e5ad1942"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa7c2eba7e2c49bb19d6114281e411e45"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#aa7c2eba7e2c49bb19d6114281e411e45">SplitNearFar</a> (arma::Col&lt; size_t &gt; &amp;indices, arma::vec &amp;distances, const <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a> bound, const size_t pointSetSize)</td></tr>
<tr class="memdesc:aa7c2eba7e2c49bb19d6114281e411e45"><td class="mdescLeft">&#160;</td><td class="mdescRight">Split the given indices and distances into a near and a far set, returning the number of points in the near set. <a href="#aa7c2eba7e2c49bb19d6114281e411e45">More...</a><br /></td></tr>
<tr class="separator:aa7c2eba7e2c49bb19d6114281e411e45"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:a02f91a888a58e108a3862ac527548e6a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a02f91a888a58e108a3862ac527548e6a">base</a></td></tr>
<tr class="memdesc:a02f91a888a58e108a3862ac527548e6a"><td class="mdescLeft">&#160;</td><td class="mdescRight">The base used to construct the tree. <a href="#a02f91a888a58e108a3862ac527548e6a">More...</a><br /></td></tr>
<tr class="separator:a02f91a888a58e108a3862ac527548e6a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a27d7bcd05c073f2305cac979e3a6146e"><td class="memItemLeft" align="right" valign="top">std::vector&lt; <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">CoverTree</a> * &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a27d7bcd05c073f2305cac979e3a6146e">children</a></td></tr>
<tr class="memdesc:a27d7bcd05c073f2305cac979e3a6146e"><td class="mdescLeft">&#160;</td><td class="mdescRight">The list of children; the first is the self-child. <a href="#a27d7bcd05c073f2305cac979e3a6146e">More...</a><br /></td></tr>
<tr class="separator:a27d7bcd05c073f2305cac979e3a6146e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adfd47c0f8ba7d5872aacc8ec076173e9"><td class="memItemLeft" align="right" valign="top">const MatType *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#adfd47c0f8ba7d5872aacc8ec076173e9">dataset</a></td></tr>
<tr class="memdesc:adfd47c0f8ba7d5872aacc8ec076173e9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reference to the matrix which this tree is built on. <a href="#adfd47c0f8ba7d5872aacc8ec076173e9">More...</a><br /></td></tr>
<tr class="separator:adfd47c0f8ba7d5872aacc8ec076173e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a46f9ef0dd77ea3e1c268690bb8929252"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a46f9ef0dd77ea3e1c268690bb8929252">distanceComps</a></td></tr>
<tr class="separator:a46f9ef0dd77ea3e1c268690bb8929252"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a290c1faf9cc9ae2357bec59a2f1502dc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a290c1faf9cc9ae2357bec59a2f1502dc">furthestDescendantDistance</a></td></tr>
<tr class="memdesc:a290c1faf9cc9ae2357bec59a2f1502dc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Distance to the furthest descendant. <a href="#a290c1faf9cc9ae2357bec59a2f1502dc">More...</a><br /></td></tr>
<tr class="separator:a290c1faf9cc9ae2357bec59a2f1502dc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab0ac3c705092923de263dd0195b14f91"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#ab0ac3c705092923de263dd0195b14f91">localDataset</a></td></tr>
<tr class="memdesc:ab0ac3c705092923de263dd0195b14f91"><td class="mdescLeft">&#160;</td><td class="mdescRight">If true, we own the dataset and need to destroy it in the destructor. <a href="#ab0ac3c705092923de263dd0195b14f91">More...</a><br /></td></tr>
<tr class="separator:ab0ac3c705092923de263dd0195b14f91"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad975620be4041087edeb9a00190d6db5"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#ad975620be4041087edeb9a00190d6db5">localMetric</a></td></tr>
<tr class="memdesc:ad975620be4041087edeb9a00190d6db5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Whether or not we need to destroy the metric in the destructor. <a href="#ad975620be4041087edeb9a00190d6db5">More...</a><br /></td></tr>
<tr class="separator:ad975620be4041087edeb9a00190d6db5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae06af16ea4c191e6bf6b83b98d68446e"><td class="memItemLeft" align="right" valign="top">MetricType *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#ae06af16ea4c191e6bf6b83b98d68446e">metric</a></td></tr>
<tr class="memdesc:ae06af16ea4c191e6bf6b83b98d68446e"><td class="mdescLeft">&#160;</td><td class="mdescRight">The metric used for this tree. <a href="#ae06af16ea4c191e6bf6b83b98d68446e">More...</a><br /></td></tr>
<tr class="separator:ae06af16ea4c191e6bf6b83b98d68446e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a504372096c8711d196d7096a1e742bef"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a504372096c8711d196d7096a1e742bef">numDescendants</a></td></tr>
<tr class="memdesc:a504372096c8711d196d7096a1e742bef"><td class="mdescLeft">&#160;</td><td class="mdescRight">The number of descendant points. <a href="#a504372096c8711d196d7096a1e742bef">More...</a><br /></td></tr>
<tr class="separator:a504372096c8711d196d7096a1e742bef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a47dad54f3d619550d5c9a4e077b3b32d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">CoverTree</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a47dad54f3d619550d5c9a4e077b3b32d">parent</a></td></tr>
<tr class="memdesc:a47dad54f3d619550d5c9a4e077b3b32d"><td class="mdescLeft">&#160;</td><td class="mdescRight">The parent node (NULL if this is the root of the tree). <a href="#a47dad54f3d619550d5c9a4e077b3b32d">More...</a><br /></td></tr>
<tr class="separator:a47dad54f3d619550d5c9a4e077b3b32d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0601970c11e745c323269e9782dfbf0e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a0601970c11e745c323269e9782dfbf0e">parentDistance</a></td></tr>
<tr class="memdesc:a0601970c11e745c323269e9782dfbf0e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Distance to the parent. <a href="#a0601970c11e745c323269e9782dfbf0e">More...</a><br /></td></tr>
<tr class="separator:a0601970c11e745c323269e9782dfbf0e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abe65d8768e7599c6a5278cf35c78d97e"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#abe65d8768e7599c6a5278cf35c78d97e">point</a></td></tr>
<tr class="memdesc:abe65d8768e7599c6a5278cf35c78d97e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Index of the point in the matrix which this node represents. <a href="#abe65d8768e7599c6a5278cf35c78d97e">More...</a><br /></td></tr>
<tr class="separator:abe65d8768e7599c6a5278cf35c78d97e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a268da22f80377d7ebb25b9d12b2128b4"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a268da22f80377d7ebb25b9d12b2128b4">scale</a></td></tr>
<tr class="memdesc:a268da22f80377d7ebb25b9d12b2128b4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Scale level of the node. <a href="#a268da22f80377d7ebb25b9d12b2128b4">More...</a><br /></td></tr>
<tr class="separator:a268da22f80377d7ebb25b9d12b2128b4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af6e9e4c9ab4ee1801f69ac36d5253e48"><td class="memItemLeft" align="right" valign="top">StatisticType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#af6e9e4c9ab4ee1801f69ac36d5253e48">stat</a></td></tr>
<tr class="memdesc:af6e9e4c9ab4ee1801f69ac36d5253e48"><td class="mdescLeft">&#160;</td><td class="mdescRight">The instantiated statistic. <a href="#af6e9e4c9ab4ee1801f69ac36d5253e48">More...</a><br /></td></tr>
<tr class="separator:af6e9e4c9ab4ee1801f69ac36d5253e48"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt;<br />
class mlpack::tree::CoverTree&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;</h3>
<p>A cover tree is a tree specifically designed to speed up nearest-neighbor computation in high-dimensional spaces. </p>
<p>Each non-leaf node references a point and has a nonzero number of children, including a "self-child" which references the same point. A leaf node represents only one point.</p>
<p>The tree can be thought of as a hierarchy with the root node at the top level and the leaf nodes at the bottom level. Each level in the tree has an assigned 'scale' i. The tree follows these two invariants:</p>
<ul>
<li>nesting: the level C_i is a subset of the level C_{i - 1}.</li>
<li>covering: all node in level C_{i - 1} have at least one node in the level C_i with distance less than or equal to b^i (exactly one of these is a parent of the point in level C_{i - 1}.</li>
</ul>
<p>Note that in the cover tree paper, there is a third invariant (the 'separation invariant'), but that does not apply to our implementation, because we have relaxed the invariant.</p>
<p>The value 'b' refers to the base, which is a parameter of the tree. These three properties make the cover tree very good for fast, high-dimensional nearest-neighbor search.</p>
<p>The theoretical structure of the tree contains many 'implicit' nodes which only have a "self-child" (a child referencing the same point, but at a lower scale level). This practical implementation only constructs explicit nodes &ndash; non-leaf nodes with more than one child. A leaf node has no children, and its scale level is INT_MIN.</p>
<p>For more information on cover trees, see</p>
<div class="fragment"><div class="line">@inproceedings{</div><div class="line"> author = {Beygelzimer, Alina and Kakade, Sham and Langford, John},</div><div class="line"> title = {Cover trees <span class="keywordflow">for</span> nearest neighbor},</div><div class="line"> booktitle = {Proceedings of the 23rd International Conference on Machine</div><div class="line"> Learning},</div><div class="line"> series = {ICML <span class="stringliteral">&#39;06},</span></div><div class="line"><span class="stringliteral"> year = {2006},</span></div><div class="line"><span class="stringliteral"> pages = {97--104]</span></div><div class="line"><span class="stringliteral">}</span></div></div><!-- fragment --><p>For information on runtime bounds of the nearest-neighbor computation using cover trees, see the following paper, presented at NIPS 2009:</p>
<div class="fragment"><div class="line">@inproceedings{</div><div class="line"> author = {Ram, P., and Lee, D., and March, W.B., and Gray, A.G.},</div><div class="line"> title = {Linear-time Algorithms <span class="keywordflow">for</span> Pairwise Statistical Problems},</div><div class="line"> booktitle = {Advances in Neural Information Processing Systems 22},</div><div class="line"> editor = {Y. Bengio and D. Schuurmans and J. Lafferty and C.K.I. Williams</div><div class="line"> and A. Culotta},</div><div class="line"> pages = {1527--1535},</div><div class="line"> year = {2009}</div><div class="line">}</div></div><!-- fragment --><p>The <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html" title="A cover tree is a tree specifically designed to speed up nearest-neighbor computation in high-dimensi...">CoverTree</a> class offers three template parameters; a custom metric type can be used with MetricType (this class defaults to the L2-squared metric). The root node's point can be chosen with the RootPointPolicy; by default, the <a class="el" href="classmlpack_1_1tree_1_1FirstPointIsRoot.html" title="This class is meant to be used as a choice for the policy class RootPointPolicy of the CoverTree clas...">FirstPointIsRoot</a> policy is used, meaning the first point in the dataset is used. The StatisticType policy allows you to define statistics which can be gathered during the creation of the tree.</p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
<table class="tparams">
<tr><td class="paramname">MetricType</td><td>Metric type to use during tree construction. </td></tr>
<tr><td class="paramname">RootPointPolicy</td><td>Determines which point to use as the root node. </td></tr>
<tr><td class="paramname">StatisticType</td><td>Statistic to be used during tree creation. </td></tr>
<tr><td class="paramname">MatType</td><td>Type of matrix to build the tree on (generally mat or sp_mat). </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00099">99</a> of file <a class="el" href="cover__tree_2cover__tree_8hpp_source.html">cover_tree.hpp</a>.</p>
</div><h2 class="groupheader">Member Typedef Documentation</h2>
<a class="anchor" id="a6ad87f457dcb3c5fda1a02ca2c630847"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<div class="memtemplate">
template&lt;typename RuleType &gt; </div>
<table class="memname">
<tr>
<td class="memname">using <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::<a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a6ad87f457dcb3c5fda1a02ca2c630847">BreadthFirstDualTreeTraverser</a> = <a class="el" href="classmlpack_1_1tree_1_1CoverTree_1_1DualTreeTraverser.html">DualTreeTraverser</a>&lt;RuleType&gt;</td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00264">264</a> of file <a class="el" href="cover__tree_2cover__tree_8hpp_source.html">cover_tree.hpp</a>.</p>
</div>
</div>
<a class="anchor" id="a642f3b132a13c354b6216392a349e10f"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="memname">
<tr>
<td class="memname">typedef MatType::elem_type <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::<a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a></td>
</tr>
</table>
</div><div class="memdoc">
<p>The type held by the matrix type. </p>
<p>Definition at line <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00105">105</a> of file <a class="el" href="cover__tree_2cover__tree_8hpp_source.html">cover_tree.hpp</a>.</p>
</div>
</div>
<a class="anchor" id="a75114973b7b4ec9b6459a2a2ffb8eddc"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="memname">
<tr>
<td class="memname">typedef MatType <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::<a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a75114973b7b4ec9b6459a2a2ffb8eddc">Mat</a></td>
</tr>
</table>
</div><div class="memdoc">
<p>So that other classes can access the matrix type. </p>
<p>Definition at line <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00103">103</a> of file <a class="el" href="cover__tree_2cover__tree_8hpp_source.html">cover_tree.hpp</a>.</p>
</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a3df0aa1fec8459e5e55bceee89545a6e"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::<a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">CoverTree</a> </td>
<td>(</td>
<td class="paramtype">const MatType &amp;&#160;</td>
<td class="paramname"><em>dataset</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a>&#160;</td>
<td class="paramname"><em>base</em> = <code>2.0</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">MetricType *&#160;</td>
<td class="paramname"><em>metric</em> = <code>NULL</code>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Create the cover tree with the given dataset and given base. </p>
<p>The dataset will not be modified during the building procedure (unlike <a class="el" href="classmlpack_1_1tree_1_1BinarySpaceTree.html" title="A binary space partitioning tree, such as a KD-tree or a ball tree. ">BinarySpaceTree</a>).</p>
<p>The last argument will be removed in mlpack 1.1.0 (see #274 and #273).</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">dataset</td><td>Reference to the dataset to build a tree on. </td></tr>
<tr><td class="paramname">base</td><td>Base to use during tree building (default 2.0). </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a826e5c232306bf6368a8ad9ad4e464d9"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::<a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">CoverTree</a> </td>
<td>(</td>
<td class="paramtype">const MatType &amp;&#160;</td>
<td class="paramname"><em>dataset</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">MetricType &amp;&#160;</td>
<td class="paramname"><em>metric</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a>&#160;</td>
<td class="paramname"><em>base</em> = <code>2.0</code>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Create the cover tree with the given dataset and the given instantiated metric. </p>
<p>Optionally, set the base. The dataset will not be modified during the building procedure (unlike <a class="el" href="classmlpack_1_1tree_1_1BinarySpaceTree.html" title="A binary space partitioning tree, such as a KD-tree or a ball tree. ">BinarySpaceTree</a>).</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">dataset</td><td>Reference to the dataset to build a tree on. </td></tr>
<tr><td class="paramname">metric</td><td>Instantiated metric to use during tree building. </td></tr>
<tr><td class="paramname">base</td><td>Base to use during tree building (default 2.0). </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="ae70dc14e53d01ffd7f540dc3b33ab9a4"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::<a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">CoverTree</a> </td>
<td>(</td>
<td class="paramtype">MatType &amp;&amp;&#160;</td>
<td class="paramname"><em>dataset</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a>&#160;</td>
<td class="paramname"><em>base</em> = <code>2.0</code>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Create the cover tree with the given dataset, taking ownership of the dataset. </p>
<p>Optionally, set the base.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">dataset</td><td>Reference to the dataset to build a tree on. </td></tr>
<tr><td class="paramname">base</td><td>Base to use during tree building (default 2.0). </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="ae2eeb3c58aae3eeb4fa1720ee6da6148"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::<a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">CoverTree</a> </td>
<td>(</td>
<td class="paramtype">MatType &amp;&amp;&#160;</td>
<td class="paramname"><em>dataset</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">MetricType &amp;&#160;</td>
<td class="paramname"><em>metric</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a>&#160;</td>
<td class="paramname"><em>base</em> = <code>2.0</code>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Create the cover tree with the given dataset and the given instantiated metric, taking ownership of the dataset. </p>
<p>Optionally, set the base.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">dataset</td><td>Reference to the dataset to build a tree on. </td></tr>
<tr><td class="paramname">metric</td><td>Instantiated metric to use during tree building. </td></tr>
<tr><td class="paramname">base</td><td>Base to use during tree building (default 2.0). </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="ad74b0613756174481ade5c1d70b54b98"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::<a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">CoverTree</a> </td>
<td>(</td>
<td class="paramtype">const MatType &amp;&#160;</td>
<td class="paramname"><em>dataset</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a>&#160;</td>
<td class="paramname"><em>base</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const size_t&#160;</td>
<td class="paramname"><em>pointIndex</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const int&#160;</td>
<td class="paramname"><em>scale</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt; *&#160;</td>
<td class="paramname"><em>parent</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a>&#160;</td>
<td class="paramname"><em>parentDistance</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">arma::Col&lt; size_t &gt; &amp;&#160;</td>
<td class="paramname"><em>indices</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">arma::vec &amp;&#160;</td>
<td class="paramname"><em>distances</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t&#160;</td>
<td class="paramname"><em>nearSetSize</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t &amp;&#160;</td>
<td class="paramname"><em>farSetSize</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t &amp;&#160;</td>
<td class="paramname"><em>usedSetSize</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">MetricType &amp;&#160;</td>
<td class="paramname"><em>metric</em> = <code>NULL</code>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Construct a child cover tree node. </p>
<p>This constructor is not meant to be used externally, but it could be used to insert another node into a tree. This procedure uses only one vector for the near set, the far set, and the used set (this is to prevent unnecessary memory allocation in recursive calls to this constructor). Therefore, the size of the near set, far set, and used set must be passed in. The near set will be entirely used up, and some of the far set may be used. The value of usedSetSize will be set to the number of points used in the construction of this node, and the value of farSetSize will be modified to reflect the number of points in the far set <em>after</em> the construction of this node.</p>
<p>If you are calling this manually, be careful that the given scale is as small as possible, or you may be creating an implicit node in your tree.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">dataset</td><td>Reference to the dataset to build a tree on. </td></tr>
<tr><td class="paramname">base</td><td>Base to use during tree building. </td></tr>
<tr><td class="paramname">pointIndex</td><td>Index of the point this node references. </td></tr>
<tr><td class="paramname">scale</td><td>Scale of this level in the tree. </td></tr>
<tr><td class="paramname">parent</td><td>Parent of this node (NULL indicates no parent). </td></tr>
<tr><td class="paramname">parentDistance</td><td>Distance to the parent node. </td></tr>
<tr><td class="paramname">indices</td><td>Array of indices, ordered [ nearSet | farSet | usedSet ]; will be modified to [ farSet | usedSet ]. </td></tr>
<tr><td class="paramname">distances</td><td>Array of distances, ordered the same way as the indices. These represent the distances between the point specified by pointIndex and each point in the indices array. </td></tr>
<tr><td class="paramname">nearSetSize</td><td>Size of the near set; if 0, this will be a leaf. </td></tr>
<tr><td class="paramname">farSetSize</td><td>Size of the far set; may be modified (if this node uses any points in the far set). </td></tr>
<tr><td class="paramname">usedSetSize</td><td>The number of points used will be added to this number. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a82c67e0d4407065cc105b189acadbe02"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::<a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">CoverTree</a> </td>
<td>(</td>
<td class="paramtype">const MatType &amp;&#160;</td>
<td class="paramname"><em>dataset</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a>&#160;</td>
<td class="paramname"><em>base</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const size_t&#160;</td>
<td class="paramname"><em>pointIndex</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const int&#160;</td>
<td class="paramname"><em>scale</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt; *&#160;</td>
<td class="paramname"><em>parent</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a>&#160;</td>
<td class="paramname"><em>parentDistance</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a>&#160;</td>
<td class="paramname"><em>furthestDescendantDistance</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">MetricType *&#160;</td>
<td class="paramname"><em>metric</em> = <code>NULL</code>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Manually construct a cover tree node; no tree assembly is done in this constructor, and children must be added manually (use <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a0027dac9b598ae3c4541b2db36a8b111" title="Modify the children manually (maybe not a great idea). ">Children()</a>). </p>
<p>This constructor is useful when the tree is being "imported" into the <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html" title="A cover tree is a tree specifically designed to speed up nearest-neighbor computation in high-dimensi...">CoverTree</a> class after being created in some other manner.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">dataset</td><td>Reference to the dataset this node is a part of. </td></tr>
<tr><td class="paramname">base</td><td>Base that was used for tree building. </td></tr>
<tr><td class="paramname">pointIndex</td><td>Index of the point in the dataset which this node refers to. </td></tr>
<tr><td class="paramname">scale</td><td>Scale of this node's level in the tree. </td></tr>
<tr><td class="paramname">parent</td><td>Parent node (NULL indicates no parent). </td></tr>
<tr><td class="paramname">parentDistance</td><td>Distance to parent node point. </td></tr>
<tr><td class="paramname">furthestDescendantDistance</td><td>Distance to furthest descendant point. </td></tr>
<tr><td class="paramname">metric</td><td>Instantiated metric (optional). </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a537db7b52e2c3426604ad6f34710dd33"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::<a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">CoverTree</a> </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt; &amp;&#160;</td>
<td class="paramname"><em>other</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Create a cover tree from another tree. </p>
<p>Be careful! This may use a lot of memory and take a lot of time. This will also make a copy of the dataset.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">other</td><td>Cover tree to copy from. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a8720353fb2e6f7b46c79424302cf071c"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::<a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">CoverTree</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt; &amp;&amp;&#160;</td>
<td class="paramname"><em>other</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Move constructor for a Cover Tree, possess all the members of the given tree. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">other</td><td>Cover Tree to move. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="aa57ca8739c13b7bf3437e94eacc40b9d"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<div class="memtemplate">
template&lt;typename Archive &gt; </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::<a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">CoverTree</a> </td>
<td>(</td>
<td class="paramtype">Archive &amp;&#160;</td>
<td class="paramname"><em>ar</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const typename <a class="el" href="namespacestd.html#ac774dbdf8ae769197167b2a8273462fc">std::enable_if_t</a>&lt; Archive::is_loading::value &gt; *&#160;</td>
<td class="paramname"> = <code>0</code>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Create a cover tree from a <a class="el" href="namespaceboost_1_1serialization.html">boost::serialization</a> archive. </p>
</div>
</div>
<a class="anchor" id="a33cc8ae8c40dc16c733ebf1cd1711bd9"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::~<a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">CoverTree</a> </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Delete this cover tree node and its children. </p>
</div>
</div>
<a class="anchor" id="a3e8ba98ec80f4ed426dc50b5a5aa2da6"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::<a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">CoverTree</a> </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>A default constructor. </p>
<p>This is meant to only be used with <a class="el" href="namespaceboost_1_1serialization.html">boost::serialization</a>, which is allowed with the friend declaration below. This does not return a valid tree! This method must be protected, so that the serialization shim can work with the default constructor. </p>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a427fdef7116fa186fcbd97c7badba608"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a> <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::Base </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the base. </p>
<p>Definition at line <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00304">304</a> of file <a class="el" href="cover__tree_2cover__tree_8hpp_source.html">cover_tree.hpp</a>.</p>
<p>References <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00430">mlpack::tree::CoverTree&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::base</a>.</p>
</div>
</div>
<a class="anchor" id="a1674fe051bbe42ffae646d100b2eb4a7"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a>&amp; <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::Base </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Modify the base; don't do this, you'll break everything. </p>
<p>Definition at line <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00306">306</a> of file <a class="el" href="cover__tree_2cover__tree_8hpp_source.html">cover_tree.hpp</a>.</p>
<p>References <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00430">mlpack::tree::CoverTree&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::base</a>.</p>
</div>
</div>
<a class="anchor" id="a98990555dafef479f4cc1afa125daebb"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::Center </td>
<td>(</td>
<td class="paramtype">arma::vec &amp;&#160;</td>
<td class="paramname"><em>center</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the center of the node and store it in the given vector. </p>
<p>Definition at line <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00412">412</a> of file <a class="el" href="cover__tree_2cover__tree_8hpp_source.html">cover_tree.hpp</a>.</p>
<p>References <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00422">mlpack::tree::CoverTree&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::dataset</a>.</p>
</div>
</div>
<a class="anchor" id="a0737407fbd8c454844933c83d574cfa7"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">const <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">CoverTree</a>&amp; <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::Child </td>
<td>(</td>
<td class="paramtype">const size_t&#160;</td>
<td class="paramname"><em>index</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Get a particular child node. </p>
<p>Definition at line <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00278">278</a> of file <a class="el" href="cover__tree_2cover__tree_8hpp_source.html">cover_tree.hpp</a>.</p>
<p>References <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00426">mlpack::tree::CoverTree&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::children</a>.</p>
</div>
</div>
<a class="anchor" id="a2cfa2e7d58176a85d2a52dfa7f569290"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">CoverTree</a>&amp; <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::Child </td>
<td>(</td>
<td class="paramtype">const size_t&#160;</td>
<td class="paramname"><em>index</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Modify a particular child node. </p>
<p>Definition at line <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00280">280</a> of file <a class="el" href="cover__tree_2cover__tree_8hpp_source.html">cover_tree.hpp</a>.</p>
<p>References <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00426">mlpack::tree::CoverTree&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::children</a>.</p>
</div>
</div>
<a class="anchor" id="a6a9281286d39fc8fff2e1e65a1cbfc07"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">CoverTree</a>*&amp; <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::ChildPtr </td>
<td>(</td>
<td class="paramtype">const size_t&#160;</td>
<td class="paramname"><em>index</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00282">282</a> of file <a class="el" href="cover__tree_2cover__tree_8hpp_source.html">cover_tree.hpp</a>.</p>
<p>References <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00426">mlpack::tree::CoverTree&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::children</a>.</p>
</div>
</div>
<a class="anchor" id="a757545c9dda7e527efb618c09d468b87"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">const std::vector&lt;<a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">CoverTree</a>*&gt;&amp; <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::Children </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the children. </p>
<p>Definition at line <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00288">288</a> of file <a class="el" href="cover__tree_2cover__tree_8hpp_source.html">cover_tree.hpp</a>.</p>
<p>References <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00426">mlpack::tree::CoverTree&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::children</a>.</p>
</div>
</div>
<a class="anchor" id="a0027dac9b598ae3c4541b2db36a8b111"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">std::vector&lt;<a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">CoverTree</a>*&gt;&amp; <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::Children </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Modify the children manually (maybe not a great idea). </p>
<p>Definition at line <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00290">290</a> of file <a class="el" href="cover__tree_2cover__tree_8hpp_source.html">cover_tree.hpp</a>.</p>
<p>References <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00426">mlpack::tree::CoverTree&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::children</a>, <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#afacf661b4d068be353359093c36e297e">mlpack::tree::CoverTree&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::Descendant()</a>, and <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a636250f6263af229c53ba39ff8d90c58">mlpack::tree::CoverTree&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::NumDescendants()</a>.</p>
</div>
</div>
<a class="anchor" id="a0e85c192e7960a904122c987ff83871b"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::ComputeDistances </td>
<td>(</td>
<td class="paramtype">const size_t&#160;</td>
<td class="paramname"><em>pointIndex</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const arma::Col&lt; size_t &gt; &amp;&#160;</td>
<td class="paramname"><em>indices</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">arma::vec &amp;&#160;</td>
<td class="paramname"><em>distances</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const size_t&#160;</td>
<td class="paramname"><em>pointSetSize</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Fill the vector of distances with the distances between the point specified by pointIndex and each point in the indices array. </p>
<p>The distances of the first pointSetSize points in indices are calculated (so, this does not necessarily need to use all of the points in the arrays).</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">pointIndex</td><td>Point to build the distances for. </td></tr>
<tr><td class="paramname">indices</td><td>List of indices to compute distances for. </td></tr>
<tr><td class="paramname">distances</td><td>Vector to store calculated distances in. </td></tr>
<tr><td class="paramname">pointSetSize</td><td>Number of points in arrays to calculate distances for. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a511dff4cf835339aa9aaafcdc425e902"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::CreateChildren </td>
<td>(</td>
<td class="paramtype">arma::Col&lt; size_t &gt; &amp;&#160;</td>
<td class="paramname"><em>indices</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">arma::vec &amp;&#160;</td>
<td class="paramname"><em>distances</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t&#160;</td>
<td class="paramname"><em>nearSetSize</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t &amp;&#160;</td>
<td class="paramname"><em>farSetSize</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t &amp;&#160;</td>
<td class="paramname"><em>usedSetSize</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Create the children for this node. </p>
</div>
</div>
<a class="anchor" id="ae60926ac52a340ab6460f0b3166c4560"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">const MatType&amp; <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::Dataset </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Get a reference to the dataset. </p>
<p>Definition at line <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00267">267</a> of file <a class="el" href="cover__tree_2cover__tree_8hpp_source.html">cover_tree.hpp</a>.</p>
<p>References <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00422">mlpack::tree::CoverTree&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::dataset</a>.</p>
</div>
</div>
<a class="anchor" id="afacf661b4d068be353359093c36e297e"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="memname">
<tr>
<td class="memname">size_t <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::Descendant </td>
<td>(</td>
<td class="paramtype">const size_t&#160;</td>
<td class="paramname"><em>index</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the index of a particular descendant point. </p>
<p>Referenced by <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00290">mlpack::tree::CoverTree&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::Children()</a>.</p>
</div>
</div>
<a class="anchor" id="a3e9bc47574fc407b975c01f5f0b447c9"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">size_t <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::DistanceComps </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00555">555</a> of file <a class="el" href="cover__tree_2cover__tree_8hpp_source.html">cover_tree.hpp</a>.</p>
<p>References <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00559">mlpack::tree::CoverTree&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::distanceComps</a>.</p>
</div>
</div>
<a class="anchor" id="a511284621893472e2b577b2c67f0c3c9"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">size_t&amp; <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::DistanceComps </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00556">556</a> of file <a class="el" href="cover__tree_2cover__tree_8hpp_source.html">cover_tree.hpp</a>.</p>
<p>References <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00559">mlpack::tree::CoverTree&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::distanceComps</a>.</p>
</div>
</div>
<a class="anchor" id="a9d080b25267d41c1f9b30da0b477184a"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a> <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::FurthestDescendantDistance </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the distance from the center of the node to the furthest descendant. </p>
<p>Definition at line <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00401">401</a> of file <a class="el" href="cover__tree_2cover__tree_8hpp_source.html">cover_tree.hpp</a>.</p>
<p>References <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00440">mlpack::tree::CoverTree&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::furthestDescendantDistance</a>.</p>
</div>
</div>
<a class="anchor" id="a2eafe6d384d67aad28d23b7aee4ba313"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a>&amp; <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::FurthestDescendantDistance </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Modify the distance from the center of the node to the furthest descendant. </p>
<p>Definition at line <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00405">405</a> of file <a class="el" href="cover__tree_2cover__tree_8hpp_source.html">cover_tree.hpp</a>.</p>
<p>References <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00440">mlpack::tree::CoverTree&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::furthestDescendantDistance</a>.</p>
</div>
</div>
<a class="anchor" id="ab198744571bcb2258d2c30bd32be0f60"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a> <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::FurthestPointDistance </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the distance to the furthest point. This is always 0 for cover trees. </p>
<p>Definition at line <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00398">398</a> of file <a class="el" href="cover__tree_2cover__tree_8hpp_source.html">cover_tree.hpp</a>.</p>
</div>
</div>
<a class="anchor" id="a3d8a884391b492c4f774d81c0ee665ba"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<div class="memtemplate">
template&lt;typename VecType &gt; </div>
<table class="memname">
<tr>
<td class="memname">size_t <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::GetFurthestChild </td>
<td>(</td>
<td class="paramtype">const VecType &amp;&#160;</td>
<td class="paramname"><em>point</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">typename <a class="el" href="namespacestd.html#ac774dbdf8ae769197167b2a8273462fc">std::enable_if_t</a>&lt; <a class="el" href="structIsVector.html">IsVector</a>&lt; VecType &gt;::value &gt; *&#160;</td>
<td class="paramname"> = <code>0</code>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Return the index of the furthest child node to the given query point. </p>
<p>If this is a leaf node, it will return <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a3b8f146e0dd0e1b93fc1323337b03015" title="Get the number of children. ">NumChildren()</a> (invalid index). </p>
<p>Referenced by <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00311">mlpack::tree::CoverTree&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::Stat()</a>.</p>
</div>
</div>
<a class="anchor" id="a93c73fba945a33911d95b6014497a511"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="memname">
<tr>
<td class="memname">size_t <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::GetFurthestChild </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt; &amp;&#160;</td>
<td class="paramname"><em>queryNode</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Return the index of the furthest child node to the given query node. </p>
<p>If it can't decide, it will return <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a3b8f146e0dd0e1b93fc1323337b03015" title="Get the number of children. ">NumChildren()</a> (invalid index). </p>
</div>
</div>
<a class="anchor" id="abf42b5bd15362b7f18d3b61958851826"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<div class="memtemplate">
template&lt;typename VecType &gt; </div>
<table class="memname">
<tr>
<td class="memname">size_t <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::GetNearestChild </td>
<td>(</td>
<td class="paramtype">const VecType &amp;&#160;</td>
<td class="paramname"><em>point</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">typename <a class="el" href="namespacestd.html#ac774dbdf8ae769197167b2a8273462fc">std::enable_if_t</a>&lt; <a class="el" href="structIsVector.html">IsVector</a>&lt; VecType &gt;::value &gt; *&#160;</td>
<td class="paramname"> = <code>0</code>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Return the index of the nearest child node to the given query point. </p>
<p>If this is a leaf node, it will return <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a3b8f146e0dd0e1b93fc1323337b03015" title="Get the number of children. ">NumChildren()</a> (invalid index). </p>
<p>Referenced by <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00311">mlpack::tree::CoverTree&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::Stat()</a>.</p>
</div>
</div>
<a class="anchor" id="a9ffe9b0276ff5e3a3a4ef24d60e2cf6b"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="memname">
<tr>
<td class="memname">size_t <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::GetNearestChild </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt; &amp;&#160;</td>
<td class="paramname"><em>queryNode</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Return the index of the nearest child node to the given query node. </p>
<p>If it can't decide, it will return <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a3b8f146e0dd0e1b93fc1323337b03015" title="Get the number of children. ">NumChildren()</a> (invalid index). </p>
</div>
</div>
<a class="anchor" id="a3bb1efed1a28a8fc7f5171cb2eba8505"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::IsLeaf </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00274">274</a> of file <a class="el" href="cover__tree_2cover__tree_8hpp_source.html">cover_tree.hpp</a>.</p>
<p>References <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00426">mlpack::tree::CoverTree&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::children</a>.</p>
</div>
</div>
<a class="anchor" id="ac34136681c6ed01506c860dd1e815825"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a> <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::MaxDistance </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt; &amp;&#160;</td>
<td class="paramname"><em>other</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Return the maximum distance to another node. </p>
<p>Referenced by <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00311">mlpack::tree::CoverTree&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::Stat()</a>.</p>
</div>
</div>
<a class="anchor" id="aa92c3e282821170705c946d15421d778"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a> <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::MaxDistance </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt; &amp;&#160;</td>
<td class="paramname"><em>other</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a>&#160;</td>
<td class="paramname"><em>distance</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Return the maximum distance to another node given that the point-to-point distance has already been calculated. </p>
</div>
</div>
<a class="anchor" id="a91d061eee88cba38709cfbf6f458580f"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a> <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::MaxDistance </td>
<td>(</td>
<td class="paramtype">const arma::vec &amp;&#160;</td>
<td class="paramname"><em>other</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Return the maximum distance to another point. </p>
</div>
</div>
<a class="anchor" id="a11eaf5874bf8f5c996e83856c8cdeeb7"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a> <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::MaxDistance </td>
<td>(</td>
<td class="paramtype">const arma::vec &amp;&#160;</td>
<td class="paramname"><em>other</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a>&#160;</td>
<td class="paramname"><em>distance</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Return the maximum distance to another point given that the distance from the center to the point has already been calculated. </p>
</div>
</div>
<a class="anchor" id="a6b207b875e2417607b0b6aec34f8906e"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">MetricType&amp; <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::Metric </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the instantiated metric. </p>
<p>Definition at line <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00418">418</a> of file <a class="el" href="cover__tree_2cover__tree_8hpp_source.html">cover_tree.hpp</a>.</p>
<p>References <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00446">mlpack::tree::CoverTree&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::metric</a>.</p>
</div>
</div>
<a class="anchor" id="a224890c6d0c8dd58bb7b9761990cac4e"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a> <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::MinDistance </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt; &amp;&#160;</td>
<td class="paramname"><em>other</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Return the minimum distance to another node. </p>
<p>Referenced by <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00311">mlpack::tree::CoverTree&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::Stat()</a>.</p>
</div>
</div>
<a class="anchor" id="ae9909712ecc46641ade692cba5fae929"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a> <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::MinDistance </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt; &amp;&#160;</td>
<td class="paramname"><em>other</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a>&#160;</td>
<td class="paramname"><em>distance</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Return the minimum distance to another node given that the point-to-point distance has already been calculated. </p>
</div>
</div>
<a class="anchor" id="a6249d58ab805cdf8be3dc54b6468e1e5"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a> <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::MinDistance </td>
<td>(</td>
<td class="paramtype">const arma::vec &amp;&#160;</td>
<td class="paramname"><em>other</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Return the minimum distance to another point. </p>
</div>
</div>
<a class="anchor" id="a4a90f936936e8e17bd35ab813b7cc75c"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a> <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::MinDistance </td>
<td>(</td>
<td class="paramtype">const arma::vec &amp;&#160;</td>
<td class="paramname"><em>other</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a>&#160;</td>
<td class="paramname"><em>distance</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Return the minimum distance to another point given that the distance from the center to the point has already been calculated. </p>
</div>
</div>
<a class="anchor" id="a4f39bc6648e21a7aecaaf5ca71c69dfd"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a> <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::MinimumBoundDistance </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the minimum distance from the center to any bound edge (this is the same as furthestDescendantDistance). </p>
<p>Definition at line <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00409">409</a> of file <a class="el" href="cover__tree_2cover__tree_8hpp_source.html">cover_tree.hpp</a>.</p>
<p>References <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00440">mlpack::tree::CoverTree&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::furthestDescendantDistance</a>.</p>
</div>
</div>
<a class="anchor" id="aefd0b12f7369727b24ecbafc67344248"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::MoveToUsedSet </td>
<td>(</td>
<td class="paramtype">arma::Col&lt; size_t &gt; &amp;&#160;</td>
<td class="paramname"><em>indices</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">arma::vec &amp;&#160;</td>
<td class="paramname"><em>distances</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t &amp;&#160;</td>
<td class="paramname"><em>nearSetSize</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t &amp;&#160;</td>
<td class="paramname"><em>farSetSize</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t &amp;&#160;</td>
<td class="paramname"><em>usedSetSize</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">arma::Col&lt; size_t &gt; &amp;&#160;</td>
<td class="paramname"><em>childIndices</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const size_t&#160;</td>
<td class="paramname"><em>childFarSetSize</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const size_t&#160;</td>
<td class="paramname"><em>childUsedSetSize</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a3b8f146e0dd0e1b93fc1323337b03015"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">size_t <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::NumChildren </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the number of children. </p>
<p>Definition at line <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00285">285</a> of file <a class="el" href="cover__tree_2cover__tree_8hpp_source.html">cover_tree.hpp</a>.</p>
<p>References <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00426">mlpack::tree::CoverTree&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::children</a>.</p>
</div>
</div>
<a class="anchor" id="a636250f6263af229c53ba39ff8d90c58"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="memname">
<tr>
<td class="memname">size_t <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::NumDescendants </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the number of descendant points. </p>
<p>Referenced by <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00290">mlpack::tree::CoverTree&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::Children()</a>.</p>
</div>
</div>
<a class="anchor" id="a960fe5e58b30eee324f09a274acefbbd"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">size_t <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::NumPoints </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00275">275</a> of file <a class="el" href="cover__tree_2cover__tree_8hpp_source.html">cover_tree.hpp</a>.</p>
</div>
</div>
<a class="anchor" id="ad6c8c4015ce8cca967cc8984be46ee17"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">CoverTree</a>* <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::Parent </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the parent node. </p>
<p>Definition at line <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00388">388</a> of file <a class="el" href="cover__tree_2cover__tree_8hpp_source.html">cover_tree.hpp</a>.</p>
<p>References <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00436">mlpack::tree::CoverTree&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::parent</a>.</p>
</div>
</div>
<a class="anchor" id="aecaec628cffa169aee3ad423b2eda993"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">CoverTree</a>*&amp; <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::Parent </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Modify the parent node. </p>
<p>Definition at line <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00390">390</a> of file <a class="el" href="cover__tree_2cover__tree_8hpp_source.html">cover_tree.hpp</a>.</p>
<p>References <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00436">mlpack::tree::CoverTree&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::parent</a>.</p>
</div>
</div>
<a class="anchor" id="a5e7ae2e58272d84c8f708940de346ae0"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a> <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::ParentDistance </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the distance to the parent. </p>
<p>Definition at line <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00393">393</a> of file <a class="el" href="cover__tree_2cover__tree_8hpp_source.html">cover_tree.hpp</a>.</p>
<p>References <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00438">mlpack::tree::CoverTree&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::parentDistance</a>.</p>
</div>
</div>
<a class="anchor" id="a3a07575869b17786688799abd21d0778"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a>&amp; <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::ParentDistance </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Modify the distance to the parent. </p>
<p>Definition at line <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00395">395</a> of file <a class="el" href="cover__tree_2cover__tree_8hpp_source.html">cover_tree.hpp</a>.</p>
<p>References <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00438">mlpack::tree::CoverTree&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::parentDistance</a>.</p>
</div>
</div>
<a class="anchor" id="aaf6a77d1e77e4e18f30d3a099e805e0f"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">size_t <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::Point </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the index of the point which this node represents. </p>
<p>Definition at line <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00270">270</a> of file <a class="el" href="cover__tree_2cover__tree_8hpp_source.html">cover_tree.hpp</a>.</p>
<p>References <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00424">mlpack::tree::CoverTree&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::point</a>.</p>
</div>
</div>
<a class="anchor" id="ab3f8e37fab1a6993896440002de36402"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">size_t <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::Point </td>
<td>(</td>
<td class="paramtype">const size_t&#160;</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>For compatibility with other trees; the argument is ignored. </p>
<p>Definition at line <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00272">272</a> of file <a class="el" href="cover__tree_2cover__tree_8hpp_source.html">cover_tree.hpp</a>.</p>
<p>References <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00424">mlpack::tree::CoverTree&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::point</a>.</p>
</div>
</div>
<a class="anchor" id="a7b712e1c689cd76c80fad0f71efaad13"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">size_t <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::PruneFarSet </td>
<td>(</td>
<td class="paramtype">arma::Col&lt; size_t &gt; &amp;&#160;</td>
<td class="paramname"><em>indices</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">arma::vec &amp;&#160;</td>
<td class="paramname"><em>distances</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a>&#160;</td>
<td class="paramname"><em>bound</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const size_t&#160;</td>
<td class="paramname"><em>nearSetSize</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const size_t&#160;</td>
<td class="paramname"><em>pointSetSize</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="ab9cb1ec67855df16783c9925c36f8370"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classmlpack_1_1math_1_1RangeType.html">math::RangeType</a>&lt;<a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a>&gt; <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::RangeDistance </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt; &amp;&#160;</td>
<td class="paramname"><em>other</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Return the minimum and maximum distance to another node. </p>
<p>Referenced by <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00311">mlpack::tree::CoverTree&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::Stat()</a>.</p>
</div>
</div>
<a class="anchor" id="a2838478e41dc5f7c5737fb5723e26a4e"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classmlpack_1_1math_1_1RangeType.html">math::RangeType</a>&lt;<a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a>&gt; <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::RangeDistance </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt; &amp;&#160;</td>
<td class="paramname"><em>other</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a>&#160;</td>
<td class="paramname"><em>distance</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Return the minimum and maximum distance to another node given that the point-to-point distance has already been calculated. </p>
</div>
</div>
<a class="anchor" id="ab822714680aea9c61d508e98ec947097"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classmlpack_1_1math_1_1RangeType.html">math::RangeType</a>&lt;<a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a>&gt; <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::RangeDistance </td>
<td>(</td>
<td class="paramtype">const arma::vec &amp;&#160;</td>
<td class="paramname"><em>other</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Return the minimum and maximum distance to another point. </p>
</div>
</div>
<a class="anchor" id="a776d321e871a93c0eac6bfdeee974cf5"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classmlpack_1_1math_1_1RangeType.html">math::RangeType</a>&lt;<a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a>&gt; <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::RangeDistance </td>
<td>(</td>
<td class="paramtype">const arma::vec &amp;&#160;</td>
<td class="paramname"><em>other</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a>&#160;</td>
<td class="paramname"><em>distance</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Return the minimum and maximum distance to another point given that the point-to-point distance has already been calculated. </p>
</div>
</div>
<a class="anchor" id="a9b2ebd124ecafec70d30f6d777ae8b86"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::RemoveNewImplicitNodes </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Take a look at the last child (the most recently created one) and remove any implicit nodes that have been created. </p>
</div>
</div>
<a class="anchor" id="ac6ed268c6f2fadd341f825f2d6a7c4be"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::Scale </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the scale of this node. </p>
<p>Definition at line <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00299">299</a> of file <a class="el" href="cover__tree_2cover__tree_8hpp_source.html">cover_tree.hpp</a>.</p>
<p>References <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00428">mlpack::tree::CoverTree&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::scale</a>.</p>
</div>
</div>
<a class="anchor" id="a1e0ba4c2ad71797c47a86368e6b64a4d"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int&amp; <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::Scale </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Modify the scale of this node. Be careful... </p>
<p>Definition at line <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00301">301</a> of file <a class="el" href="cover__tree_2cover__tree_8hpp_source.html">cover_tree.hpp</a>.</p>
<p>References <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00428">mlpack::tree::CoverTree&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::scale</a>.</p>
</div>
</div>
<a class="anchor" id="a749d57e31307ae682f68981c33895792"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<div class="memtemplate">
template&lt;typename Archive &gt; </div>
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::Serialize </td>
<td>(</td>
<td class="paramtype">Archive &amp;&#160;</td>
<td class="paramname"><em>ar</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const unsigned&#160;</td>
<td class="paramname"><em>int</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Serialize the tree. </p>
</div>
</div>
<a class="anchor" id="aecc2d731a64ea28547d0f357e5ad1942"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">size_t <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::SortPointSet </td>
<td>(</td>
<td class="paramtype">arma::Col&lt; size_t &gt; &amp;&#160;</td>
<td class="paramname"><em>indices</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">arma::vec &amp;&#160;</td>
<td class="paramname"><em>distances</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const size_t&#160;</td>
<td class="paramname"><em>childFarSetSize</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const size_t&#160;</td>
<td class="paramname"><em>childUsedSetSize</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const size_t&#160;</td>
<td class="paramname"><em>farSetSize</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Assuming that the list of indices and distances is sorted as [ childFarSet | childUsedSet | farSet | usedSet ], resort the sets so the organization is [ childFarSet | farSet | childUsedSet | usedSet ]. </p>
<p>The size_t parameters specify the sizes of each set in the array. Only the ordering of the indices and distances arrays will be modified (not their actual contents).</p>
<p>The size of any of the four sets can be zero and this method will handle that case accordingly.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">indices</td><td>List of indices to sort. </td></tr>
<tr><td class="paramname">distances</td><td>List of distances to sort. </td></tr>
<tr><td class="paramname">childFarSetSize</td><td>Number of points in child far set (childFarSet). </td></tr>
<tr><td class="paramname">childUsedSetSize</td><td>Number of points in child used set (childUsedSet). </td></tr>
<tr><td class="paramname">farSetSize</td><td>Number of points in far set (farSet). </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="aa7c2eba7e2c49bb19d6114281e411e45"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">size_t <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::SplitNearFar </td>
<td>(</td>
<td class="paramtype">arma::Col&lt; size_t &gt; &amp;&#160;</td>
<td class="paramname"><em>indices</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">arma::vec &amp;&#160;</td>
<td class="paramname"><em>distances</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a>&#160;</td>
<td class="paramname"><em>bound</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const size_t&#160;</td>
<td class="paramname"><em>pointSetSize</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Split the given indices and distances into a near and a far set, returning the number of points in the near set. </p>
<p>The distances must already be initialized. This will order the indices and distances such that the points in the near set make up the first part of the array and the far set makes up the rest: [ nearSet | farSet ].</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">indices</td><td>List of indices; will be reordered. </td></tr>
<tr><td class="paramname">distances</td><td>List of distances; will be reordered. </td></tr>
<tr><td class="paramname">bound</td><td>If the distance is less than or equal to this bound, the point is placed into the near set. </td></tr>
<tr><td class="paramname">pointSetSize</td><td>Size of point set (because we may be sorting a smaller list than the indices vector will hold). </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a805333d4c49319bc9a65392eff723c7e"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">const StatisticType&amp; <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::Stat </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the statistic for this node. </p>
<p>Definition at line <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00309">309</a> of file <a class="el" href="cover__tree_2cover__tree_8hpp_source.html">cover_tree.hpp</a>.</p>
<p>References <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00432">mlpack::tree::CoverTree&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::stat</a>.</p>
</div>
</div>
<a class="anchor" id="a05a9c01433f36a9f21f67abc13a1ef37"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">StatisticType&amp; <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::Stat </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Modify the statistic for this node. </p>
<p>Definition at line <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00311">311</a> of file <a class="el" href="cover__tree_2cover__tree_8hpp_source.html">cover_tree.hpp</a>.</p>
<p>References <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a3d8a884391b492c4f774d81c0ee665ba">mlpack::tree::CoverTree&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::GetFurthestChild()</a>, <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#abf42b5bd15362b7f18d3b61958851826">mlpack::tree::CoverTree&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::GetNearestChild()</a>, <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#ac34136681c6ed01506c860dd1e815825">mlpack::tree::CoverTree&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::MaxDistance()</a>, <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a224890c6d0c8dd58bb7b9761990cac4e">mlpack::tree::CoverTree&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::MinDistance()</a>, <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00424">mlpack::tree::CoverTree&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::point</a>, <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#ab9cb1ec67855df16783c9925c36f8370">mlpack::tree::CoverTree&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::RangeDistance()</a>, and <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00432">mlpack::tree::CoverTree&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::stat</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="a02f91a888a58e108a3862ac527548e6a"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a> <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::base</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>The base used to construct the tree. </p>
<p>Definition at line <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00430">430</a> of file <a class="el" href="cover__tree_2cover__tree_8hpp_source.html">cover_tree.hpp</a>.</p>
<p>Referenced by <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00304">mlpack::tree::CoverTree&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::Base()</a>.</p>
</div>
</div>
<a class="anchor" id="a27d7bcd05c073f2305cac979e3a6146e"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">std::vector&lt;<a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">CoverTree</a>*&gt; <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::children</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>The list of children; the first is the self-child. </p>
<p>Definition at line <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00426">426</a> of file <a class="el" href="cover__tree_2cover__tree_8hpp_source.html">cover_tree.hpp</a>.</p>
<p>Referenced by <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00278">mlpack::tree::CoverTree&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::Child()</a>, <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00282">mlpack::tree::CoverTree&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::ChildPtr()</a>, <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00288">mlpack::tree::CoverTree&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::Children()</a>, <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00274">mlpack::tree::CoverTree&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::IsLeaf()</a>, and <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00285">mlpack::tree::CoverTree&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::NumChildren()</a>.</p>
</div>
</div>
<a class="anchor" id="adfd47c0f8ba7d5872aacc8ec076173e9"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">const MatType* <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::dataset</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Reference to the matrix which this tree is built on. </p>
<p>Definition at line <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00422">422</a> of file <a class="el" href="cover__tree_2cover__tree_8hpp_source.html">cover_tree.hpp</a>.</p>
<p>Referenced by <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00412">mlpack::tree::CoverTree&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::Center()</a>, and <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00267">mlpack::tree::CoverTree&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::Dataset()</a>.</p>
</div>
</div>
<a class="anchor" id="a46f9ef0dd77ea3e1c268690bb8929252"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">size_t <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::distanceComps</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00559">559</a> of file <a class="el" href="cover__tree_2cover__tree_8hpp_source.html">cover_tree.hpp</a>.</p>
<p>Referenced by <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00555">mlpack::tree::CoverTree&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::DistanceComps()</a>.</p>
</div>
</div>
<a class="anchor" id="a290c1faf9cc9ae2357bec59a2f1502dc"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a> <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::furthestDescendantDistance</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Distance to the furthest descendant. </p>
<p>Definition at line <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00440">440</a> of file <a class="el" href="cover__tree_2cover__tree_8hpp_source.html">cover_tree.hpp</a>.</p>
<p>Referenced by <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00401">mlpack::tree::CoverTree&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::FurthestDescendantDistance()</a>, and <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00409">mlpack::tree::CoverTree&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::MinimumBoundDistance()</a>.</p>
</div>
</div>
<a class="anchor" id="ab0ac3c705092923de263dd0195b14f91"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::localDataset</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>If true, we own the dataset and need to destroy it in the destructor. </p>
<p>Definition at line <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00444">444</a> of file <a class="el" href="cover__tree_2cover__tree_8hpp_source.html">cover_tree.hpp</a>.</p>
</div>
</div>
<a class="anchor" id="ad975620be4041087edeb9a00190d6db5"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::localMetric</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Whether or not we need to destroy the metric in the destructor. </p>
<p>Definition at line <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00442">442</a> of file <a class="el" href="cover__tree_2cover__tree_8hpp_source.html">cover_tree.hpp</a>.</p>
</div>
</div>
<a class="anchor" id="ae06af16ea4c191e6bf6b83b98d68446e"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">MetricType* <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::metric</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>The metric used for this tree. </p>
<p>Definition at line <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00446">446</a> of file <a class="el" href="cover__tree_2cover__tree_8hpp_source.html">cover_tree.hpp</a>.</p>
<p>Referenced by <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00418">mlpack::tree::CoverTree&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::Metric()</a>.</p>
</div>
</div>
<a class="anchor" id="a504372096c8711d196d7096a1e742bef"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">size_t <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::numDescendants</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>The number of descendant points. </p>
<p>Definition at line <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00434">434</a> of file <a class="el" href="cover__tree_2cover__tree_8hpp_source.html">cover_tree.hpp</a>.</p>
</div>
</div>
<a class="anchor" id="a47dad54f3d619550d5c9a4e077b3b32d"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">CoverTree</a>* <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::parent</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>The parent node (NULL if this is the root of the tree). </p>
<p>Definition at line <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00436">436</a> of file <a class="el" href="cover__tree_2cover__tree_8hpp_source.html">cover_tree.hpp</a>.</p>
<p>Referenced by <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00388">mlpack::tree::CoverTree&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::Parent()</a>.</p>
</div>
</div>
<a class="anchor" id="a0601970c11e745c323269e9782dfbf0e"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classmlpack_1_1tree_1_1CoverTree.html#a642f3b132a13c354b6216392a349e10f">ElemType</a> <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::parentDistance</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Distance to the parent. </p>
<p>Definition at line <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00438">438</a> of file <a class="el" href="cover__tree_2cover__tree_8hpp_source.html">cover_tree.hpp</a>.</p>
<p>Referenced by <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00393">mlpack::tree::CoverTree&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::ParentDistance()</a>.</p>
</div>
</div>
<a class="anchor" id="abe65d8768e7599c6a5278cf35c78d97e"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">size_t <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::point</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Index of the point in the matrix which this node represents. </p>
<p>Definition at line <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00424">424</a> of file <a class="el" href="cover__tree_2cover__tree_8hpp_source.html">cover_tree.hpp</a>.</p>
<p>Referenced by <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00270">mlpack::tree::CoverTree&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::Point()</a>, and <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00311">mlpack::tree::CoverTree&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::Stat()</a>.</p>
</div>
</div>
<a class="anchor" id="a268da22f80377d7ebb25b9d12b2128b4"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::scale</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Scale level of the node. </p>
<p>Definition at line <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00428">428</a> of file <a class="el" href="cover__tree_2cover__tree_8hpp_source.html">cover_tree.hpp</a>.</p>
<p>Referenced by <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00299">mlpack::tree::CoverTree&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::Scale()</a>.</p>
</div>
</div>
<a class="anchor" id="af6e9e4c9ab4ee1801f69ac36d5253e48"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename MetricType = metric::LMetric&lt;2, true&gt;, typename StatisticType = EmptyStatistic, typename MatType = arma::mat, typename RootPointPolicy = FirstPointIsRoot&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">StatisticType <a class="el" href="classmlpack_1_1tree_1_1CoverTree.html">mlpack::tree::CoverTree</a>&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::stat</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>The instantiated statistic. </p>
<p>Definition at line <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00432">432</a> of file <a class="el" href="cover__tree_2cover__tree_8hpp_source.html">cover_tree.hpp</a>.</p>
<p>Referenced by <a class="el" href="cover__tree_2cover__tree_8hpp_source.html#l00309">mlpack::tree::CoverTree&lt; MetricType, StatisticType, MatType, RootPointPolicy &gt;::Stat()</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>src/mlpack/core/tree/cover_tree/<a class="el" href="cover__tree_2cover__tree_8hpp_source.html">cover_tree.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
<script type="text/javascript">
var x = document.getElementsByClassName("formulaDsp");
var i;
for (i = 0; i < x.length; i++)
{
x[i].width /= 4;
}
</script>
</html>