Files
mlpack/doc/html/dtree_8hpp_source.html
T

164 lines
59 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/methods/det/dtree.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_3cfbf900288ec2fe8dd2c2c8482f216e.html">methods</a></li><li class="navelem"><a class="el" href="dir_829fd86abfc32d55a3f25eeda79942f5.html">det</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">dtree.hpp</div> </div>
</div><!--header-->
<div class="contents">
<a href="dtree_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="l00013"></a><span class="lineno"> 13</span>&#160;<span class="preprocessor">#ifndef MLPACK_METHODS_DET_DTREE_HPP</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="preprocessor">#define MLPACK_METHODS_DET_DTREE_HPP</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;</div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="prereqs_8hpp.html">mlpack/prereqs.hpp</a>&gt;</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;</div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacemlpack.html">mlpack</a> {</div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="keyword">namespace </span>det {</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> MatType,</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; <span class="keyword">typename</span> TagType = <span class="keywordtype">int</span>&gt;</div><div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="classmlpack_1_1det_1_1DTree.html"> 46</a></span>&#160;<span class="keyword">class </span><a class="code" href="classmlpack_1_1det_1_1DTree.html">DTree</a></div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160;{</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="classmlpack_1_1det_1_1DTree.html#a0cfcdb37f3a9b7f1f8751fd99119c37d"> 52</a></span>&#160; <span class="keyword">typedef</span> <span class="keyword">typename</span> MatType::elem_type <a class="code" href="classmlpack_1_1det_1_1DTree.html#a0cfcdb37f3a9b7f1f8751fd99119c37d">ElemType</a>;</div><div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="classmlpack_1_1det_1_1DTree.html#ac71e2d68eabad788fcfd49b9fe1c683a"> 53</a></span>&#160; <span class="keyword">typedef</span> <span class="keyword">typename</span> MatType::vec_type <a class="code" href="classmlpack_1_1det_1_1DTree.html#ac71e2d68eabad788fcfd49b9fe1c683a">VecType</a>;</div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="classmlpack_1_1det_1_1DTree.html#aab7f72886dc30c1d6e84be3b7521f45c"> 54</a></span>&#160; <span class="keyword">typedef</span> <span class="keyword">typename</span> arma::Col&lt;ElemType&gt; <a class="code" href="classmlpack_1_1det_1_1DTree.html#aab7f72886dc30c1d6e84be3b7521f45c">StatType</a>;</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160;</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; <a class="code" href="classmlpack_1_1det_1_1DTree.html#a8ecf6e41418436f79323a57872bbee95">DTree</a>();</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160;</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; <a class="code" href="classmlpack_1_1det_1_1DTree.html#a8ecf6e41418436f79323a57872bbee95">DTree</a>(<span class="keyword">const</span> <a class="code" href="classmlpack_1_1det_1_1DTree.html">DTree</a>&amp; obj);</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160;</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; <a class="code" href="classmlpack_1_1det_1_1DTree.html">DTree</a>&amp; <a class="code" href="classmlpack_1_1det_1_1DTree.html#a6971b4ced89e0477571d9e94dcf0b0af">operator=</a>(<span class="keyword">const</span> <a class="code" href="classmlpack_1_1det_1_1DTree.html">DTree</a>&amp; obj);</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160;</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; <a class="code" href="classmlpack_1_1det_1_1DTree.html#a8ecf6e41418436f79323a57872bbee95">DTree</a>(<a class="code" href="classmlpack_1_1det_1_1DTree.html">DTree</a>&amp;&amp; obj);</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160;</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160; <a class="code" href="classmlpack_1_1det_1_1DTree.html">DTree</a>&amp; <a class="code" href="classmlpack_1_1det_1_1DTree.html#a6971b4ced89e0477571d9e94dcf0b0af">operator=</a>(<a class="code" href="classmlpack_1_1det_1_1DTree.html">DTree</a>&amp;&amp; obj);</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160;</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; <a class="code" href="classmlpack_1_1det_1_1DTree.html#a8ecf6e41418436f79323a57872bbee95">DTree</a>(<span class="keyword">const</span> StatType&amp; <a class="code" href="classmlpack_1_1det_1_1DTree.html#a34c82cdec2b2c0dae7cfe065fd4863ce">maxVals</a>,</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; <span class="keyword">const</span> StatType&amp; <a class="code" href="classmlpack_1_1det_1_1DTree.html#a30a5012cf770793a9e6b963585a13400">minVals</a>,</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; <span class="keyword">const</span> <span class="keywordtype">size_t</span> totalPoints);</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160;</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; <a class="code" href="classmlpack_1_1det_1_1DTree.html#a8ecf6e41418436f79323a57872bbee95">DTree</a>(MatType&amp; data);</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160;</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160; <a class="code" href="classmlpack_1_1det_1_1DTree.html#a8ecf6e41418436f79323a57872bbee95">DTree</a>(<span class="keyword">const</span> StatType&amp; <a class="code" href="classmlpack_1_1det_1_1DTree.html#a34c82cdec2b2c0dae7cfe065fd4863ce">maxVals</a>,</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160; <span class="keyword">const</span> StatType&amp; <a class="code" href="classmlpack_1_1det_1_1DTree.html#a30a5012cf770793a9e6b963585a13400">minVals</a>,</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160; <span class="keyword">const</span> <span class="keywordtype">size_t</span> <a class="code" href="classmlpack_1_1det_1_1DTree.html#a585b8a87798fe0419cbc66c287bc40cd">start</a>,</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160; <span class="keyword">const</span> <span class="keywordtype">size_t</span> <a class="code" href="classmlpack_1_1det_1_1DTree.html#a159f2067030e99c83e8de31f13ed4bd0">end</a>,</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160; <span class="keyword">const</span> <span class="keywordtype">double</span> <a class="code" href="classmlpack_1_1det_1_1DTree.html#adc6d9f98f5d9ae7a52d762ed99d6f523">logNegError</a>);</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160;</div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160; <a class="code" href="classmlpack_1_1det_1_1DTree.html#a8ecf6e41418436f79323a57872bbee95">DTree</a>(<span class="keyword">const</span> StatType&amp; <a class="code" href="classmlpack_1_1det_1_1DTree.html#a34c82cdec2b2c0dae7cfe065fd4863ce">maxVals</a>,</div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160; <span class="keyword">const</span> StatType&amp; <a class="code" href="classmlpack_1_1det_1_1DTree.html#a30a5012cf770793a9e6b963585a13400">minVals</a>,</div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160; <span class="keyword">const</span> <span class="keywordtype">size_t</span> totalPoints,</div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160; <span class="keyword">const</span> <span class="keywordtype">size_t</span> <a class="code" href="classmlpack_1_1det_1_1DTree.html#a585b8a87798fe0419cbc66c287bc40cd">start</a>,</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160; <span class="keyword">const</span> <span class="keywordtype">size_t</span> <a class="code" href="classmlpack_1_1det_1_1DTree.html#a159f2067030e99c83e8de31f13ed4bd0">end</a>);</div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160;</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160; <a class="code" href="classmlpack_1_1det_1_1DTree.html#acc7055908dc5cd38a3ebca406aca3910">~DTree</a>();</div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160;</div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160; <span class="keywordtype">double</span> <a class="code" href="classmlpack_1_1det_1_1DTree.html#ab4fc934ba112bdc11efea1db0d704ced">Grow</a>(MatType&amp; data,</div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160; arma::Col&lt;size_t&gt;&amp; oldFromNew,</div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160; <span class="keyword">const</span> <span class="keywordtype">bool</span> useVolReg = <span class="keyword">false</span>,</div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160; <span class="keyword">const</span> <span class="keywordtype">size_t</span> maxLeafSize = 10,</div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160; <span class="keyword">const</span> <span class="keywordtype">size_t</span> minLeafSize = 5);</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_1det_1_1DTree.html#afcbf4a869e492f6dad0a94d53c2fc213">PruneAndUpdate</a>(<span class="keyword">const</span> <span class="keywordtype">double</span> oldAlpha,</div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160; <span class="keyword">const</span> <span class="keywordtype">size_t</span> points,</div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160; <span class="keyword">const</span> <span class="keywordtype">bool</span> useVolReg = <span class="keyword">false</span>);</div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span>&#160;</div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span>&#160; <span class="keywordtype">double</span> <a class="code" href="classmlpack_1_1det_1_1DTree.html#a5cf85f09f25492afaf616f927bb49996">ComputeValue</a>(<span class="keyword">const</span> VecType&amp; query) <span class="keyword">const</span>;</div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span>&#160;</div><div class="line"><a name="l00191"></a><span class="lineno"> 191</span>&#160; TagType <a class="code" href="classmlpack_1_1det_1_1DTree.html#a71ac58ac8e288e9ecb36dec073f228d8">TagTree</a>(<span class="keyword">const</span> TagType&amp; tag = 0);</div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span>&#160;</div><div class="line"><a name="l00199"></a><span class="lineno"> 199</span>&#160; TagType <a class="code" href="classmlpack_1_1det_1_1DTree.html#a2c8f4a15a0b4f7db80175e9bbbd76267">FindBucket</a>(<span class="keyword">const</span> VecType&amp; query) <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_1det_1_1DTree.html#afd38d81fe73626ac6ad611a838f5510e">ComputeVariableImportance</a>(arma::vec&amp; importances) <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_1det_1_1DTree.html#a04c4818b8c9937a5b783e1a905d6a8a2">LogNegativeError</a>(<span class="keyword">const</span> <span class="keywordtype">size_t</span> totalPoints) <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="l00219"></a><span class="lineno"> 219</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classmlpack_1_1det_1_1DTree.html#a2d2dc44095f9f4ceb46cc4e0f0bf478b">WithinRange</a>(<span class="keyword">const</span> VecType&amp; query) <span class="keyword">const</span>;</div><div class="line"><a name="l00220"></a><span class="lineno"> 220</span>&#160;</div><div class="line"><a name="l00221"></a><span class="lineno"> 221</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l00222"></a><span class="lineno"> 222</span>&#160; <span class="comment">// The indices in the complete set of points</span></div><div class="line"><a name="l00223"></a><span class="lineno"> 223</span>&#160; <span class="comment">// (after all forms of swapping in the original data</span></div><div class="line"><a name="l00224"></a><span class="lineno"> 224</span>&#160; <span class="comment">// matrix to align all the points in a node</span></div><div class="line"><a name="l00225"></a><span class="lineno"> 225</span>&#160; <span class="comment">// consecutively in the matrix. The &#39;old_from_new&#39; array</span></div><div class="line"><a name="l00226"></a><span class="lineno"> 226</span>&#160; <span class="comment">// maps the points back to their original indices.</span></div><div class="line"><a name="l00227"></a><span class="lineno"> 227</span>&#160;</div><div class="line"><a name="l00230"></a><span class="lineno"><a class="line" href="classmlpack_1_1det_1_1DTree.html#a585b8a87798fe0419cbc66c287bc40cd"> 230</a></span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="classmlpack_1_1det_1_1DTree.html#a585b8a87798fe0419cbc66c287bc40cd">start</a>;</div><div class="line"><a name="l00233"></a><span class="lineno"><a class="line" href="classmlpack_1_1det_1_1DTree.html#a159f2067030e99c83e8de31f13ed4bd0"> 233</a></span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="classmlpack_1_1det_1_1DTree.html#a159f2067030e99c83e8de31f13ed4bd0">end</a>;</div><div class="line"><a name="l00234"></a><span class="lineno"> 234</span>&#160;</div><div class="line"><a name="l00236"></a><span class="lineno"><a class="line" href="classmlpack_1_1det_1_1DTree.html#a34c82cdec2b2c0dae7cfe065fd4863ce"> 236</a></span>&#160; StatType <a class="code" href="classmlpack_1_1det_1_1DTree.html#a34c82cdec2b2c0dae7cfe065fd4863ce">maxVals</a>;</div><div class="line"><a name="l00238"></a><span class="lineno"><a class="line" href="classmlpack_1_1det_1_1DTree.html#a30a5012cf770793a9e6b963585a13400"> 238</a></span>&#160; StatType <a class="code" href="classmlpack_1_1det_1_1DTree.html#a30a5012cf770793a9e6b963585a13400">minVals</a>;</div><div class="line"><a name="l00239"></a><span class="lineno"> 239</span>&#160;</div><div class="line"><a name="l00241"></a><span class="lineno"><a class="line" href="classmlpack_1_1det_1_1DTree.html#adeb426216233150dcb5629b4e1fc6835"> 241</a></span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="classmlpack_1_1det_1_1DTree.html#adeb426216233150dcb5629b4e1fc6835">splitDim</a>;</div><div class="line"><a name="l00242"></a><span class="lineno"> 242</span>&#160;</div><div class="line"><a name="l00244"></a><span class="lineno"><a class="line" href="classmlpack_1_1det_1_1DTree.html#adf68306aecf2a67a7582a00c8a1ae61f"> 244</a></span>&#160; ElemType <a class="code" href="classmlpack_1_1det_1_1DTree.html#adf68306aecf2a67a7582a00c8a1ae61f">splitValue</a>;</div><div class="line"><a name="l00245"></a><span class="lineno"> 245</span>&#160;</div><div class="line"><a name="l00247"></a><span class="lineno"><a class="line" href="classmlpack_1_1det_1_1DTree.html#adc6d9f98f5d9ae7a52d762ed99d6f523"> 247</a></span>&#160; <span class="keywordtype">double</span> <a class="code" href="classmlpack_1_1det_1_1DTree.html#adc6d9f98f5d9ae7a52d762ed99d6f523">logNegError</a>;</div><div class="line"><a name="l00248"></a><span class="lineno"> 248</span>&#160;</div><div class="line"><a name="l00250"></a><span class="lineno"><a class="line" href="classmlpack_1_1det_1_1DTree.html#ae4e6a824d475d05f610913fe08f3e89a"> 250</a></span>&#160; <span class="keywordtype">double</span> <a class="code" href="classmlpack_1_1det_1_1DTree.html#ae4e6a824d475d05f610913fe08f3e89a">subtreeLeavesLogNegError</a>;</div><div class="line"><a name="l00251"></a><span class="lineno"> 251</span>&#160;</div><div class="line"><a name="l00253"></a><span class="lineno"><a class="line" href="classmlpack_1_1det_1_1DTree.html#a8e582e132d3e9f3f66c2b4dfeb0435de"> 253</a></span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="classmlpack_1_1det_1_1DTree.html#a8e582e132d3e9f3f66c2b4dfeb0435de">subtreeLeaves</a>;</div><div class="line"><a name="l00254"></a><span class="lineno"> 254</span>&#160;</div><div class="line"><a name="l00256"></a><span class="lineno"><a class="line" href="classmlpack_1_1det_1_1DTree.html#a859a0d66294e50b244651e103871f0e4"> 256</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classmlpack_1_1det_1_1DTree.html#a859a0d66294e50b244651e103871f0e4">root</a>;</div><div class="line"><a name="l00257"></a><span class="lineno"> 257</span>&#160;</div><div class="line"><a name="l00259"></a><span class="lineno"><a class="line" href="classmlpack_1_1det_1_1DTree.html#a7a9fce6a8246faddce07f47bcc9c3017"> 259</a></span>&#160; <span class="keywordtype">double</span> <a class="code" href="classmlpack_1_1det_1_1DTree.html#a7a9fce6a8246faddce07f47bcc9c3017">ratio</a>;</div><div class="line"><a name="l00260"></a><span class="lineno"> 260</span>&#160;</div><div class="line"><a name="l00262"></a><span class="lineno"><a class="line" href="classmlpack_1_1det_1_1DTree.html#a442a6746a4ff57642e6f91f36bd3969f"> 262</a></span>&#160; <span class="keywordtype">double</span> <a class="code" href="classmlpack_1_1det_1_1DTree.html#a442a6746a4ff57642e6f91f36bd3969f">logVolume</a>;</div><div class="line"><a name="l00263"></a><span class="lineno"> 263</span>&#160;</div><div class="line"><a name="l00265"></a><span class="lineno"><a class="line" href="classmlpack_1_1det_1_1DTree.html#a00748e165f9623069d73d12e725422f0"> 265</a></span>&#160; TagType <a class="code" href="classmlpack_1_1det_1_1DTree.html#a00748e165f9623069d73d12e725422f0">bucketTag</a>;</div><div class="line"><a name="l00266"></a><span class="lineno"> 266</span>&#160;</div><div class="line"><a name="l00268"></a><span class="lineno"><a class="line" href="classmlpack_1_1det_1_1DTree.html#a8db8892fbd68424e67c3b2601afd00f8"> 268</a></span>&#160; <span class="keywordtype">double</span> <a class="code" href="classmlpack_1_1det_1_1DTree.html#a8db8892fbd68424e67c3b2601afd00f8">alphaUpper</a>;</div><div class="line"><a name="l00269"></a><span class="lineno"> 269</span>&#160;</div><div class="line"><a name="l00271"></a><span class="lineno"><a class="line" href="classmlpack_1_1det_1_1DTree.html#ade03ac39d4177e00838493dd218d26eb"> 271</a></span>&#160; <a class="code" href="classmlpack_1_1det_1_1DTree.html">DTree</a>* <a class="code" href="classmlpack_1_1det_1_1DTree.html#ade03ac39d4177e00838493dd218d26eb">left</a>;</div><div class="line"><a name="l00273"></a><span class="lineno"><a class="line" href="classmlpack_1_1det_1_1DTree.html#a0011ce8e05b6c456849ddf3f611f2bc2"> 273</a></span>&#160; <a class="code" href="classmlpack_1_1det_1_1DTree.html">DTree</a>* <a class="code" href="classmlpack_1_1det_1_1DTree.html#a0011ce8e05b6c456849ddf3f611f2bc2">right</a>;</div><div class="line"><a name="l00274"></a><span class="lineno"> 274</span>&#160;</div><div class="line"><a name="l00275"></a><span class="lineno"> 275</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00277"></a><span class="lineno"><a class="line" href="classmlpack_1_1det_1_1DTree.html#a36b6b6b84d9bba1a9b16fea211c2a566"> 277</a></span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="classmlpack_1_1det_1_1DTree.html#a36b6b6b84d9bba1a9b16fea211c2a566">Start</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classmlpack_1_1det_1_1DTree.html#a585b8a87798fe0419cbc66c287bc40cd">start</a>; }</div><div class="line"><a name="l00279"></a><span class="lineno"><a class="line" href="classmlpack_1_1det_1_1DTree.html#afe5df412c86791cf25b3240b86d8410b"> 279</a></span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="classmlpack_1_1det_1_1DTree.html#afe5df412c86791cf25b3240b86d8410b">End</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classmlpack_1_1det_1_1DTree.html#a159f2067030e99c83e8de31f13ed4bd0">end</a>; }</div><div class="line"><a name="l00281"></a><span class="lineno"><a class="line" href="classmlpack_1_1det_1_1DTree.html#a0ff0b59f93d7dd74a91ea822dead1764"> 281</a></span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="classmlpack_1_1det_1_1DTree.html#a0ff0b59f93d7dd74a91ea822dead1764">SplitDim</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classmlpack_1_1det_1_1DTree.html#adeb426216233150dcb5629b4e1fc6835">splitDim</a>; }</div><div class="line"><a name="l00283"></a><span class="lineno"><a class="line" href="classmlpack_1_1det_1_1DTree.html#ab83942e364e3336f444e36b75093186c"> 283</a></span>&#160; ElemType <a class="code" href="classmlpack_1_1det_1_1DTree.html#ab83942e364e3336f444e36b75093186c">SplitValue</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classmlpack_1_1det_1_1DTree.html#adf68306aecf2a67a7582a00c8a1ae61f">splitValue</a>; }</div><div class="line"><a name="l00285"></a><span class="lineno"><a class="line" href="classmlpack_1_1det_1_1DTree.html#a217b11e4f2caa689b0498cb19113679b"> 285</a></span>&#160; <span class="keywordtype">double</span> <a class="code" href="classmlpack_1_1det_1_1DTree.html#a217b11e4f2caa689b0498cb19113679b">LogNegError</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classmlpack_1_1det_1_1DTree.html#adc6d9f98f5d9ae7a52d762ed99d6f523">logNegError</a>; }</div><div class="line"><a name="l00287"></a><span class="lineno"><a class="line" href="classmlpack_1_1det_1_1DTree.html#adf91e688b66c7f9634b2e5e07b4a6a5f"> 287</a></span>&#160; <span class="keywordtype">double</span> <a class="code" href="classmlpack_1_1det_1_1DTree.html#adf91e688b66c7f9634b2e5e07b4a6a5f">SubtreeLeavesLogNegError</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classmlpack_1_1det_1_1DTree.html#ae4e6a824d475d05f610913fe08f3e89a">subtreeLeavesLogNegError</a>; }</div><div class="line"><a name="l00289"></a><span class="lineno"><a class="line" href="classmlpack_1_1det_1_1DTree.html#a0fa81f217cf1fed6aec8fa5898379000"> 289</a></span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="classmlpack_1_1det_1_1DTree.html#a0fa81f217cf1fed6aec8fa5898379000">SubtreeLeaves</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classmlpack_1_1det_1_1DTree.html#a8e582e132d3e9f3f66c2b4dfeb0435de">subtreeLeaves</a>; }</div><div class="line"><a name="l00292"></a><span class="lineno"><a class="line" href="classmlpack_1_1det_1_1DTree.html#a4f9015980b40e7237107aa1d0361afb3"> 292</a></span>&#160; <span class="keywordtype">double</span> <a class="code" href="classmlpack_1_1det_1_1DTree.html#a4f9015980b40e7237107aa1d0361afb3">Ratio</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classmlpack_1_1det_1_1DTree.html#a7a9fce6a8246faddce07f47bcc9c3017">ratio</a>; }</div><div class="line"><a name="l00294"></a><span class="lineno"><a class="line" href="classmlpack_1_1det_1_1DTree.html#afdcb667b1efb8e87b05f506b0934d452"> 294</a></span>&#160; <span class="keywordtype">double</span> <a class="code" href="classmlpack_1_1det_1_1DTree.html#afdcb667b1efb8e87b05f506b0934d452">LogVolume</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classmlpack_1_1det_1_1DTree.html#a442a6746a4ff57642e6f91f36bd3969f">logVolume</a>; }</div><div class="line"><a name="l00296"></a><span class="lineno"><a class="line" href="classmlpack_1_1det_1_1DTree.html#ade6ba82c21b3a51e2b48ca55dcad05b6"> 296</a></span>&#160; <a class="code" href="classmlpack_1_1det_1_1DTree.html">DTree</a>* <a class="code" href="classmlpack_1_1det_1_1DTree.html#ade6ba82c21b3a51e2b48ca55dcad05b6">Left</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classmlpack_1_1det_1_1DTree.html#ade03ac39d4177e00838493dd218d26eb">left</a>; }</div><div class="line"><a name="l00298"></a><span class="lineno"><a class="line" href="classmlpack_1_1det_1_1DTree.html#a4c1076b9a7f90103575854261cee526c"> 298</a></span>&#160; <a class="code" href="classmlpack_1_1det_1_1DTree.html">DTree</a>* <a class="code" href="classmlpack_1_1det_1_1DTree.html#a4c1076b9a7f90103575854261cee526c">Right</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classmlpack_1_1det_1_1DTree.html#a0011ce8e05b6c456849ddf3f611f2bc2">right</a>; }</div><div class="line"><a name="l00300"></a><span class="lineno"><a class="line" href="classmlpack_1_1det_1_1DTree.html#ac2ae8837b65bfd7cd606c4542a37dcb2"> 300</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classmlpack_1_1det_1_1DTree.html#ac2ae8837b65bfd7cd606c4542a37dcb2">Root</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classmlpack_1_1det_1_1DTree.html#a859a0d66294e50b244651e103871f0e4">root</a>; }</div><div class="line"><a name="l00302"></a><span class="lineno"><a class="line" href="classmlpack_1_1det_1_1DTree.html#a600717335f80036655a89748bf9d2ca6"> 302</a></span>&#160; <span class="keywordtype">double</span> <a class="code" href="classmlpack_1_1det_1_1DTree.html#a600717335f80036655a89748bf9d2ca6">AlphaUpper</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classmlpack_1_1det_1_1DTree.html#a8db8892fbd68424e67c3b2601afd00f8">alphaUpper</a>; }</div><div class="line"><a name="l00304"></a><span class="lineno"><a class="line" href="classmlpack_1_1det_1_1DTree.html#a4c13a177292efe3e1ac4b57919de588a"> 304</a></span>&#160; TagType <a class="code" href="classmlpack_1_1det_1_1DTree.html#a4c13a177292efe3e1ac4b57919de588a">BucketTag</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> subtreeLeaves == 1 ? bucketTag : -1; }</div><div class="line"><a name="l00305"></a><span class="lineno"> 305</span>&#160;</div><div class="line"><a name="l00307"></a><span class="lineno"><a class="line" href="classmlpack_1_1det_1_1DTree.html#a0b53699fef6b4cebdba80f9d66da4875"> 307</a></span>&#160; <span class="keyword">const</span> StatType&amp; <a class="code" href="classmlpack_1_1det_1_1DTree.html#a0b53699fef6b4cebdba80f9d66da4875">MaxVals</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classmlpack_1_1det_1_1DTree.html#a34c82cdec2b2c0dae7cfe065fd4863ce">maxVals</a>; }</div><div class="line"><a name="l00308"></a><span class="lineno"> 308</span>&#160;</div><div class="line"><a name="l00310"></a><span class="lineno"><a class="line" href="classmlpack_1_1det_1_1DTree.html#a04ed364d6d4dffb9c8e666d7a896b639"> 310</a></span>&#160; <span class="keyword">const</span> StatType&amp; <a class="code" href="classmlpack_1_1det_1_1DTree.html#a04ed364d6d4dffb9c8e666d7a896b639">MinVals</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classmlpack_1_1det_1_1DTree.html#a30a5012cf770793a9e6b963585a13400">minVals</a>; }</div><div class="line"><a name="l00311"></a><span class="lineno"> 311</span>&#160;</div><div class="line"><a name="l00315"></a><span class="lineno"> 315</span>&#160; <span class="keyword">template</span>&lt;<span class="keyword">typename</span> Archive&gt;</div><div class="line"><a name="l00316"></a><span class="lineno"> 316</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classmlpack_1_1det_1_1DTree.html#a7e08ab5201c47388ab10b8c1667f4713">Serialize</a>(Archive&amp; ar, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <span class="comment">/* version */</span>);</div><div class="line"><a name="l00317"></a><span class="lineno"> 317</span>&#160;</div><div class="line"><a name="l00318"></a><span class="lineno"> 318</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l00319"></a><span class="lineno"> 319</span>&#160;</div><div class="line"><a name="l00320"></a><span class="lineno"> 320</span>&#160; <span class="comment">// Utility methods.</span></div><div class="line"><a name="l00321"></a><span class="lineno"> 321</span>&#160;</div><div class="line"><a name="l00325"></a><span class="lineno"> 325</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classmlpack_1_1det_1_1DTree.html#a625c6f821ed0acf1dcd5975e15127cd3">FindSplit</a>(<span class="keyword">const</span> MatType&amp; data,</div><div class="line"><a name="l00326"></a><span class="lineno"> 326</span>&#160; <span class="keywordtype">size_t</span>&amp; splitDim,</div><div class="line"><a name="l00327"></a><span class="lineno"> 327</span>&#160; ElemType&amp; splitValue,</div><div class="line"><a name="l00328"></a><span class="lineno"> 328</span>&#160; <span class="keywordtype">double</span>&amp; leftError,</div><div class="line"><a name="l00329"></a><span class="lineno"> 329</span>&#160; <span class="keywordtype">double</span>&amp; rightError,</div><div class="line"><a name="l00330"></a><span class="lineno"> 330</span>&#160; <span class="keyword">const</span> <span class="keywordtype">size_t</span> minLeafSize = 5) <span class="keyword">const</span>;</div><div class="line"><a name="l00331"></a><span class="lineno"> 331</span>&#160;</div><div class="line"><a name="l00335"></a><span class="lineno"> 335</span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="classmlpack_1_1det_1_1DTree.html#a045cd8e9ac75bc240bdd882bbb2b0230">SplitData</a>(MatType&amp; data,</div><div class="line"><a name="l00336"></a><span class="lineno"> 336</span>&#160; <span class="keyword">const</span> <span class="keywordtype">size_t</span> splitDim,</div><div class="line"><a name="l00337"></a><span class="lineno"> 337</span>&#160; <span class="keyword">const</span> ElemType splitValue,</div><div class="line"><a name="l00338"></a><span class="lineno"> 338</span>&#160; arma::Col&lt;size_t&gt;&amp; oldFromNew) <span class="keyword">const</span>;</div><div class="line"><a name="l00339"></a><span class="lineno"> 339</span>&#160;</div><div class="line"><a name="l00340"></a><span class="lineno"> 340</span>&#160;};</div><div class="line"><a name="l00341"></a><span class="lineno"> 341</span>&#160;</div><div class="line"><a name="l00342"></a><span class="lineno"> 342</span>&#160;} <span class="comment">// namespace det</span></div><div class="line"><a name="l00343"></a><span class="lineno"> 343</span>&#160;} <span class="comment">// namespace mlpack</span></div><div class="line"><a name="l00344"></a><span class="lineno"> 344</span>&#160;</div><div class="line"><a name="l00345"></a><span class="lineno"> 345</span>&#160;<span class="preprocessor">#include &quot;dtree_impl.hpp&quot;</span></div><div class="line"><a name="l00346"></a><span class="lineno"> 346</span>&#160;</div><div class="line"><a name="l00347"></a><span class="lineno"> 347</span>&#160;<span class="preprocessor">#endif // MLPACK_METHODS_DET_DTREE_HPP</span></div><div class="ttc" id="classmlpack_1_1det_1_1DTree_html_a2d2dc44095f9f4ceb46cc4e0f0bf478b"><div class="ttname"><a href="classmlpack_1_1det_1_1DTree.html#a2d2dc44095f9f4ceb46cc4e0f0bf478b">mlpack::det::DTree::WithinRange</a></div><div class="ttdeci">bool WithinRange(const VecType &amp;query) const </div><div class="ttdoc">Return whether a query point is within the range of this node. </div></div>
<div class="ttc" id="classmlpack_1_1det_1_1DTree_html_a04c4818b8c9937a5b783e1a905d6a8a2"><div class="ttname"><a href="classmlpack_1_1det_1_1DTree.html#a04c4818b8c9937a5b783e1a905d6a8a2">mlpack::det::DTree::LogNegativeError</a></div><div class="ttdeci">double LogNegativeError(const size_t totalPoints) const </div><div class="ttdoc">Compute the log-negative-error for this point, given the total number of points in the dataset...</div></div>
<div class="ttc" id="classmlpack_1_1det_1_1DTree_html_aab7f72886dc30c1d6e84be3b7521f45c"><div class="ttname"><a href="classmlpack_1_1det_1_1DTree.html#aab7f72886dc30c1d6e84be3b7521f45c">mlpack::det::DTree::StatType</a></div><div class="ttdeci">arma::Col&lt; ElemType &gt; StatType</div><div class="ttdef"><b>Definition:</b> <a href="dtree_8hpp_source.html#l00054">dtree.hpp:54</a></div></div>
<div class="ttc" id="classmlpack_1_1det_1_1DTree_html_a4c1076b9a7f90103575854261cee526c"><div class="ttname"><a href="classmlpack_1_1det_1_1DTree.html#a4c1076b9a7f90103575854261cee526c">mlpack::det::DTree::Right</a></div><div class="ttdeci">DTree * Right() const </div><div class="ttdoc">Return the right child. </div><div class="ttdef"><b>Definition:</b> <a href="dtree_8hpp_source.html#l00298">dtree.hpp:298</a></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_1det_1_1DTree_html_a4f9015980b40e7237107aa1d0361afb3"><div class="ttname"><a href="classmlpack_1_1det_1_1DTree.html#a4f9015980b40e7237107aa1d0361afb3">mlpack::det::DTree::Ratio</a></div><div class="ttdeci">double Ratio() const </div><div class="ttdoc">Return the ratio of points in this node to the points in the whole dataset. </div><div class="ttdef"><b>Definition:</b> <a href="dtree_8hpp_source.html#l00292">dtree.hpp:292</a></div></div>
<div class="ttc" id="classmlpack_1_1det_1_1DTree_html_a0b53699fef6b4cebdba80f9d66da4875"><div class="ttname"><a href="classmlpack_1_1det_1_1DTree.html#a0b53699fef6b4cebdba80f9d66da4875">mlpack::det::DTree::MaxVals</a></div><div class="ttdeci">const StatType &amp; MaxVals() const </div><div class="ttdoc">Return the maximum values. </div><div class="ttdef"><b>Definition:</b> <a href="dtree_8hpp_source.html#l00307">dtree.hpp:307</a></div></div>
<div class="ttc" id="classmlpack_1_1det_1_1DTree_html_afe5df412c86791cf25b3240b86d8410b"><div class="ttname"><a href="classmlpack_1_1det_1_1DTree.html#afe5df412c86791cf25b3240b86d8410b">mlpack::det::DTree::End</a></div><div class="ttdeci">size_t End() const </div><div class="ttdoc">Return the first index of a point not contained in this node. </div><div class="ttdef"><b>Definition:</b> <a href="dtree_8hpp_source.html#l00279">dtree.hpp:279</a></div></div>
<div class="ttc" id="classmlpack_1_1det_1_1DTree_html_a625c6f821ed0acf1dcd5975e15127cd3"><div class="ttname"><a href="classmlpack_1_1det_1_1DTree.html#a625c6f821ed0acf1dcd5975e15127cd3">mlpack::det::DTree::FindSplit</a></div><div class="ttdeci">bool FindSplit(const MatType &amp;data, size_t &amp;splitDim, ElemType &amp;splitValue, double &amp;leftError, double &amp;rightError, const size_t minLeafSize=5) const </div><div class="ttdoc">Find the dimension to split on. </div></div>
<div class="ttc" id="classmlpack_1_1det_1_1DTree_html_adf91e688b66c7f9634b2e5e07b4a6a5f"><div class="ttname"><a href="classmlpack_1_1det_1_1DTree.html#adf91e688b66c7f9634b2e5e07b4a6a5f">mlpack::det::DTree::SubtreeLeavesLogNegError</a></div><div class="ttdeci">double SubtreeLeavesLogNegError() const </div><div class="ttdoc">Return the log negative error of all descendants of this node. </div><div class="ttdef"><b>Definition:</b> <a href="dtree_8hpp_source.html#l00287">dtree.hpp:287</a></div></div>
<div class="ttc" id="classmlpack_1_1det_1_1DTree_html_afcbf4a869e492f6dad0a94d53c2fc213"><div class="ttname"><a href="classmlpack_1_1det_1_1DTree.html#afcbf4a869e492f6dad0a94d53c2fc213">mlpack::det::DTree::PruneAndUpdate</a></div><div class="ttdeci">double PruneAndUpdate(const double oldAlpha, const size_t points, const bool useVolReg=false)</div><div class="ttdoc">Perform alpha pruning on a tree. </div></div>
<div class="ttc" id="classmlpack_1_1det_1_1DTree_html_ac2ae8837b65bfd7cd606c4542a37dcb2"><div class="ttname"><a href="classmlpack_1_1det_1_1DTree.html#ac2ae8837b65bfd7cd606c4542a37dcb2">mlpack::det::DTree::Root</a></div><div class="ttdeci">bool Root() const </div><div class="ttdoc">Return whether or not this is the root of the tree. </div><div class="ttdef"><b>Definition:</b> <a href="dtree_8hpp_source.html#l00300">dtree.hpp:300</a></div></div>
<div class="ttc" id="classmlpack_1_1det_1_1DTree_html_a600717335f80036655a89748bf9d2ca6"><div class="ttname"><a href="classmlpack_1_1det_1_1DTree.html#a600717335f80036655a89748bf9d2ca6">mlpack::det::DTree::AlphaUpper</a></div><div class="ttdeci">double AlphaUpper() const </div><div class="ttdoc">Return the upper part of the alpha sum. </div><div class="ttdef"><b>Definition:</b> <a href="dtree_8hpp_source.html#l00302">dtree.hpp:302</a></div></div>
<div class="ttc" id="prereqs_8hpp_html"><div class="ttname"><a href="prereqs_8hpp.html">prereqs.hpp</a></div><div class="ttdoc">The core includes that mlpack expects; standard C++ includes and Armadillo. </div></div>
<div class="ttc" id="classmlpack_1_1det_1_1DTree_html_adeb426216233150dcb5629b4e1fc6835"><div class="ttname"><a href="classmlpack_1_1det_1_1DTree.html#adeb426216233150dcb5629b4e1fc6835">mlpack::det::DTree::splitDim</a></div><div class="ttdeci">size_t splitDim</div><div class="ttdoc">The splitting dimension for this node. </div><div class="ttdef"><b>Definition:</b> <a href="dtree_8hpp_source.html#l00241">dtree.hpp:241</a></div></div>
<div class="ttc" id="classmlpack_1_1det_1_1DTree_html_a159f2067030e99c83e8de31f13ed4bd0"><div class="ttname"><a href="classmlpack_1_1det_1_1DTree.html#a159f2067030e99c83e8de31f13ed4bd0">mlpack::det::DTree::end</a></div><div class="ttdeci">size_t end</div><div class="ttdoc">The index of the last point in the dataset contained in this node (and its children). </div><div class="ttdef"><b>Definition:</b> <a href="dtree_8hpp_source.html#l00233">dtree.hpp:233</a></div></div>
<div class="ttc" id="classmlpack_1_1det_1_1DTree_html_a7a9fce6a8246faddce07f47bcc9c3017"><div class="ttname"><a href="classmlpack_1_1det_1_1DTree.html#a7a9fce6a8246faddce07f47bcc9c3017">mlpack::det::DTree::ratio</a></div><div class="ttdeci">double ratio</div><div class="ttdoc">Ratio of the number of points in the node to the total number of points. </div><div class="ttdef"><b>Definition:</b> <a href="dtree_8hpp_source.html#l00259">dtree.hpp:259</a></div></div>
<div class="ttc" id="classmlpack_1_1det_1_1DTree_html_a0fa81f217cf1fed6aec8fa5898379000"><div class="ttname"><a href="classmlpack_1_1det_1_1DTree.html#a0fa81f217cf1fed6aec8fa5898379000">mlpack::det::DTree::SubtreeLeaves</a></div><div class="ttdeci">size_t SubtreeLeaves() const </div><div class="ttdoc">Return the number of leaves which are descendants of this node. </div><div class="ttdef"><b>Definition:</b> <a href="dtree_8hpp_source.html#l00289">dtree.hpp:289</a></div></div>
<div class="ttc" id="classmlpack_1_1det_1_1DTree_html_a0011ce8e05b6c456849ddf3f611f2bc2"><div class="ttname"><a href="classmlpack_1_1det_1_1DTree.html#a0011ce8e05b6c456849ddf3f611f2bc2">mlpack::det::DTree::right</a></div><div class="ttdeci">DTree * right</div><div class="ttdoc">The right child. </div><div class="ttdef"><b>Definition:</b> <a href="dtree_8hpp_source.html#l00273">dtree.hpp:273</a></div></div>
<div class="ttc" id="classmlpack_1_1det_1_1DTree_html_adc6d9f98f5d9ae7a52d762ed99d6f523"><div class="ttname"><a href="classmlpack_1_1det_1_1DTree.html#adc6d9f98f5d9ae7a52d762ed99d6f523">mlpack::det::DTree::logNegError</a></div><div class="ttdeci">double logNegError</div><div class="ttdoc">log-negative-L2-error of the node. </div><div class="ttdef"><b>Definition:</b> <a href="dtree_8hpp_source.html#l00247">dtree.hpp:247</a></div></div>
<div class="ttc" id="classmlpack_1_1det_1_1DTree_html_a5cf85f09f25492afaf616f927bb49996"><div class="ttname"><a href="classmlpack_1_1det_1_1DTree.html#a5cf85f09f25492afaf616f927bb49996">mlpack::det::DTree::ComputeValue</a></div><div class="ttdeci">double ComputeValue(const VecType &amp;query) const </div><div class="ttdoc">Compute the logarithm of the density estimate of a given query point. </div></div>
<div class="ttc" id="classmlpack_1_1det_1_1DTree_html_a04ed364d6d4dffb9c8e666d7a896b639"><div class="ttname"><a href="classmlpack_1_1det_1_1DTree.html#a04ed364d6d4dffb9c8e666d7a896b639">mlpack::det::DTree::MinVals</a></div><div class="ttdeci">const StatType &amp; MinVals() const </div><div class="ttdoc">Return the minimum values. </div><div class="ttdef"><b>Definition:</b> <a href="dtree_8hpp_source.html#l00310">dtree.hpp:310</a></div></div>
<div class="ttc" id="classmlpack_1_1det_1_1DTree_html_afdcb667b1efb8e87b05f506b0934d452"><div class="ttname"><a href="classmlpack_1_1det_1_1DTree.html#afdcb667b1efb8e87b05f506b0934d452">mlpack::det::DTree::LogVolume</a></div><div class="ttdeci">double LogVolume() const </div><div class="ttdoc">Return the inverse of the volume of this node. </div><div class="ttdef"><b>Definition:</b> <a href="dtree_8hpp_source.html#l00294">dtree.hpp:294</a></div></div>
<div class="ttc" id="classmlpack_1_1det_1_1DTree_html_a0cfcdb37f3a9b7f1f8751fd99119c37d"><div class="ttname"><a href="classmlpack_1_1det_1_1DTree.html#a0cfcdb37f3a9b7f1f8751fd99119c37d">mlpack::det::DTree::ElemType</a></div><div class="ttdeci">MatType::elem_type ElemType</div><div class="ttdoc">The actual, underlying type we&amp;#39;re working with. </div><div class="ttdef"><b>Definition:</b> <a href="dtree_8hpp_source.html#l00052">dtree.hpp:52</a></div></div>
<div class="ttc" id="classmlpack_1_1det_1_1DTree_html_a71ac58ac8e288e9ecb36dec073f228d8"><div class="ttname"><a href="classmlpack_1_1det_1_1DTree.html#a71ac58ac8e288e9ecb36dec073f228d8">mlpack::det::DTree::TagTree</a></div><div class="ttdeci">TagType TagTree(const TagType &amp;tag=0)</div><div class="ttdoc">Index the buckets for possible usage later; this results in every leaf in the tree having a specific ...</div></div>
<div class="ttc" id="classmlpack_1_1det_1_1DTree_html_a36b6b6b84d9bba1a9b16fea211c2a566"><div class="ttname"><a href="classmlpack_1_1det_1_1DTree.html#a36b6b6b84d9bba1a9b16fea211c2a566">mlpack::det::DTree::Start</a></div><div class="ttdeci">size_t Start() const </div><div class="ttdoc">Return the starting index of points contained in this node. </div><div class="ttdef"><b>Definition:</b> <a href="dtree_8hpp_source.html#l00277">dtree.hpp:277</a></div></div>
<div class="ttc" id="classmlpack_1_1det_1_1DTree_html_a217b11e4f2caa689b0498cb19113679b"><div class="ttname"><a href="classmlpack_1_1det_1_1DTree.html#a217b11e4f2caa689b0498cb19113679b">mlpack::det::DTree::LogNegError</a></div><div class="ttdeci">double LogNegError() const </div><div class="ttdoc">Return the log negative error of this node. </div><div class="ttdef"><b>Definition:</b> <a href="dtree_8hpp_source.html#l00285">dtree.hpp:285</a></div></div>
<div class="ttc" id="classmlpack_1_1det_1_1DTree_html_a30a5012cf770793a9e6b963585a13400"><div class="ttname"><a href="classmlpack_1_1det_1_1DTree.html#a30a5012cf770793a9e6b963585a13400">mlpack::det::DTree::minVals</a></div><div class="ttdeci">StatType minVals</div><div class="ttdoc">Lower half of bounding box for this node. </div><div class="ttdef"><b>Definition:</b> <a href="dtree_8hpp_source.html#l00238">dtree.hpp:238</a></div></div>
<div class="ttc" id="classmlpack_1_1det_1_1DTree_html_ade6ba82c21b3a51e2b48ca55dcad05b6"><div class="ttname"><a href="classmlpack_1_1det_1_1DTree.html#ade6ba82c21b3a51e2b48ca55dcad05b6">mlpack::det::DTree::Left</a></div><div class="ttdeci">DTree * Left() const </div><div class="ttdoc">Return the left child. </div><div class="ttdef"><b>Definition:</b> <a href="dtree_8hpp_source.html#l00296">dtree.hpp:296</a></div></div>
<div class="ttc" id="classmlpack_1_1det_1_1DTree_html_ac71e2d68eabad788fcfd49b9fe1c683a"><div class="ttname"><a href="classmlpack_1_1det_1_1DTree.html#ac71e2d68eabad788fcfd49b9fe1c683a">mlpack::det::DTree::VecType</a></div><div class="ttdeci">MatType::vec_type VecType</div><div class="ttdef"><b>Definition:</b> <a href="dtree_8hpp_source.html#l00053">dtree.hpp:53</a></div></div>
<div class="ttc" id="classmlpack_1_1det_1_1DTree_html"><div class="ttname"><a href="classmlpack_1_1det_1_1DTree.html">mlpack::det::DTree</a></div><div class="ttdoc">A density estimation tree is similar to both a decision tree and a space partitioning tree (like a kd...</div><div class="ttdef"><b>Definition:</b> <a href="dtree_8hpp_source.html#l00046">dtree.hpp:46</a></div></div>
<div class="ttc" id="classmlpack_1_1det_1_1DTree_html_a585b8a87798fe0419cbc66c287bc40cd"><div class="ttname"><a href="classmlpack_1_1det_1_1DTree.html#a585b8a87798fe0419cbc66c287bc40cd">mlpack::det::DTree::start</a></div><div class="ttdeci">size_t start</div><div class="ttdoc">The index of the first point in the dataset contained in this node (and its children). </div><div class="ttdef"><b>Definition:</b> <a href="dtree_8hpp_source.html#l00230">dtree.hpp:230</a></div></div>
<div class="ttc" id="classmlpack_1_1det_1_1DTree_html_a442a6746a4ff57642e6f91f36bd3969f"><div class="ttname"><a href="classmlpack_1_1det_1_1DTree.html#a442a6746a4ff57642e6f91f36bd3969f">mlpack::det::DTree::logVolume</a></div><div class="ttdeci">double logVolume</div><div class="ttdoc">The logarithm of the volume of the node. </div><div class="ttdef"><b>Definition:</b> <a href="dtree_8hpp_source.html#l00262">dtree.hpp:262</a></div></div>
<div class="ttc" id="classmlpack_1_1det_1_1DTree_html_a4c13a177292efe3e1ac4b57919de588a"><div class="ttname"><a href="classmlpack_1_1det_1_1DTree.html#a4c13a177292efe3e1ac4b57919de588a">mlpack::det::DTree::BucketTag</a></div><div class="ttdeci">TagType BucketTag() const </div><div class="ttdoc">Return the current bucket&amp;#39;s ID, if leaf, or -1 otherwise. </div><div class="ttdef"><b>Definition:</b> <a href="dtree_8hpp_source.html#l00304">dtree.hpp:304</a></div></div>
<div class="ttc" id="classmlpack_1_1det_1_1DTree_html_ab83942e364e3336f444e36b75093186c"><div class="ttname"><a href="classmlpack_1_1det_1_1DTree.html#ab83942e364e3336f444e36b75093186c">mlpack::det::DTree::SplitValue</a></div><div class="ttdeci">ElemType SplitValue() const </div><div class="ttdoc">Return the split value of this node. </div><div class="ttdef"><b>Definition:</b> <a href="dtree_8hpp_source.html#l00283">dtree.hpp:283</a></div></div>
<div class="ttc" id="classmlpack_1_1det_1_1DTree_html_acc7055908dc5cd38a3ebca406aca3910"><div class="ttname"><a href="classmlpack_1_1det_1_1DTree.html#acc7055908dc5cd38a3ebca406aca3910">mlpack::det::DTree::~DTree</a></div><div class="ttdeci">~DTree()</div><div class="ttdoc">Clean up memory allocated by the tree. </div></div>
<div class="ttc" id="classmlpack_1_1det_1_1DTree_html_afd38d81fe73626ac6ad611a838f5510e"><div class="ttname"><a href="classmlpack_1_1det_1_1DTree.html#afd38d81fe73626ac6ad611a838f5510e">mlpack::det::DTree::ComputeVariableImportance</a></div><div class="ttdeci">void ComputeVariableImportance(arma::vec &amp;importances) const </div><div class="ttdoc">Compute the variable importance of each dimension in the learned tree. </div></div>
<div class="ttc" id="classmlpack_1_1det_1_1DTree_html_a8ecf6e41418436f79323a57872bbee95"><div class="ttname"><a href="classmlpack_1_1det_1_1DTree.html#a8ecf6e41418436f79323a57872bbee95">mlpack::det::DTree::DTree</a></div><div class="ttdeci">DTree()</div><div class="ttdoc">Create an empty density estimation tree. </div></div>
<div class="ttc" id="classmlpack_1_1det_1_1DTree_html_a8db8892fbd68424e67c3b2601afd00f8"><div class="ttname"><a href="classmlpack_1_1det_1_1DTree.html#a8db8892fbd68424e67c3b2601afd00f8">mlpack::det::DTree::alphaUpper</a></div><div class="ttdeci">double alphaUpper</div><div class="ttdoc">Upper part of alpha sum; used for pruning. </div><div class="ttdef"><b>Definition:</b> <a href="dtree_8hpp_source.html#l00268">dtree.hpp:268</a></div></div>
<div class="ttc" id="classmlpack_1_1det_1_1DTree_html_a34c82cdec2b2c0dae7cfe065fd4863ce"><div class="ttname"><a href="classmlpack_1_1det_1_1DTree.html#a34c82cdec2b2c0dae7cfe065fd4863ce">mlpack::det::DTree::maxVals</a></div><div class="ttdeci">StatType maxVals</div><div class="ttdoc">Upper half of bounding box for this node. </div><div class="ttdef"><b>Definition:</b> <a href="dtree_8hpp_source.html#l00236">dtree.hpp:236</a></div></div>
<div class="ttc" id="classmlpack_1_1det_1_1DTree_html_a2c8f4a15a0b4f7db80175e9bbbd76267"><div class="ttname"><a href="classmlpack_1_1det_1_1DTree.html#a2c8f4a15a0b4f7db80175e9bbbd76267">mlpack::det::DTree::FindBucket</a></div><div class="ttdeci">TagType FindBucket(const VecType &amp;query) const </div><div class="ttdoc">Return the tag of the leaf containing the query. </div></div>
<div class="ttc" id="classmlpack_1_1det_1_1DTree_html_ae4e6a824d475d05f610913fe08f3e89a"><div class="ttname"><a href="classmlpack_1_1det_1_1DTree.html#ae4e6a824d475d05f610913fe08f3e89a">mlpack::det::DTree::subtreeLeavesLogNegError</a></div><div class="ttdeci">double subtreeLeavesLogNegError</div><div class="ttdoc">Sum of the error of the leaves of the subtree. </div><div class="ttdef"><b>Definition:</b> <a href="dtree_8hpp_source.html#l00250">dtree.hpp:250</a></div></div>
<div class="ttc" id="classmlpack_1_1det_1_1DTree_html_a7e08ab5201c47388ab10b8c1667f4713"><div class="ttname"><a href="classmlpack_1_1det_1_1DTree.html#a7e08ab5201c47388ab10b8c1667f4713">mlpack::det::DTree::Serialize</a></div><div class="ttdeci">void Serialize(Archive &amp;ar, const unsigned int)</div><div class="ttdoc">Serialize the density estimation tree. </div></div>
<div class="ttc" id="classmlpack_1_1det_1_1DTree_html_a859a0d66294e50b244651e103871f0e4"><div class="ttname"><a href="classmlpack_1_1det_1_1DTree.html#a859a0d66294e50b244651e103871f0e4">mlpack::det::DTree::root</a></div><div class="ttdeci">bool root</div><div class="ttdoc">If true, this node is the root of the tree. </div><div class="ttdef"><b>Definition:</b> <a href="dtree_8hpp_source.html#l00256">dtree.hpp:256</a></div></div>
<div class="ttc" id="classmlpack_1_1det_1_1DTree_html_a0ff0b59f93d7dd74a91ea822dead1764"><div class="ttname"><a href="classmlpack_1_1det_1_1DTree.html#a0ff0b59f93d7dd74a91ea822dead1764">mlpack::det::DTree::SplitDim</a></div><div class="ttdeci">size_t SplitDim() const </div><div class="ttdoc">Return the split dimension of this node. </div><div class="ttdef"><b>Definition:</b> <a href="dtree_8hpp_source.html#l00281">dtree.hpp:281</a></div></div>
<div class="ttc" id="classmlpack_1_1det_1_1DTree_html_a045cd8e9ac75bc240bdd882bbb2b0230"><div class="ttname"><a href="classmlpack_1_1det_1_1DTree.html#a045cd8e9ac75bc240bdd882bbb2b0230">mlpack::det::DTree::SplitData</a></div><div class="ttdeci">size_t SplitData(MatType &amp;data, const size_t splitDim, const ElemType splitValue, arma::Col&lt; size_t &gt; &amp;oldFromNew) const </div><div class="ttdoc">Split the data, returning the number of points left of the split. </div></div>
<div class="ttc" id="classmlpack_1_1det_1_1DTree_html_adf68306aecf2a67a7582a00c8a1ae61f"><div class="ttname"><a href="classmlpack_1_1det_1_1DTree.html#adf68306aecf2a67a7582a00c8a1ae61f">mlpack::det::DTree::splitValue</a></div><div class="ttdeci">ElemType splitValue</div><div class="ttdoc">The split value on the splitting dimension for this node. </div><div class="ttdef"><b>Definition:</b> <a href="dtree_8hpp_source.html#l00244">dtree.hpp:244</a></div></div>
<div class="ttc" id="classmlpack_1_1det_1_1DTree_html_a00748e165f9623069d73d12e725422f0"><div class="ttname"><a href="classmlpack_1_1det_1_1DTree.html#a00748e165f9623069d73d12e725422f0">mlpack::det::DTree::bucketTag</a></div><div class="ttdeci">TagType bucketTag</div><div class="ttdoc">The tag for the leaf, used for hashing points. </div><div class="ttdef"><b>Definition:</b> <a href="dtree_8hpp_source.html#l00265">dtree.hpp:265</a></div></div>
<div class="ttc" id="classmlpack_1_1det_1_1DTree_html_ab4fc934ba112bdc11efea1db0d704ced"><div class="ttname"><a href="classmlpack_1_1det_1_1DTree.html#ab4fc934ba112bdc11efea1db0d704ced">mlpack::det::DTree::Grow</a></div><div class="ttdeci">double Grow(MatType &amp;data, arma::Col&lt; size_t &gt; &amp;oldFromNew, const bool useVolReg=false, const size_t maxLeafSize=10, const size_t minLeafSize=5)</div><div class="ttdoc">Greedily expand the tree. </div></div>
<div class="ttc" id="classmlpack_1_1det_1_1DTree_html_a6971b4ced89e0477571d9e94dcf0b0af"><div class="ttname"><a href="classmlpack_1_1det_1_1DTree.html#a6971b4ced89e0477571d9e94dcf0b0af">mlpack::det::DTree::operator=</a></div><div class="ttdeci">DTree &amp; operator=(const DTree &amp;obj)</div><div class="ttdoc">Copy the given tree. </div></div>
<div class="ttc" id="classmlpack_1_1det_1_1DTree_html_a8e582e132d3e9f3f66c2b4dfeb0435de"><div class="ttname"><a href="classmlpack_1_1det_1_1DTree.html#a8e582e132d3e9f3f66c2b4dfeb0435de">mlpack::det::DTree::subtreeLeaves</a></div><div class="ttdeci">size_t subtreeLeaves</div><div class="ttdoc">Number of leaves of the subtree. </div><div class="ttdef"><b>Definition:</b> <a href="dtree_8hpp_source.html#l00253">dtree.hpp:253</a></div></div>
<div class="ttc" id="classmlpack_1_1det_1_1DTree_html_ade03ac39d4177e00838493dd218d26eb"><div class="ttname"><a href="classmlpack_1_1det_1_1DTree.html#ade03ac39d4177e00838493dd218d26eb">mlpack::det::DTree::left</a></div><div class="ttdeci">DTree * left</div><div class="ttdoc">The left child. </div><div class="ttdef"><b>Definition:</b> <a href="dtree_8hpp_source.html#l00271">dtree.hpp:271</a></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>