131 lines
29 KiB
HTML
131 lines
29 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/binary_space_tree/rp_tree_mean_split.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
|
|
 <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 Page</span></a></li>
|
|
<li><a href="pages.html"><span>Related 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 List</span></a></li>
|
|
<li><a href="globals.html"><span>File 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><li class="navelem"><a class="el" href="dir_f2c902aa2e0a74bdfe4e54224fb2267f.html">binary_space_tree</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle">
|
|
<div class="title">rp_tree_mean_split.hpp</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="rp__tree__mean__split_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> </div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#ifndef MLPACK_CORE_TREE_BINARY_SPACE_TREE_RP_TREE_MEAN_SPLIT_HPP</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#define MLPACK_CORE_TREE_BINARY_SPACE_TREE_RP_TREE_MEAN_SPLIT_HPP</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> </div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#include <<a class="code" href="prereqs_8hpp.html">mlpack/prereqs.hpp</a>></span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#include "<a class="code" href="rp__tree__max__split_8hpp.html">rp_tree_max_split.hpp</a>"</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include <<a class="code" href="perform__split_8hpp.html">mlpack/core/tree/perform_split.hpp</a>></span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#include <<a class="code" href="lin__alg_8hpp.html">mlpack/core/math/lin_alg.hpp</a>></span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> </div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="keyword">namespace </span><a class="code" href="namespacemlpack.html">mlpack</a> {</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="keyword">namespace </span>tree {</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> </div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="keyword">template</span><<span class="keyword">typename</span> BoundType, <span class="keyword">typename</span> MatType = arma::mat></div><div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="classmlpack_1_1tree_1_1RPTreeMeanSplit.html"> 33</a></span> <span class="keyword">class </span><a class="code" href="classmlpack_1_1tree_1_1RPTreeMeanSplit.html">RPTreeMeanSplit</a></div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> {</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="classmlpack_1_1tree_1_1RPTreeMeanSplit.html#a6d6841f0046c8ed29d6d3444e9075e87"> 37</a></span>  <span class="keyword">typedef</span> <span class="keyword">typename</span> MatType::elem_type <a class="code" href="classmlpack_1_1tree_1_1RPTreeMeanSplit.html#a6d6841f0046c8ed29d6d3444e9075e87">ElemType</a>;</div><div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="structmlpack_1_1tree_1_1RPTreeMeanSplit_1_1SplitInfo.html"> 39</a></span>  <span class="keyword">struct </span><a class="code" href="structmlpack_1_1tree_1_1RPTreeMeanSplit_1_1SplitInfo.html">SplitInfo</a></div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  {</div><div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="structmlpack_1_1tree_1_1RPTreeMeanSplit_1_1SplitInfo.html#af2b97d17ae339cda364a3b283a22dca6"> 42</a></span>  arma::Col<ElemType> <a class="code" href="structmlpack_1_1tree_1_1RPTreeMeanSplit_1_1SplitInfo.html#af2b97d17ae339cda364a3b283a22dca6">direction</a>;</div><div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="structmlpack_1_1tree_1_1RPTreeMeanSplit_1_1SplitInfo.html#a0e4c87c1eb2254001d4943b05ee858be"> 44</a></span>  arma::Col<ElemType> <a class="code" href="structmlpack_1_1tree_1_1RPTreeMeanSplit_1_1SplitInfo.html#a0e4c87c1eb2254001d4943b05ee858be">mean</a>;</div><div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="structmlpack_1_1tree_1_1RPTreeMeanSplit_1_1SplitInfo.html#a8448f97213c052c7fe46ddb7d24ae4f7"> 46</a></span>  ElemType <a class="code" href="structmlpack_1_1tree_1_1RPTreeMeanSplit_1_1SplitInfo.html#a8448f97213c052c7fe46ddb7d24ae4f7">splitVal</a>;</div><div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="structmlpack_1_1tree_1_1RPTreeMeanSplit_1_1SplitInfo.html#ae8a24f7008e00f0c156da3054778b0b5"> 49</a></span>  <span class="keywordtype">bool</span> <a class="code" href="structmlpack_1_1tree_1_1RPTreeMeanSplit_1_1SplitInfo.html#ae8a24f7008e00f0c156da3054778b0b5">meanSplit</a>;</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  };</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span> </div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classmlpack_1_1tree_1_1RPTreeMeanSplit.html#a2465e31deeb4a0b739799e2640e1f4f7">SplitNode</a>(<span class="keyword">const</span> BoundType& <span class="comment">/* bound */</span>,</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  MatType& data,</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <span class="keyword">const</span> <span class="keywordtype">size_t</span> begin,</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <span class="keyword">const</span> <span class="keywordtype">size_t</span> count,</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <a class="code" href="structmlpack_1_1tree_1_1RPTreeMeanSplit_1_1SplitInfo.html">SplitInfo</a>& splitInfo);</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span> </div><div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="classmlpack_1_1tree_1_1RPTreeMeanSplit.html#a607b776dedc942ed988cf154c651745a"> 83</a></span>  <span class="keyword">static</span> <span class="keywordtype">size_t</span> <a class="code" href="classmlpack_1_1tree_1_1RPTreeMeanSplit.html#a607b776dedc942ed988cf154c651745a">PerformSplit</a>(MatType& data,</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <span class="keyword">const</span> <span class="keywordtype">size_t</span> begin,</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <span class="keyword">const</span> <span class="keywordtype">size_t</span> count,</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <span class="keyword">const</span> <a class="code" href="structmlpack_1_1tree_1_1RPTreeMeanSplit_1_1SplitInfo.html">SplitInfo</a>& splitInfo)</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  {</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <span class="keywordflow">return</span> split::PerformSplit<MatType, RPTreeMeanSplit>(data, begin, count,</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  splitInfo);</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  }</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span> </div><div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="classmlpack_1_1tree_1_1RPTreeMeanSplit.html#a882f806020e4481c7e091b00a1d18b6f"> 108</a></span>  <span class="keyword">static</span> <span class="keywordtype">size_t</span> <a class="code" href="classmlpack_1_1tree_1_1RPTreeMeanSplit.html#a882f806020e4481c7e091b00a1d18b6f">PerformSplit</a>(MatType& data,</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <span class="keyword">const</span> <span class="keywordtype">size_t</span> begin,</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <span class="keyword">const</span> <span class="keywordtype">size_t</span> count,</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <span class="keyword">const</span> <a class="code" href="structmlpack_1_1tree_1_1RPTreeMeanSplit_1_1SplitInfo.html">SplitInfo</a>& splitInfo,</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  std::vector<size_t>& oldFromNew)</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  {</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <span class="keywordflow">return</span> split::PerformSplit<MatType, RPTreeMeanSplit>(data, begin, count,</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  splitInfo, oldFromNew);</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  }</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span> </div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <span class="keyword">template</span><<span class="keyword">typename</span> VecType></div><div class="line"><a name="l00125"></a><span class="lineno"><a class="line" href="classmlpack_1_1tree_1_1RPTreeMeanSplit.html#ad99bf4c22865e8fc1ed835ad23d3d798"> 125</a></span>  <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classmlpack_1_1tree_1_1RPTreeMeanSplit.html#ad99bf4c22865e8fc1ed835ad23d3d798">AssignToLeftNode</a>(<span class="keyword">const</span> VecType& point, <span class="keyword">const</span> <a class="code" href="structmlpack_1_1tree_1_1RPTreeMeanSplit_1_1SplitInfo.html">SplitInfo</a>& splitInfo)</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  {</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  <span class="keywordflow">if</span> (splitInfo.<a class="code" href="structmlpack_1_1tree_1_1RPTreeMeanSplit_1_1SplitInfo.html#ae8a24f7008e00f0c156da3054778b0b5">meanSplit</a>)</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <span class="keywordflow">return</span> arma::dot(point - splitInfo.<a class="code" href="structmlpack_1_1tree_1_1RPTreeMeanSplit_1_1SplitInfo.html#a0e4c87c1eb2254001d4943b05ee858be">mean</a>, point - splitInfo.<a class="code" href="structmlpack_1_1tree_1_1RPTreeMeanSplit_1_1SplitInfo.html#a0e4c87c1eb2254001d4943b05ee858be">mean</a>) <=</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  splitInfo.<a class="code" href="structmlpack_1_1tree_1_1RPTreeMeanSplit_1_1SplitInfo.html#a8448f97213c052c7fe46ddb7d24ae4f7">splitVal</a>;</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span> </div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  <span class="keywordflow">return</span> (arma::dot(point, splitInfo.<a class="code" href="structmlpack_1_1tree_1_1RPTreeMeanSplit_1_1SplitInfo.html#af2b97d17ae339cda364a3b283a22dca6">direction</a>) <= splitInfo.<a class="code" href="structmlpack_1_1tree_1_1RPTreeMeanSplit_1_1SplitInfo.html#a8448f97213c052c7fe46ddb7d24ae4f7">splitVal</a>);</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  }</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span> </div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span> </div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  <span class="keyword">static</span> ElemType <a class="code" href="classmlpack_1_1tree_1_1RPTreeMeanSplit.html#a9964aa41b1f644cd2b74cb2029ed1439">GetAveragePointDistance</a>(MatType& data,</div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  <span class="keyword">const</span> arma::uvec& samples);</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span> </div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classmlpack_1_1tree_1_1RPTreeMeanSplit.html#a0a7379912ceed7e01610b87ad0a90f22">GetDotMedian</a>(<span class="keyword">const</span> MatType& data,</div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  <span class="keyword">const</span> arma::uvec& samples,</div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  <span class="keyword">const</span> arma::Col<ElemType>& <a class="code" href="structmlpack_1_1tree_1_1RPTreeMeanSplit_1_1SplitInfo.html#af2b97d17ae339cda364a3b283a22dca6">direction</a>,</div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  ElemType& <a class="code" href="structmlpack_1_1tree_1_1RPTreeMeanSplit_1_1SplitInfo.html#a8448f97213c052c7fe46ddb7d24ae4f7">splitVal</a>);</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span> </div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classmlpack_1_1tree_1_1RPTreeMeanSplit.html#afd654454669cd2df0078939e90803dc8">GetMeanMedian</a>(<span class="keyword">const</span> MatType& data,</div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  <span class="keyword">const</span> arma::uvec& samples,</div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  arma::Col<ElemType>& <a class="code" href="structmlpack_1_1tree_1_1RPTreeMeanSplit_1_1SplitInfo.html#a0e4c87c1eb2254001d4943b05ee858be">mean</a>,</div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  ElemType& splitVal);</div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span> };</div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span> </div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span> } <span class="comment">// namespace tree</span></div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span> } <span class="comment">// namespace mlpack</span></div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span> </div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span> <span class="comment">// Include implementation.</span></div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span> <span class="preprocessor">#include "rp_tree_mean_split_impl.hpp"</span></div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span> </div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span> <span class="preprocessor">#endif // MLPACK_CORE_TREE_BINARY_SPACE_TREE_RP_TREE_MEAN_SPLIT_HPP</span></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="structmlpack_1_1tree_1_1RPTreeMeanSplit_1_1SplitInfo_html"><div class="ttname"><a href="structmlpack_1_1tree_1_1RPTreeMeanSplit_1_1SplitInfo.html">mlpack::tree::RPTreeMeanSplit::SplitInfo</a></div><div class="ttdoc">An information about the partition. </div><div class="ttdef"><b>Definition:</b> <a href="rp__tree__mean__split_8hpp_source.html#l00039">rp_tree_mean_split.hpp:39</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1tree_1_1RPTreeMeanSplit_html_ad99bf4c22865e8fc1ed835ad23d3d798"><div class="ttname"><a href="classmlpack_1_1tree_1_1RPTreeMeanSplit.html#ad99bf4c22865e8fc1ed835ad23d3d798">mlpack::tree::RPTreeMeanSplit::AssignToLeftNode</a></div><div class="ttdeci">static bool AssignToLeftNode(const VecType &point, const SplitInfo &splitInfo)</div><div class="ttdoc">Indicates that a point should be assigned to the left subtree. </div><div class="ttdef"><b>Definition:</b> <a href="rp__tree__mean__split_8hpp_source.html#l00125">rp_tree_mean_split.hpp:125</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1tree_1_1RPTreeMeanSplit_html_a882f806020e4481c7e091b00a1d18b6f"><div class="ttname"><a href="classmlpack_1_1tree_1_1RPTreeMeanSplit.html#a882f806020e4481c7e091b00a1d18b6f">mlpack::tree::RPTreeMeanSplit::PerformSplit</a></div><div class="ttdeci">static size_t PerformSplit(MatType &data, const size_t begin, const size_t count, const SplitInfo &splitInfo, std::vector< size_t > &oldFromNew)</div><div class="ttdoc">Perform the split process according to the information about the split and return the list of changed...</div><div class="ttdef"><b>Definition:</b> <a href="rp__tree__mean__split_8hpp_source.html#l00108">rp_tree_mean_split.hpp:108</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="lin__alg_8hpp_html"><div class="ttname"><a href="lin__alg_8hpp.html">lin_alg.hpp</a></div></div>
|
|
<div class="ttc" id="structmlpack_1_1tree_1_1RPTreeMeanSplit_1_1SplitInfo_html_a8448f97213c052c7fe46ddb7d24ae4f7"><div class="ttname"><a href="structmlpack_1_1tree_1_1RPTreeMeanSplit_1_1SplitInfo.html#a8448f97213c052c7fe46ddb7d24ae4f7">mlpack::tree::RPTreeMeanSplit::SplitInfo::splitVal</a></div><div class="ttdeci">ElemType splitVal</div><div class="ttdoc">The value according to which the split will be performed. </div><div class="ttdef"><b>Definition:</b> <a href="rp__tree__mean__split_8hpp_source.html#l00046">rp_tree_mean_split.hpp:46</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1tree_1_1RPTreeMeanSplit_html_a2465e31deeb4a0b739799e2640e1f4f7"><div class="ttname"><a href="classmlpack_1_1tree_1_1RPTreeMeanSplit.html#a2465e31deeb4a0b739799e2640e1f4f7">mlpack::tree::RPTreeMeanSplit::SplitNode</a></div><div class="ttdeci">static bool SplitNode(const BoundType &, MatType &data, const size_t begin, const size_t count, SplitInfo &splitInfo)</div><div class="ttdoc">Split the node according to the mean value in the dimension with maximum width. </div></div>
|
|
<div class="ttc" id="classmlpack_1_1tree_1_1RPTreeMeanSplit_html_a0a7379912ceed7e01610b87ad0a90f22"><div class="ttname"><a href="classmlpack_1_1tree_1_1RPTreeMeanSplit.html#a0a7379912ceed7e01610b87ad0a90f22">mlpack::tree::RPTreeMeanSplit::GetDotMedian</a></div><div class="ttdeci">static bool GetDotMedian(const MatType &data, const arma::uvec &samples, const arma::Col< ElemType > &direction, ElemType &splitVal)</div><div class="ttdoc">Get the median of scalar products of the sampled points and the normal to the hyperplane (i...</div></div>
|
|
<div class="ttc" id="perform__split_8hpp_html"><div class="ttname"><a href="perform__split_8hpp.html">perform_split.hpp</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1tree_1_1RPTreeMeanSplit_html_a9964aa41b1f644cd2b74cb2029ed1439"><div class="ttname"><a href="classmlpack_1_1tree_1_1RPTreeMeanSplit.html#a9964aa41b1f644cd2b74cb2029ed1439">mlpack::tree::RPTreeMeanSplit::GetAveragePointDistance</a></div><div class="ttdeci">static ElemType GetAveragePointDistance(MatType &data, const arma::uvec &samples)</div><div class="ttdoc">Get the average distance between points in the dataset. </div></div>
|
|
<div class="ttc" id="classmlpack_1_1tree_1_1RPTreeMeanSplit_html"><div class="ttname"><a href="classmlpack_1_1tree_1_1RPTreeMeanSplit.html">mlpack::tree::RPTreeMeanSplit</a></div><div class="ttdoc">This class splits a binary space tree. </div><div class="ttdef"><b>Definition:</b> <a href="rp__tree__mean__split_8hpp_source.html#l00033">rp_tree_mean_split.hpp:33</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1tree_1_1RPTreeMeanSplit_html_a607b776dedc942ed988cf154c651745a"><div class="ttname"><a href="classmlpack_1_1tree_1_1RPTreeMeanSplit.html#a607b776dedc942ed988cf154c651745a">mlpack::tree::RPTreeMeanSplit::PerformSplit</a></div><div class="ttdeci">static size_t PerformSplit(MatType &data, const size_t begin, const size_t count, const SplitInfo &splitInfo)</div><div class="ttdoc">Perform the split process according to the information about the split. </div><div class="ttdef"><b>Definition:</b> <a href="rp__tree__mean__split_8hpp_source.html#l00083">rp_tree_mean_split.hpp:83</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1tree_1_1RPTreeMeanSplit_html_afd654454669cd2df0078939e90803dc8"><div class="ttname"><a href="classmlpack_1_1tree_1_1RPTreeMeanSplit.html#afd654454669cd2df0078939e90803dc8">mlpack::tree::RPTreeMeanSplit::GetMeanMedian</a></div><div class="ttdeci">static bool GetMeanMedian(const MatType &data, const arma::uvec &samples, arma::Col< ElemType > &mean, ElemType &splitVal)</div><div class="ttdoc">Get the mean point and the median of distance from the mean to any point of the dataset. </div></div>
|
|
<div class="ttc" id="classmlpack_1_1tree_1_1RPTreeMeanSplit_html_a6d6841f0046c8ed29d6d3444e9075e87"><div class="ttname"><a href="classmlpack_1_1tree_1_1RPTreeMeanSplit.html#a6d6841f0046c8ed29d6d3444e9075e87">mlpack::tree::RPTreeMeanSplit::ElemType</a></div><div class="ttdeci">MatType::elem_type ElemType</div><div class="ttdoc">The element type held by the matrix type. </div><div class="ttdef"><b>Definition:</b> <a href="rp__tree__mean__split_8hpp_source.html#l00037">rp_tree_mean_split.hpp:37</a></div></div>
|
|
<div class="ttc" id="rp__tree__max__split_8hpp_html"><div class="ttname"><a href="rp__tree__max__split_8hpp.html">rp_tree_max_split.hpp</a></div></div>
|
|
<div class="ttc" id="structmlpack_1_1tree_1_1RPTreeMeanSplit_1_1SplitInfo_html_a0e4c87c1eb2254001d4943b05ee858be"><div class="ttname"><a href="structmlpack_1_1tree_1_1RPTreeMeanSplit_1_1SplitInfo.html#a0e4c87c1eb2254001d4943b05ee858be">mlpack::tree::RPTreeMeanSplit::SplitInfo::mean</a></div><div class="ttdeci">arma::Col< ElemType > mean</div><div class="ttdoc">The mean of some sampled points. </div><div class="ttdef"><b>Definition:</b> <a href="rp__tree__mean__split_8hpp_source.html#l00044">rp_tree_mean_split.hpp:44</a></div></div>
|
|
<div class="ttc" id="structmlpack_1_1tree_1_1RPTreeMeanSplit_1_1SplitInfo_html_af2b97d17ae339cda364a3b283a22dca6"><div class="ttname"><a href="structmlpack_1_1tree_1_1RPTreeMeanSplit_1_1SplitInfo.html#af2b97d17ae339cda364a3b283a22dca6">mlpack::tree::RPTreeMeanSplit::SplitInfo::direction</a></div><div class="ttdeci">arma::Col< ElemType > direction</div><div class="ttdoc">The normal to the hyperplane that will split the node. </div><div class="ttdef"><b>Definition:</b> <a href="rp__tree__mean__split_8hpp_source.html#l00042">rp_tree_mean_split.hpp:42</a></div></div>
|
|
<div class="ttc" id="structmlpack_1_1tree_1_1RPTreeMeanSplit_1_1SplitInfo_html_ae8a24f7008e00f0c156da3054778b0b5"><div class="ttname"><a href="structmlpack_1_1tree_1_1RPTreeMeanSplit_1_1SplitInfo.html#ae8a24f7008e00f0c156da3054778b0b5">mlpack::tree::RPTreeMeanSplit::SplitInfo::meanSplit</a></div><div class="ttdeci">bool meanSplit</div><div class="ttdoc">Indicates that we should use the mean split algorithm instead of the median split. </div><div class="ttdef"><b>Definition:</b> <a href="rp__tree__mean__split_8hpp_source.html#l00049">rp_tree_mean_split.hpp:49</a></div></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated by  <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>
|