Files
mlpack/doc/html/example__tree_8hpp_source.html
T

133 lines
25 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: src/mlpack/core/tree/example_tree.hpp Source File</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><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><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="files.html"><span>File&#160;List</span></a></li>
<li><a href="globals.html"><span>File&#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="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_44a936ef30fc126706c6284a2fc0c990.html">mlpack</a></li><li class="navelem"><a class="el" href="dir_f7ac9cdfd28b2e882eb44d163e3b98b4.html">core</a></li><li class="navelem"><a class="el" href="dir_d361cbf9654077cd65f7968e3f8eccf6.html">tree</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">example_tree.hpp</div> </div>
</div><!--header-->
<div class="contents">
<a href="example__tree_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;</div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="preprocessor">#ifndef MLPACK_CORE_TREE_EXAMPLE_TREE_HPP</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="preprocessor">#define MLPACK_CORE_TREE_EXAMPLE_TREE_HPP</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;</div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacemlpack.html">mlpack</a> {</div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="keyword">namespace </span>tree {</div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> MetricType = metric::LMetric&lt;2, true&gt;,</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; <span class="keyword">typename</span> StatisticType = EmptyStatistic,</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; <span class="keyword">typename</span> MatType = arma::mat&gt;</div><div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="classmlpack_1_1tree_1_1ExampleTree.html"> 56</a></span>&#160;<span class="keyword">class </span><a class="code" href="classmlpack_1_1tree_1_1ExampleTree.html">ExampleTree</a></div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160;{</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; <a class="code" href="classmlpack_1_1tree_1_1ExampleTree.html#abaaf19b1a2b919d4e2d28bb90525ae91">ExampleTree</a>(<span class="keyword">const</span> MatType&amp; dataset,</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; MetricType&amp; <a class="code" href="classmlpack_1_1tree_1_1ExampleTree.html#a4b4eb828f7492ebafa97a7991c04c315">metric</a>);</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160;</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="classmlpack_1_1tree_1_1ExampleTree.html#af6a98cb805e6d08ffc088e21a69f706a">NumChildren</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160;</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; <span class="keyword">const</span> <a class="code" href="classmlpack_1_1tree_1_1ExampleTree.html">ExampleTree</a>&amp; <a class="code" href="classmlpack_1_1tree_1_1ExampleTree.html#ad1a4181cc3e07c758d3294e84037aafd">Child</a>(<span class="keyword">const</span> <span class="keywordtype">size_t</span> i) <span class="keyword">const</span>;</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; <a class="code" href="classmlpack_1_1tree_1_1ExampleTree.html">ExampleTree</a>&amp; <a class="code" href="classmlpack_1_1tree_1_1ExampleTree.html#ad1a4181cc3e07c758d3294e84037aafd">Child</a>(<span class="keyword">const</span> <span class="keywordtype">size_t</span> i);</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160;</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; <a class="code" href="classmlpack_1_1tree_1_1ExampleTree.html">ExampleTree</a>* <a class="code" href="classmlpack_1_1tree_1_1ExampleTree.html#ac2e6342ed4556f5130e4e9b369af6aa2">Parent</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160;</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="classmlpack_1_1tree_1_1ExampleTree.html#ac436acbced3cd0b99ff5f4223e1554c4">NumPoints</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160;</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="classmlpack_1_1tree_1_1ExampleTree.html#a20d1e0a047f46caabff14ccaec2ac1a8">Point</a>(<span class="keyword">const</span> <span class="keywordtype">size_t</span> i) <span class="keyword">const</span>;</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160;</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="classmlpack_1_1tree_1_1ExampleTree.html#a4bea7680d3005d77f4db5cf80cae3a3c">NumDescendants</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160;</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="classmlpack_1_1tree_1_1ExampleTree.html#ac73da82b85245cf1dc044decebb204e6">Descendant</a>(<span class="keyword">const</span> <span class="keywordtype">size_t</span> i) <span class="keyword">const</span>;</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160;</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160; <span class="keyword">const</span> StatisticType&amp; <a class="code" href="classmlpack_1_1tree_1_1ExampleTree.html#a6f834a749cdf32773e8fd2ce8a49364b">Stat</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; StatisticType&amp; <a class="code" href="classmlpack_1_1tree_1_1ExampleTree.html#a6f834a749cdf32773e8fd2ce8a49364b">Stat</a>();</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160;</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160; <span class="keyword">const</span> MetricType&amp; <a class="code" href="classmlpack_1_1tree_1_1ExampleTree.html#acae2d391cfc2e6a1ab0e3db6a0219bb0">Metric</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; MetricType&amp; <a class="code" href="classmlpack_1_1tree_1_1ExampleTree.html#acae2d391cfc2e6a1ab0e3db6a0219bb0">Metric</a>();</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160;</div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160; <span class="keywordtype">double</span> <a class="code" href="classmlpack_1_1tree_1_1ExampleTree.html#a6d09b7624a33c4476892aaee57c21a24">MinDistance</a>(<span class="keyword">const</span> MatType&amp; point) <span class="keyword">const</span>;</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160;</div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160; <span class="keywordtype">double</span> <a class="code" href="classmlpack_1_1tree_1_1ExampleTree.html#a6d09b7624a33c4476892aaee57c21a24">MinDistance</a>(<span class="keyword">const</span> <a class="code" href="classmlpack_1_1tree_1_1ExampleTree.html">ExampleTree</a>&amp; other) <span class="keyword">const</span>;</div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160;</div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160; <span class="keywordtype">double</span> <a class="code" href="classmlpack_1_1tree_1_1ExampleTree.html#a6f7b0f22d5b042fefa548afe59ba4656">MaxDistance</a>(<span class="keyword">const</span> MatType&amp; point) <span class="keyword">const</span>;</div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160;</div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span>&#160; <span class="keywordtype">double</span> <a class="code" href="classmlpack_1_1tree_1_1ExampleTree.html#a6f7b0f22d5b042fefa548afe59ba4656">MaxDistance</a>(<span class="keyword">const</span> <a class="code" href="classmlpack_1_1tree_1_1ExampleTree.html">ExampleTree</a>&amp; other) <span class="keyword">const</span>;</div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160;</div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span>&#160; <a class="code" href="classmlpack_1_1math_1_1RangeType.html">math::Range</a> <a class="code" href="classmlpack_1_1tree_1_1ExampleTree.html#afbe951155756bc116fde10fcc9506959">RangeDistance</a>(<span class="keyword">const</span> MatType&amp; point) <span class="keyword">const</span>;</div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>&#160;</div><div class="line"><a name="l00199"></a><span class="lineno"> 199</span>&#160; <a class="code" href="classmlpack_1_1math_1_1RangeType.html">math::Range</a> <a class="code" href="classmlpack_1_1tree_1_1ExampleTree.html#afbe951155756bc116fde10fcc9506959">RangeDistance</a>(<span class="keyword">const</span> <a class="code" href="classmlpack_1_1tree_1_1ExampleTree.html">ExampleTree</a>&amp; other) <span class="keyword">const</span>;</div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span>&#160;</div><div class="line"><a name="l00206"></a><span class="lineno"> 206</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classmlpack_1_1tree_1_1ExampleTree.html#a89587cb6e4700f219ee2d157e89d9044">Centroid</a>(arma::vec&amp; centroid) <span class="keyword">const</span>;</div><div class="line"><a name="l00207"></a><span class="lineno"> 207</span>&#160;</div><div class="line"><a name="l00214"></a><span class="lineno"> 214</span>&#160; <span class="keywordtype">double</span> <a class="code" href="classmlpack_1_1tree_1_1ExampleTree.html#ae470d95ccb6058f848cd8e6f94c21974">FurthestDescendantDistance</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00215"></a><span class="lineno"> 215</span>&#160;</div><div class="line"><a name="l00220"></a><span class="lineno"> 220</span>&#160; <span class="keywordtype">double</span> <a class="code" href="classmlpack_1_1tree_1_1ExampleTree.html#a88dca3b346bc48c177d515674db42029">ParentDistance</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00221"></a><span class="lineno"> 221</span>&#160;</div><div class="line"><a name="l00222"></a><span class="lineno"> 222</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l00225"></a><span class="lineno"><a class="line" href="classmlpack_1_1tree_1_1ExampleTree.html#a32eea6c74781112a993ed0ca8693e47b"> 225</a></span>&#160; StatisticType <a class="code" href="classmlpack_1_1tree_1_1ExampleTree.html#a32eea6c74781112a993ed0ca8693e47b">stat</a>;</div><div class="line"><a name="l00226"></a><span class="lineno"> 226</span>&#160;</div><div class="line"><a name="l00234"></a><span class="lineno"><a class="line" href="classmlpack_1_1tree_1_1ExampleTree.html#a4b4eb828f7492ebafa97a7991c04c315"> 234</a></span>&#160; MetricType&amp; <a class="code" href="classmlpack_1_1tree_1_1ExampleTree.html#a4b4eb828f7492ebafa97a7991c04c315">metric</a>;</div><div class="line"><a name="l00235"></a><span class="lineno"> 235</span>&#160;};</div><div class="line"><a name="l00236"></a><span class="lineno"> 236</span>&#160;</div><div class="line"><a name="l00237"></a><span class="lineno"> 237</span>&#160;} <span class="comment">// namespace tree</span></div><div class="line"><a name="l00238"></a><span class="lineno"> 238</span>&#160;} <span class="comment">// namespace mlpack</span></div><div class="line"><a name="l00239"></a><span class="lineno"> 239</span>&#160;</div><div class="line"><a name="l00240"></a><span class="lineno"> 240</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="classmlpack_1_1tree_1_1ExampleTree_html_af6a98cb805e6d08ffc088e21a69f706a"><div class="ttname"><a href="classmlpack_1_1tree_1_1ExampleTree.html#af6a98cb805e6d08ffc088e21a69f706a">mlpack::tree::ExampleTree::NumChildren</a></div><div class="ttdeci">size_t NumChildren() const </div><div class="ttdoc">Return the number of children of this node. </div></div>
<div class="ttc" id="classmlpack_1_1tree_1_1ExampleTree_html_a89587cb6e4700f219ee2d157e89d9044"><div class="ttname"><a href="classmlpack_1_1tree_1_1ExampleTree.html#a89587cb6e4700f219ee2d157e89d9044">mlpack::tree::ExampleTree::Centroid</a></div><div class="ttdeci">void Centroid(arma::vec &amp;centroid) const </div><div class="ttdoc">Fill the given vector with the center of the node. </div></div>
<div class="ttc" id="namespacemlpack_html"><div class="ttname"><a href="namespacemlpack.html">mlpack</a></div><div class="ttdoc">Linear algebra utility functions, generally performed on matrices or vectors. </div><div class="ttdef"><b>Definition:</b> <a href="binarize_8hpp_source.html#l00018">binarize.hpp:18</a></div></div>
<div class="ttc" id="classmlpack_1_1tree_1_1ExampleTree_html"><div class="ttname"><a href="classmlpack_1_1tree_1_1ExampleTree.html">mlpack::tree::ExampleTree</a></div><div class="ttdoc">This is not an actual space tree but instead an example tree that exists to show and document all the...</div><div class="ttdef"><b>Definition:</b> <a href="example__tree_8hpp_source.html#l00056">example_tree.hpp:56</a></div></div>
<div class="ttc" id="classmlpack_1_1tree_1_1ExampleTree_html_a4bea7680d3005d77f4db5cf80cae3a3c"><div class="ttname"><a href="classmlpack_1_1tree_1_1ExampleTree.html#a4bea7680d3005d77f4db5cf80cae3a3c">mlpack::tree::ExampleTree::NumDescendants</a></div><div class="ttdeci">size_t NumDescendants() const </div><div class="ttdoc">Get the number of descendant points. </div></div>
<div class="ttc" id="classmlpack_1_1tree_1_1ExampleTree_html_a88dca3b346bc48c177d515674db42029"><div class="ttname"><a href="classmlpack_1_1tree_1_1ExampleTree.html#a88dca3b346bc48c177d515674db42029">mlpack::tree::ExampleTree::ParentDistance</a></div><div class="ttdeci">double ParentDistance() const </div><div class="ttdoc">Get the distance from the center of this node to the center of the parent node. </div></div>
<div class="ttc" id="classmlpack_1_1tree_1_1ExampleTree_html_ae470d95ccb6058f848cd8e6f94c21974"><div class="ttname"><a href="classmlpack_1_1tree_1_1ExampleTree.html#ae470d95ccb6058f848cd8e6f94c21974">mlpack::tree::ExampleTree::FurthestDescendantDistance</a></div><div class="ttdeci">double FurthestDescendantDistance() const </div><div class="ttdoc">Get the distance from the center of the node to the furthest descendant point of this node...</div></div>
<div class="ttc" id="classmlpack_1_1tree_1_1ExampleTree_html_ac2e6342ed4556f5130e4e9b369af6aa2"><div class="ttname"><a href="classmlpack_1_1tree_1_1ExampleTree.html#ac2e6342ed4556f5130e4e9b369af6aa2">mlpack::tree::ExampleTree::Parent</a></div><div class="ttdeci">ExampleTree * Parent() const </div><div class="ttdoc">Return the parent node (NULL if this is the root of the tree). </div></div>
<div class="ttc" id="classmlpack_1_1tree_1_1ExampleTree_html_a4b4eb828f7492ebafa97a7991c04c315"><div class="ttname"><a href="classmlpack_1_1tree_1_1ExampleTree.html#a4b4eb828f7492ebafa97a7991c04c315">mlpack::tree::ExampleTree::metric</a></div><div class="ttdeci">MetricType &amp; metric</div><div class="ttdoc">This member is just here so the ExampleTree compiles without warnings. </div><div class="ttdef"><b>Definition:</b> <a href="example__tree_8hpp_source.html#l00234">example_tree.hpp:234</a></div></div>
<div class="ttc" id="classmlpack_1_1tree_1_1ExampleTree_html_a6d09b7624a33c4476892aaee57c21a24"><div class="ttname"><a href="classmlpack_1_1tree_1_1ExampleTree.html#a6d09b7624a33c4476892aaee57c21a24">mlpack::tree::ExampleTree::MinDistance</a></div><div class="ttdeci">double MinDistance(const MatType &amp;point) const </div><div class="ttdoc">Return the minimum distance between this node and a point. </div></div>
<div class="ttc" id="classmlpack_1_1math_1_1RangeType_html"><div class="ttname"><a href="classmlpack_1_1math_1_1RangeType.html">mlpack::math::RangeType&lt; double &gt;</a></div></div>
<div class="ttc" id="classmlpack_1_1tree_1_1ExampleTree_html_acae2d391cfc2e6a1ab0e3db6a0219bb0"><div class="ttname"><a href="classmlpack_1_1tree_1_1ExampleTree.html#acae2d391cfc2e6a1ab0e3db6a0219bb0">mlpack::tree::ExampleTree::Metric</a></div><div class="ttdeci">const MetricType &amp; Metric() const </div><div class="ttdoc">Get the instantiated metric for this node. </div></div>
<div class="ttc" id="classmlpack_1_1tree_1_1ExampleTree_html_a6f7b0f22d5b042fefa548afe59ba4656"><div class="ttname"><a href="classmlpack_1_1tree_1_1ExampleTree.html#a6f7b0f22d5b042fefa548afe59ba4656">mlpack::tree::ExampleTree::MaxDistance</a></div><div class="ttdeci">double MaxDistance(const MatType &amp;point) const </div><div class="ttdoc">Return the maximum distance between this node and a point. </div></div>
<div class="ttc" id="classmlpack_1_1tree_1_1ExampleTree_html_abaaf19b1a2b919d4e2d28bb90525ae91"><div class="ttname"><a href="classmlpack_1_1tree_1_1ExampleTree.html#abaaf19b1a2b919d4e2d28bb90525ae91">mlpack::tree::ExampleTree::ExampleTree</a></div><div class="ttdeci">ExampleTree(const MatType &amp;dataset, MetricType &amp;metric)</div><div class="ttdoc">This constructor will build the tree given a dataset and an instantiated metric. </div></div>
<div class="ttc" id="classmlpack_1_1tree_1_1ExampleTree_html_afbe951155756bc116fde10fcc9506959"><div class="ttname"><a href="classmlpack_1_1tree_1_1ExampleTree.html#afbe951155756bc116fde10fcc9506959">mlpack::tree::ExampleTree::RangeDistance</a></div><div class="ttdeci">math::Range RangeDistance(const MatType &amp;point) const </div><div class="ttdoc">Return both the minimum and maximum distances between this node and a point as a math::Range object...</div></div>
<div class="ttc" id="classmlpack_1_1tree_1_1ExampleTree_html_ac436acbced3cd0b99ff5f4223e1554c4"><div class="ttname"><a href="classmlpack_1_1tree_1_1ExampleTree.html#ac436acbced3cd0b99ff5f4223e1554c4">mlpack::tree::ExampleTree::NumPoints</a></div><div class="ttdeci">size_t NumPoints() const </div><div class="ttdoc">Return the number of points held in this node. </div></div>
<div class="ttc" id="classmlpack_1_1tree_1_1ExampleTree_html_a32eea6c74781112a993ed0ca8693e47b"><div class="ttname"><a href="classmlpack_1_1tree_1_1ExampleTree.html#a32eea6c74781112a993ed0ca8693e47b">mlpack::tree::ExampleTree::stat</a></div><div class="ttdeci">StatisticType stat</div><div class="ttdoc">This member is just here so the ExampleTree compiles without warnings. </div><div class="ttdef"><b>Definition:</b> <a href="example__tree_8hpp_source.html#l00225">example_tree.hpp:225</a></div></div>
<div class="ttc" id="classmlpack_1_1tree_1_1ExampleTree_html_ad1a4181cc3e07c758d3294e84037aafd"><div class="ttname"><a href="classmlpack_1_1tree_1_1ExampleTree.html#ad1a4181cc3e07c758d3294e84037aafd">mlpack::tree::ExampleTree::Child</a></div><div class="ttdeci">const ExampleTree &amp; Child(const size_t i) const </div><div class="ttdoc">Return a particular child of this node. </div></div>
<div class="ttc" id="classmlpack_1_1tree_1_1ExampleTree_html_a20d1e0a047f46caabff14ccaec2ac1a8"><div class="ttname"><a href="classmlpack_1_1tree_1_1ExampleTree.html#a20d1e0a047f46caabff14ccaec2ac1a8">mlpack::tree::ExampleTree::Point</a></div><div class="ttdeci">size_t Point(const size_t i) const </div><div class="ttdoc">Return the index of a particular point of this node. </div></div>
<div class="ttc" id="classmlpack_1_1tree_1_1ExampleTree_html_a6f834a749cdf32773e8fd2ce8a49364b"><div class="ttname"><a href="classmlpack_1_1tree_1_1ExampleTree.html#a6f834a749cdf32773e8fd2ce8a49364b">mlpack::tree::ExampleTree::Stat</a></div><div class="ttdeci">const StatisticType &amp; Stat() const </div><div class="ttdoc">Get the statistic for this node. </div></div>
<div class="ttc" id="classmlpack_1_1tree_1_1ExampleTree_html_ac73da82b85245cf1dc044decebb204e6"><div class="ttname"><a href="classmlpack_1_1tree_1_1ExampleTree.html#ac73da82b85245cf1dc044decebb204e6">mlpack::tree::ExampleTree::Descendant</a></div><div class="ttdeci">size_t Descendant(const size_t i) const </div><div class="ttdoc">Get the index of a particular descendant point. </div></div>
</div><!-- fragment --></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>