Files
mlpack/doc/html/mean__pooling_8hpp_source.html
T

158 lines
57 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/ann/layer/mean_pooling.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_04cdefcc9a97fb221ee3f2d7fb8aab76.html">ann</a></li><li class="navelem"><a class="el" href="dir_104798ce316d01262d69b00f4c94ed15.html">layer</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">mean_pooling.hpp</div> </div>
</div><!--header-->
<div class="contents">
<a href="mean__pooling_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_ANN_LAYER_MEAN_POOLING_HPP</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="preprocessor">#define MLPACK_METHODS_ANN_LAYER_MEAN_POOLING_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>ann {</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="keyword">template</span> &lt;</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160; <span class="keyword">typename</span> InputDataType = arma::mat,</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160; <span class="keyword">typename</span> OutputDataType = arma::mat</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;&gt;</div><div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1MeanPooling.html"> 33</a></span>&#160;<span class="keyword">class </span><a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html">MeanPooling</a></div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;{</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160; <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#a04dc58381b45f80f2fd1920b607a33c8">MeanPooling</a>();</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160;</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#a04dc58381b45f80f2fd1920b607a33c8">MeanPooling</a>(<span class="keyword">const</span> <span class="keywordtype">size_t</span> <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#a220e153e3ff39846d80a1436f00af211">kW</a>,</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; <span class="keyword">const</span> <span class="keywordtype">size_t</span> <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#a206b6d5b8468d2dc8e59e50d8768d40a">kH</a>,</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; <span class="keyword">const</span> <span class="keywordtype">size_t</span> <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#ad0b3cd3d88c506a540e5ee7f23e340aa">dW</a> = 1,</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; <span class="keyword">const</span> <span class="keywordtype">size_t</span> <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#a853d37dafcfc6a374ae8bcf8dc443c85">dH</a> = 1,</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; <span class="keyword">const</span> <span class="keywordtype">bool</span> <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#a792a4e16ed45d8a965304e2fb8335f9b">floor</a> = <span class="keyword">true</span>);</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160;</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; <span class="keyword">template</span>&lt;<span class="keyword">typename</span> eT&gt;</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#a610094e73e75b47e16084b060fa1ea1c">Forward</a>(<span class="keyword">const</span> arma::Mat&lt;eT&gt;&amp;&amp; input, arma::Mat&lt;eT&gt;&amp;&amp; output);</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160;</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; <span class="keyword">template</span>&lt;<span class="keyword">typename</span> eT&gt;</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#a81d1edcb2084d6f9f77d5fd609999549">Backward</a>(<span class="keyword">const</span> arma::Mat&lt;eT&gt;&amp;&amp; <span class="comment">/* input */</span>,</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; arma::Mat&lt;eT&gt;&amp;&amp; gy,</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; arma::Mat&lt;eT&gt;&amp;&amp; g);</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160;</div><div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1MeanPooling.html#a1bf0f9030a957fd9b4391e1cab76e9d8"> 78</a></span>&#160; InputDataType <span class="keyword">const</span>&amp; <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#a1bf0f9030a957fd9b4391e1cab76e9d8">InputParameter</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#a5933d748352f7ce91ec01b03aee46f57">inputParameter</a>; }</div><div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1MeanPooling.html#a648942f3b18a9c99852720009f03bc5a"> 80</a></span>&#160; InputDataType&amp; <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#a648942f3b18a9c99852720009f03bc5a">InputParameter</a>() { <span class="keywordflow">return</span> <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#a5933d748352f7ce91ec01b03aee46f57">inputParameter</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"><a class="line" href="classmlpack_1_1ann_1_1MeanPooling.html#ab290e27c06d9beb6d30f9318e032851a"> 83</a></span>&#160; OutputDataType <span class="keyword">const</span>&amp; <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#ab290e27c06d9beb6d30f9318e032851a">OutputParameter</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#ab48bdff567e53dd2cb86906b03dc056c">outputParameter</a>; }</div><div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1MeanPooling.html#a305b334d407a522bd2505a3141632e3a"> 85</a></span>&#160; OutputDataType&amp; <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#a305b334d407a522bd2505a3141632e3a">OutputParameter</a>() { <span class="keywordflow">return</span> <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#ab48bdff567e53dd2cb86906b03dc056c">outputParameter</a>; }</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160;</div><div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1MeanPooling.html#aa4b0b5e8990e61b1e2c1c1f985ca74ea"> 88</a></span>&#160; OutputDataType <span class="keyword">const</span>&amp; <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#aa4b0b5e8990e61b1e2c1c1f985ca74ea">Delta</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#a65adf7d7c1d61d8d2732dd4863e0ef03">delta</a>; }</div><div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1MeanPooling.html#a9f47634bf7c47caa78ff1c76f2f9e019"> 90</a></span>&#160; OutputDataType&amp; <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#a9f47634bf7c47caa78ff1c76f2f9e019">Delta</a>() { <span class="keywordflow">return</span> <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#a65adf7d7c1d61d8d2732dd4863e0ef03">delta</a>; }</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160;</div><div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1MeanPooling.html#ae106a3d9a5704ed99f4e13a889fc8880"> 93</a></span>&#160; <span class="keywordtype">size_t</span> <span class="keyword">const</span>&amp; <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#ae106a3d9a5704ed99f4e13a889fc8880">InputWidth</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#a8058cd13c4b9f138ea63b15d5d93fd0c">inputWidth</a>; }</div><div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1MeanPooling.html#a26c15395d10ab39369932f3a7d6c1128"> 95</a></span>&#160; <span class="keywordtype">size_t</span>&amp; <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#a26c15395d10ab39369932f3a7d6c1128">InputWidth</a>() { <span class="keywordflow">return</span> <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#a8058cd13c4b9f138ea63b15d5d93fd0c">inputWidth</a>; }</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160;</div><div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1MeanPooling.html#a4c5cdd337061dfbe2e052a37cebfd834"> 98</a></span>&#160; <span class="keywordtype">size_t</span> <span class="keyword">const</span>&amp; <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#a4c5cdd337061dfbe2e052a37cebfd834">InputHeight</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#a599f7b46ea59fbf594f016048a507f43">inputHeight</a>; }</div><div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1MeanPooling.html#a152dff7f6d1f0705f1dd3669cc8d9f6c"> 100</a></span>&#160; <span class="keywordtype">size_t</span>&amp; <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#a152dff7f6d1f0705f1dd3669cc8d9f6c">InputHeight</a>() { <span class="keywordflow">return</span> <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#a599f7b46ea59fbf594f016048a507f43">inputHeight</a>; }</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160;</div><div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1MeanPooling.html#a6733b643febfc32361ba9c4651c65b45"> 103</a></span>&#160; <span class="keywordtype">size_t</span> <span class="keyword">const</span>&amp; <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#a6733b643febfc32361ba9c4651c65b45">OutputWidth</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#ac03712020666c6aef07394731897be4f">outputWidth</a>; }</div><div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1MeanPooling.html#a8fc8216b7774508941f36f595bf1d3a4"> 105</a></span>&#160; <span class="keywordtype">size_t</span>&amp; <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#a8fc8216b7774508941f36f595bf1d3a4">OutputWidth</a>() { <span class="keywordflow">return</span> <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#ac03712020666c6aef07394731897be4f">outputWidth</a>; }</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160;</div><div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1MeanPooling.html#a67f066eeda0be9957fd4e090d0f8bf97"> 108</a></span>&#160; <span class="keywordtype">size_t</span> <span class="keyword">const</span>&amp; <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#a67f066eeda0be9957fd4e090d0f8bf97">OutputHeight</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#ae23137da573f873154aab0064e9e2441">outputHeight</a>; }</div><div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1MeanPooling.html#a5c8d050a6a3c12d8d521916025237a48"> 110</a></span>&#160; <span class="keywordtype">size_t</span>&amp; <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#a5c8d050a6a3c12d8d521916025237a48">OutputHeight</a>() { <span class="keywordflow">return</span> <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#ae23137da573f873154aab0064e9e2441">outputHeight</a>; }</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160;</div><div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1MeanPooling.html#ac1d26c4c7d5db4a0b885940bf00724df"> 113</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#ac1d26c4c7d5db4a0b885940bf00724df">Deterministic</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#acc6c90bb4f57d8b5146e6ce9c9cc8f7d">deterministic</a>; }</div><div class="line"><a name="l00115"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1MeanPooling.html#a0f34e0aedee51945bd5cbf2743aa7fc5"> 115</a></span>&#160; <span class="keywordtype">bool</span>&amp; <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#a0f34e0aedee51945bd5cbf2743aa7fc5">Deterministic</a>() { <span class="keywordflow">return</span> <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#acc6c90bb4f57d8b5146e6ce9c9cc8f7d">deterministic</a>; }</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160;</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160; <span class="keyword">template</span>&lt;<span class="keyword">typename</span> Archive&gt;</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#a88c29cfd786e6c0ca599f094c843aae8">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="l00122"></a><span class="lineno"> 122</span>&#160;</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160;</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160; <span class="keyword">template</span>&lt;<span class="keyword">typename</span> eT&gt;</div><div class="line"><a name="l00132"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1MeanPooling.html#ac5f41704695b650d9b91ea12302ed8f3"> 132</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#ac5f41704695b650d9b91ea12302ed8f3">Pooling</a>(<span class="keyword">const</span> arma::Mat&lt;eT&gt;&amp; input, arma::Mat&lt;eT&gt;&amp; output)</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; {</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160; <span class="keyword">const</span> <span class="keywordtype">size_t</span> rStep = <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#a220e153e3ff39846d80a1436f00af211">kW</a>;</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160; <span class="keyword">const</span> <span class="keywordtype">size_t</span> cStep = <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#a206b6d5b8468d2dc8e59e50d8768d40a">kH</a>;</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160;</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160; <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> j = 0, colidx = 0; j &lt; output.n_cols; ++j, colidx += <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#a853d37dafcfc6a374ae8bcf8dc443c85">dH</a>)</div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160; {</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160; <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i = 0, rowidx = 0; i &lt; output.n_rows; ++i, rowidx += <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#ad0b3cd3d88c506a540e5ee7f23e340aa">dW</a>)</div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160; {</div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160; arma::mat subInput = input(</div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160; arma::span(rowidx, rowidx + rStep - 1 - <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#abf8152fb3d9018bd09861ae8834aee09">offset</a>),</div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160; arma::span(colidx, colidx + cStep - 1 - <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#abf8152fb3d9018bd09861ae8834aee09">offset</a>));</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160;</div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160; output(i, j) = arma::mean(arma::mean(subInput));</div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160; }</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160; }</div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160; }</div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160;</div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160; <span class="keyword">template</span>&lt;<span class="keyword">typename</span> eT&gt;</div><div class="line"><a name="l00157"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1MeanPooling.html#ae024eb3bb084504249515a0e3cb34791"> 157</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#ae024eb3bb084504249515a0e3cb34791">Unpooling</a>(<span class="keyword">const</span> arma::Mat&lt;eT&gt;&amp; input,</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160; <span class="keyword">const</span> arma::Mat&lt;eT&gt;&amp; error,</div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160; arma::Mat&lt;eT&gt;&amp; output)</div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160; {</div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160; <span class="keyword">const</span> <span class="keywordtype">size_t</span> rStep = input.n_rows / error.n_rows - <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#abf8152fb3d9018bd09861ae8834aee09">offset</a>;</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> cStep = input.n_cols / error.n_cols - <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#abf8152fb3d9018bd09861ae8834aee09">offset</a>;</div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160;</div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160; arma::Mat&lt;eT&gt; unpooledError;</div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160; <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> j = 0; j &lt; input.n_cols - cStep; j += cStep)</div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160; {</div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160; <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i = 0; i &lt; input.n_rows - rStep; i += rStep)</div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160; {</div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160; <span class="keyword">const</span> arma::Mat&lt;eT&gt;&amp; inputArea = input(arma::span(i, i + rStep - 1),</div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span>&#160; arma::span(j, j + cStep - 1));</div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span>&#160;</div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span>&#160; unpooledError = arma::Mat&lt;eT&gt;(inputArea.n_rows, inputArea.n_cols);</div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span>&#160; unpooledError.fill(error(i / rStep, j / cStep) / inputArea.n_elem);</div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160;</div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160; output(arma::span(i, i + rStep - 1 - <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#abf8152fb3d9018bd09861ae8834aee09">offset</a>),</div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span>&#160; arma::span(j, j + cStep - 1 - <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#abf8152fb3d9018bd09861ae8834aee09">offset</a>)) += unpooledError;</div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span>&#160; }</div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160; }</div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160; }</div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160;</div><div class="line"><a name="l00182"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1MeanPooling.html#acae3171ad6272cfaa71e86f8e260aeee"> 182</a></span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#acae3171ad6272cfaa71e86f8e260aeee">inSize</a>;</div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span>&#160;</div><div class="line"><a name="l00185"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1MeanPooling.html#a280b3dec3eb9e07b62d61c5338856c8e"> 185</a></span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#a280b3dec3eb9e07b62d61c5338856c8e">outSize</a>;</div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span>&#160;</div><div class="line"><a name="l00188"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1MeanPooling.html#a220e153e3ff39846d80a1436f00af211"> 188</a></span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#a220e153e3ff39846d80a1436f00af211">kW</a>;</div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span>&#160;</div><div class="line"><a name="l00191"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1MeanPooling.html#a206b6d5b8468d2dc8e59e50d8768d40a"> 191</a></span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#a206b6d5b8468d2dc8e59e50d8768d40a">kH</a>;</div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span>&#160;</div><div class="line"><a name="l00194"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1MeanPooling.html#ad0b3cd3d88c506a540e5ee7f23e340aa"> 194</a></span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#ad0b3cd3d88c506a540e5ee7f23e340aa">dW</a>;</div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span>&#160;</div><div class="line"><a name="l00197"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1MeanPooling.html#a853d37dafcfc6a374ae8bcf8dc443c85"> 197</a></span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#a853d37dafcfc6a374ae8bcf8dc443c85">dH</a>;</div><div class="line"><a name="l00198"></a><span class="lineno"> 198</span>&#160;</div><div class="line"><a name="l00200"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1MeanPooling.html#a8058cd13c4b9f138ea63b15d5d93fd0c"> 200</a></span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#a8058cd13c4b9f138ea63b15d5d93fd0c">inputWidth</a>;</div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span>&#160;</div><div class="line"><a name="l00203"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1MeanPooling.html#a599f7b46ea59fbf594f016048a507f43"> 203</a></span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#a599f7b46ea59fbf594f016048a507f43">inputHeight</a>;</div><div class="line"><a name="l00204"></a><span class="lineno"> 204</span>&#160;</div><div class="line"><a name="l00206"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1MeanPooling.html#ac03712020666c6aef07394731897be4f"> 206</a></span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#ac03712020666c6aef07394731897be4f">outputWidth</a>;</div><div class="line"><a name="l00207"></a><span class="lineno"> 207</span>&#160;</div><div class="line"><a name="l00209"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1MeanPooling.html#ae23137da573f873154aab0064e9e2441"> 209</a></span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#ae23137da573f873154aab0064e9e2441">outputHeight</a>;</div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span>&#160;</div><div class="line"><a name="l00212"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1MeanPooling.html#a5377036d7c30923b0f1ca7679babae52"> 212</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#a5377036d7c30923b0f1ca7679babae52">reset</a>;</div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span>&#160;</div><div class="line"><a name="l00215"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1MeanPooling.html#a792a4e16ed45d8a965304e2fb8335f9b"> 215</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#a792a4e16ed45d8a965304e2fb8335f9b">floor</a>;</div><div class="line"><a name="l00216"></a><span class="lineno"> 216</span>&#160;</div><div class="line"><a name="l00218"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1MeanPooling.html#acc6c90bb4f57d8b5146e6ce9c9cc8f7d"> 218</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#acc6c90bb4f57d8b5146e6ce9c9cc8f7d">deterministic</a>;</div><div class="line"><a name="l00219"></a><span class="lineno"> 219</span>&#160;</div><div class="line"><a name="l00221"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1MeanPooling.html#abf8152fb3d9018bd09861ae8834aee09"> 221</a></span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#abf8152fb3d9018bd09861ae8834aee09">offset</a>;</div><div class="line"><a name="l00222"></a><span class="lineno"> 222</span>&#160;</div><div class="line"><a name="l00224"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1MeanPooling.html#abc4367cda7a71b82faff99e049969fb7"> 224</a></span>&#160; arma::cube <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#abc4367cda7a71b82faff99e049969fb7">outputTemp</a>;</div><div class="line"><a name="l00225"></a><span class="lineno"> 225</span>&#160;</div><div class="line"><a name="l00227"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1MeanPooling.html#a138efb4049abd64121e4e28412a45576"> 227</a></span>&#160; arma::cube <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#a138efb4049abd64121e4e28412a45576">inputTemp</a>;</div><div class="line"><a name="l00228"></a><span class="lineno"> 228</span>&#160;</div><div class="line"><a name="l00230"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1MeanPooling.html#ae0fcee69c191bdd973a50f9858e64f1f"> 230</a></span>&#160; arma::cube <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#ae0fcee69c191bdd973a50f9858e64f1f">gTemp</a>;</div><div class="line"><a name="l00231"></a><span class="lineno"> 231</span>&#160;</div><div class="line"><a name="l00233"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1MeanPooling.html#a65adf7d7c1d61d8d2732dd4863e0ef03"> 233</a></span>&#160; OutputDataType <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#a65adf7d7c1d61d8d2732dd4863e0ef03">delta</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_1ann_1_1MeanPooling.html#a0638e43a8316f869b916ed7d8b989b27"> 236</a></span>&#160; OutputDataType <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#a0638e43a8316f869b916ed7d8b989b27">gradient</a>;</div><div class="line"><a name="l00237"></a><span class="lineno"> 237</span>&#160;</div><div class="line"><a name="l00239"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1MeanPooling.html#a5933d748352f7ce91ec01b03aee46f57"> 239</a></span>&#160; InputDataType <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#a5933d748352f7ce91ec01b03aee46f57">inputParameter</a>;</div><div class="line"><a name="l00240"></a><span class="lineno"> 240</span>&#160;</div><div class="line"><a name="l00242"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1MeanPooling.html#ab48bdff567e53dd2cb86906b03dc056c"> 242</a></span>&#160; OutputDataType <a class="code" href="classmlpack_1_1ann_1_1MeanPooling.html#ab48bdff567e53dd2cb86906b03dc056c">outputParameter</a>;</div><div class="line"><a name="l00243"></a><span class="lineno"> 243</span>&#160;}; <span class="comment">// class MeanPooling</span></div><div class="line"><a name="l00244"></a><span class="lineno"> 244</span>&#160;</div><div class="line"><a name="l00245"></a><span class="lineno"> 245</span>&#160;</div><div class="line"><a name="l00246"></a><span class="lineno"> 246</span>&#160;} <span class="comment">// namespace ann</span></div><div class="line"><a name="l00247"></a><span class="lineno"> 247</span>&#160;} <span class="comment">// namespace mlpack</span></div><div class="line"><a name="l00248"></a><span class="lineno"> 248</span>&#160;</div><div class="line"><a name="l00249"></a><span class="lineno"> 249</span>&#160;<span class="comment">// Include implementation.</span></div><div class="line"><a name="l00250"></a><span class="lineno"> 250</span>&#160;<span class="preprocessor">#include &quot;mean_pooling_impl.hpp&quot;</span></div><div class="line"><a name="l00251"></a><span class="lineno"> 251</span>&#160;</div><div class="line"><a name="l00252"></a><span class="lineno"> 252</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="classmlpack_1_1ann_1_1MeanPooling_html_ae0fcee69c191bdd973a50f9858e64f1f"><div class="ttname"><a href="classmlpack_1_1ann_1_1MeanPooling.html#ae0fcee69c191bdd973a50f9858e64f1f">mlpack::ann::MeanPooling::gTemp</a></div><div class="ttdeci">arma::cube gTemp</div><div class="ttdoc">Locally-stored transformed output parameter. </div><div class="ttdef"><b>Definition:</b> <a href="mean__pooling_8hpp_source.html#l00230">mean_pooling.hpp:230</a></div></div>
<div class="ttc" id="classmlpack_1_1ann_1_1MeanPooling_html_a5c8d050a6a3c12d8d521916025237a48"><div class="ttname"><a href="classmlpack_1_1ann_1_1MeanPooling.html#a5c8d050a6a3c12d8d521916025237a48">mlpack::ann::MeanPooling::OutputHeight</a></div><div class="ttdeci">size_t &amp; OutputHeight()</div><div class="ttdoc">Modify the height. </div><div class="ttdef"><b>Definition:</b> <a href="mean__pooling_8hpp_source.html#l00110">mean_pooling.hpp:110</a></div></div>
<div class="ttc" id="classmlpack_1_1ann_1_1MeanPooling_html_a65adf7d7c1d61d8d2732dd4863e0ef03"><div class="ttname"><a href="classmlpack_1_1ann_1_1MeanPooling.html#a65adf7d7c1d61d8d2732dd4863e0ef03">mlpack::ann::MeanPooling::delta</a></div><div class="ttdeci">OutputDataType delta</div><div class="ttdoc">Locally-stored delta object. </div><div class="ttdef"><b>Definition:</b> <a href="mean__pooling_8hpp_source.html#l00233">mean_pooling.hpp:233</a></div></div>
<div class="ttc" id="classmlpack_1_1ann_1_1MeanPooling_html_a6733b643febfc32361ba9c4651c65b45"><div class="ttname"><a href="classmlpack_1_1ann_1_1MeanPooling.html#a6733b643febfc32361ba9c4651c65b45">mlpack::ann::MeanPooling::OutputWidth</a></div><div class="ttdeci">size_t const &amp; OutputWidth() const </div><div class="ttdoc">Get the width. </div><div class="ttdef"><b>Definition:</b> <a href="mean__pooling_8hpp_source.html#l00103">mean_pooling.hpp:103</a></div></div>
<div class="ttc" id="classmlpack_1_1ann_1_1MeanPooling_html_a0638e43a8316f869b916ed7d8b989b27"><div class="ttname"><a href="classmlpack_1_1ann_1_1MeanPooling.html#a0638e43a8316f869b916ed7d8b989b27">mlpack::ann::MeanPooling::gradient</a></div><div class="ttdeci">OutputDataType gradient</div><div class="ttdoc">Locally-stored gradient object. </div><div class="ttdef"><b>Definition:</b> <a href="mean__pooling_8hpp_source.html#l00236">mean_pooling.hpp:236</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_1ann_1_1MeanPooling_html_ab290e27c06d9beb6d30f9318e032851a"><div class="ttname"><a href="classmlpack_1_1ann_1_1MeanPooling.html#ab290e27c06d9beb6d30f9318e032851a">mlpack::ann::MeanPooling::OutputParameter</a></div><div class="ttdeci">OutputDataType const &amp; OutputParameter() const </div><div class="ttdoc">Get the output parameter. </div><div class="ttdef"><b>Definition:</b> <a href="mean__pooling_8hpp_source.html#l00083">mean_pooling.hpp:83</a></div></div>
<div class="ttc" id="classmlpack_1_1ann_1_1MeanPooling_html_a04dc58381b45f80f2fd1920b607a33c8"><div class="ttname"><a href="classmlpack_1_1ann_1_1MeanPooling.html#a04dc58381b45f80f2fd1920b607a33c8">mlpack::ann::MeanPooling::MeanPooling</a></div><div class="ttdeci">MeanPooling()</div><div class="ttdoc">Create the MeanPooling object. </div></div>
<div class="ttc" id="classmlpack_1_1ann_1_1MeanPooling_html_a26c15395d10ab39369932f3a7d6c1128"><div class="ttname"><a href="classmlpack_1_1ann_1_1MeanPooling.html#a26c15395d10ab39369932f3a7d6c1128">mlpack::ann::MeanPooling::InputWidth</a></div><div class="ttdeci">size_t &amp; InputWidth()</div><div class="ttdoc">Modify the width. </div><div class="ttdef"><b>Definition:</b> <a href="mean__pooling_8hpp_source.html#l00095">mean_pooling.hpp:95</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_1ann_1_1MeanPooling_html_a220e153e3ff39846d80a1436f00af211"><div class="ttname"><a href="classmlpack_1_1ann_1_1MeanPooling.html#a220e153e3ff39846d80a1436f00af211">mlpack::ann::MeanPooling::kW</a></div><div class="ttdeci">size_t kW</div><div class="ttdoc">Locally-stored width of the pooling window. </div><div class="ttdef"><b>Definition:</b> <a href="mean__pooling_8hpp_source.html#l00188">mean_pooling.hpp:188</a></div></div>
<div class="ttc" id="classmlpack_1_1ann_1_1MeanPooling_html_a599f7b46ea59fbf594f016048a507f43"><div class="ttname"><a href="classmlpack_1_1ann_1_1MeanPooling.html#a599f7b46ea59fbf594f016048a507f43">mlpack::ann::MeanPooling::inputHeight</a></div><div class="ttdeci">size_t inputHeight</div><div class="ttdoc">Locally-stored input height. </div><div class="ttdef"><b>Definition:</b> <a href="mean__pooling_8hpp_source.html#l00203">mean_pooling.hpp:203</a></div></div>
<div class="ttc" id="classmlpack_1_1ann_1_1MeanPooling_html_abc4367cda7a71b82faff99e049969fb7"><div class="ttname"><a href="classmlpack_1_1ann_1_1MeanPooling.html#abc4367cda7a71b82faff99e049969fb7">mlpack::ann::MeanPooling::outputTemp</a></div><div class="ttdeci">arma::cube outputTemp</div><div class="ttdoc">Locally-stored output parameter. </div><div class="ttdef"><b>Definition:</b> <a href="mean__pooling_8hpp_source.html#l00224">mean_pooling.hpp:224</a></div></div>
<div class="ttc" id="classmlpack_1_1ann_1_1MeanPooling_html"><div class="ttname"><a href="classmlpack_1_1ann_1_1MeanPooling.html">mlpack::ann::MeanPooling</a></div><div class="ttdoc">Implementation of the MeanPooling. </div><div class="ttdef"><b>Definition:</b> <a href="mean__pooling_8hpp_source.html#l00033">mean_pooling.hpp:33</a></div></div>
<div class="ttc" id="classmlpack_1_1ann_1_1MeanPooling_html_a1bf0f9030a957fd9b4391e1cab76e9d8"><div class="ttname"><a href="classmlpack_1_1ann_1_1MeanPooling.html#a1bf0f9030a957fd9b4391e1cab76e9d8">mlpack::ann::MeanPooling::InputParameter</a></div><div class="ttdeci">InputDataType const &amp; InputParameter() const </div><div class="ttdoc">Get the input parameter. </div><div class="ttdef"><b>Definition:</b> <a href="mean__pooling_8hpp_source.html#l00078">mean_pooling.hpp:78</a></div></div>
<div class="ttc" id="classmlpack_1_1ann_1_1MeanPooling_html_a206b6d5b8468d2dc8e59e50d8768d40a"><div class="ttname"><a href="classmlpack_1_1ann_1_1MeanPooling.html#a206b6d5b8468d2dc8e59e50d8768d40a">mlpack::ann::MeanPooling::kH</a></div><div class="ttdeci">size_t kH</div><div class="ttdoc">Locally-stored height of the pooling window. </div><div class="ttdef"><b>Definition:</b> <a href="mean__pooling_8hpp_source.html#l00191">mean_pooling.hpp:191</a></div></div>
<div class="ttc" id="classmlpack_1_1ann_1_1MeanPooling_html_ac5f41704695b650d9b91ea12302ed8f3"><div class="ttname"><a href="classmlpack_1_1ann_1_1MeanPooling.html#ac5f41704695b650d9b91ea12302ed8f3">mlpack::ann::MeanPooling::Pooling</a></div><div class="ttdeci">void Pooling(const arma::Mat&lt; eT &gt; &amp;input, arma::Mat&lt; eT &gt; &amp;output)</div><div class="ttdoc">Apply pooling to the input and store the results. </div><div class="ttdef"><b>Definition:</b> <a href="mean__pooling_8hpp_source.html#l00132">mean_pooling.hpp:132</a></div></div>
<div class="ttc" id="classmlpack_1_1ann_1_1MeanPooling_html_ae024eb3bb084504249515a0e3cb34791"><div class="ttname"><a href="classmlpack_1_1ann_1_1MeanPooling.html#ae024eb3bb084504249515a0e3cb34791">mlpack::ann::MeanPooling::Unpooling</a></div><div class="ttdeci">void Unpooling(const arma::Mat&lt; eT &gt; &amp;input, const arma::Mat&lt; eT &gt; &amp;error, arma::Mat&lt; eT &gt; &amp;output)</div><div class="ttdoc">Apply unpooling to the input and store the results. </div><div class="ttdef"><b>Definition:</b> <a href="mean__pooling_8hpp_source.html#l00157">mean_pooling.hpp:157</a></div></div>
<div class="ttc" id="classmlpack_1_1ann_1_1MeanPooling_html_ac03712020666c6aef07394731897be4f"><div class="ttname"><a href="classmlpack_1_1ann_1_1MeanPooling.html#ac03712020666c6aef07394731897be4f">mlpack::ann::MeanPooling::outputWidth</a></div><div class="ttdeci">size_t outputWidth</div><div class="ttdoc">Locally-stored output width. </div><div class="ttdef"><b>Definition:</b> <a href="mean__pooling_8hpp_source.html#l00206">mean_pooling.hpp:206</a></div></div>
<div class="ttc" id="classmlpack_1_1ann_1_1MeanPooling_html_acc6c90bb4f57d8b5146e6ce9c9cc8f7d"><div class="ttname"><a href="classmlpack_1_1ann_1_1MeanPooling.html#acc6c90bb4f57d8b5146e6ce9c9cc8f7d">mlpack::ann::MeanPooling::deterministic</a></div><div class="ttdeci">bool deterministic</div><div class="ttdoc">If true use maximum a posteriori during the forward pass. </div><div class="ttdef"><b>Definition:</b> <a href="mean__pooling_8hpp_source.html#l00218">mean_pooling.hpp:218</a></div></div>
<div class="ttc" id="classmlpack_1_1ann_1_1MeanPooling_html_a0f34e0aedee51945bd5cbf2743aa7fc5"><div class="ttname"><a href="classmlpack_1_1ann_1_1MeanPooling.html#a0f34e0aedee51945bd5cbf2743aa7fc5">mlpack::ann::MeanPooling::Deterministic</a></div><div class="ttdeci">bool &amp; Deterministic()</div><div class="ttdoc">Modify the value of the deterministic parameter. </div><div class="ttdef"><b>Definition:</b> <a href="mean__pooling_8hpp_source.html#l00115">mean_pooling.hpp:115</a></div></div>
<div class="ttc" id="classmlpack_1_1ann_1_1MeanPooling_html_ae23137da573f873154aab0064e9e2441"><div class="ttname"><a href="classmlpack_1_1ann_1_1MeanPooling.html#ae23137da573f873154aab0064e9e2441">mlpack::ann::MeanPooling::outputHeight</a></div><div class="ttdeci">size_t outputHeight</div><div class="ttdoc">Locally-stored output height. </div><div class="ttdef"><b>Definition:</b> <a href="mean__pooling_8hpp_source.html#l00209">mean_pooling.hpp:209</a></div></div>
<div class="ttc" id="classmlpack_1_1ann_1_1MeanPooling_html_ac1d26c4c7d5db4a0b885940bf00724df"><div class="ttname"><a href="classmlpack_1_1ann_1_1MeanPooling.html#ac1d26c4c7d5db4a0b885940bf00724df">mlpack::ann::MeanPooling::Deterministic</a></div><div class="ttdeci">bool Deterministic() const </div><div class="ttdoc">Get the value of the deterministic parameter. </div><div class="ttdef"><b>Definition:</b> <a href="mean__pooling_8hpp_source.html#l00113">mean_pooling.hpp:113</a></div></div>
<div class="ttc" id="classmlpack_1_1ann_1_1MeanPooling_html_a5377036d7c30923b0f1ca7679babae52"><div class="ttname"><a href="classmlpack_1_1ann_1_1MeanPooling.html#a5377036d7c30923b0f1ca7679babae52">mlpack::ann::MeanPooling::reset</a></div><div class="ttdeci">bool reset</div><div class="ttdoc">Locally-stored reset parameter used to initialize the module once. </div><div class="ttdef"><b>Definition:</b> <a href="mean__pooling_8hpp_source.html#l00212">mean_pooling.hpp:212</a></div></div>
<div class="ttc" id="classmlpack_1_1ann_1_1MeanPooling_html_abf8152fb3d9018bd09861ae8834aee09"><div class="ttname"><a href="classmlpack_1_1ann_1_1MeanPooling.html#abf8152fb3d9018bd09861ae8834aee09">mlpack::ann::MeanPooling::offset</a></div><div class="ttdeci">size_t offset</div><div class="ttdoc">Locally-stored stored rounding offset. </div><div class="ttdef"><b>Definition:</b> <a href="mean__pooling_8hpp_source.html#l00221">mean_pooling.hpp:221</a></div></div>
<div class="ttc" id="classmlpack_1_1ann_1_1MeanPooling_html_a4c5cdd337061dfbe2e052a37cebfd834"><div class="ttname"><a href="classmlpack_1_1ann_1_1MeanPooling.html#a4c5cdd337061dfbe2e052a37cebfd834">mlpack::ann::MeanPooling::InputHeight</a></div><div class="ttdeci">size_t const &amp; InputHeight() const </div><div class="ttdoc">Get the height. </div><div class="ttdef"><b>Definition:</b> <a href="mean__pooling_8hpp_source.html#l00098">mean_pooling.hpp:98</a></div></div>
<div class="ttc" id="classmlpack_1_1ann_1_1MeanPooling_html_a152dff7f6d1f0705f1dd3669cc8d9f6c"><div class="ttname"><a href="classmlpack_1_1ann_1_1MeanPooling.html#a152dff7f6d1f0705f1dd3669cc8d9f6c">mlpack::ann::MeanPooling::InputHeight</a></div><div class="ttdeci">size_t &amp; InputHeight()</div><div class="ttdoc">Modify the height. </div><div class="ttdef"><b>Definition:</b> <a href="mean__pooling_8hpp_source.html#l00100">mean_pooling.hpp:100</a></div></div>
<div class="ttc" id="classmlpack_1_1ann_1_1MeanPooling_html_a792a4e16ed45d8a965304e2fb8335f9b"><div class="ttname"><a href="classmlpack_1_1ann_1_1MeanPooling.html#a792a4e16ed45d8a965304e2fb8335f9b">mlpack::ann::MeanPooling::floor</a></div><div class="ttdeci">bool floor</div><div class="ttdoc">Rounding operation used. </div><div class="ttdef"><b>Definition:</b> <a href="mean__pooling_8hpp_source.html#l00215">mean_pooling.hpp:215</a></div></div>
<div class="ttc" id="classmlpack_1_1ann_1_1MeanPooling_html_a8058cd13c4b9f138ea63b15d5d93fd0c"><div class="ttname"><a href="classmlpack_1_1ann_1_1MeanPooling.html#a8058cd13c4b9f138ea63b15d5d93fd0c">mlpack::ann::MeanPooling::inputWidth</a></div><div class="ttdeci">size_t inputWidth</div><div class="ttdoc">Locally-stored input width. </div><div class="ttdef"><b>Definition:</b> <a href="mean__pooling_8hpp_source.html#l00200">mean_pooling.hpp:200</a></div></div>
<div class="ttc" id="classmlpack_1_1ann_1_1MeanPooling_html_a610094e73e75b47e16084b060fa1ea1c"><div class="ttname"><a href="classmlpack_1_1ann_1_1MeanPooling.html#a610094e73e75b47e16084b060fa1ea1c">mlpack::ann::MeanPooling::Forward</a></div><div class="ttdeci">void Forward(const arma::Mat&lt; eT &gt; &amp;&amp;input, arma::Mat&lt; eT &gt; &amp;&amp;output)</div><div class="ttdoc">Ordinary feed forward pass of a neural network, evaluating the function f(x) by propagating the activ...</div></div>
<div class="ttc" id="classmlpack_1_1ann_1_1MeanPooling_html_ae106a3d9a5704ed99f4e13a889fc8880"><div class="ttname"><a href="classmlpack_1_1ann_1_1MeanPooling.html#ae106a3d9a5704ed99f4e13a889fc8880">mlpack::ann::MeanPooling::InputWidth</a></div><div class="ttdeci">size_t const &amp; InputWidth() const </div><div class="ttdoc">Get the width. </div><div class="ttdef"><b>Definition:</b> <a href="mean__pooling_8hpp_source.html#l00093">mean_pooling.hpp:93</a></div></div>
<div class="ttc" id="classmlpack_1_1ann_1_1MeanPooling_html_a305b334d407a522bd2505a3141632e3a"><div class="ttname"><a href="classmlpack_1_1ann_1_1MeanPooling.html#a305b334d407a522bd2505a3141632e3a">mlpack::ann::MeanPooling::OutputParameter</a></div><div class="ttdeci">OutputDataType &amp; OutputParameter()</div><div class="ttdoc">Modify the output parameter. </div><div class="ttdef"><b>Definition:</b> <a href="mean__pooling_8hpp_source.html#l00085">mean_pooling.hpp:85</a></div></div>
<div class="ttc" id="classmlpack_1_1ann_1_1MeanPooling_html_a67f066eeda0be9957fd4e090d0f8bf97"><div class="ttname"><a href="classmlpack_1_1ann_1_1MeanPooling.html#a67f066eeda0be9957fd4e090d0f8bf97">mlpack::ann::MeanPooling::OutputHeight</a></div><div class="ttdeci">size_t const &amp; OutputHeight() const </div><div class="ttdoc">Get the height. </div><div class="ttdef"><b>Definition:</b> <a href="mean__pooling_8hpp_source.html#l00108">mean_pooling.hpp:108</a></div></div>
<div class="ttc" id="classmlpack_1_1ann_1_1MeanPooling_html_a81d1edcb2084d6f9f77d5fd609999549"><div class="ttname"><a href="classmlpack_1_1ann_1_1MeanPooling.html#a81d1edcb2084d6f9f77d5fd609999549">mlpack::ann::MeanPooling::Backward</a></div><div class="ttdeci">void Backward(const arma::Mat&lt; eT &gt; &amp;&amp;, arma::Mat&lt; eT &gt; &amp;&amp;gy, arma::Mat&lt; eT &gt; &amp;&amp;g)</div><div class="ttdoc">Ordinary feed backward pass of a neural network, using 3rd-order tensors as input, calculating the function f(x) by propagating x backwards through f. </div></div>
<div class="ttc" id="classmlpack_1_1ann_1_1MeanPooling_html_acae3171ad6272cfaa71e86f8e260aeee"><div class="ttname"><a href="classmlpack_1_1ann_1_1MeanPooling.html#acae3171ad6272cfaa71e86f8e260aeee">mlpack::ann::MeanPooling::inSize</a></div><div class="ttdeci">size_t inSize</div><div class="ttdoc">Locally-stored number of input units. </div><div class="ttdef"><b>Definition:</b> <a href="mean__pooling_8hpp_source.html#l00182">mean_pooling.hpp:182</a></div></div>
<div class="ttc" id="classmlpack_1_1ann_1_1MeanPooling_html_a648942f3b18a9c99852720009f03bc5a"><div class="ttname"><a href="classmlpack_1_1ann_1_1MeanPooling.html#a648942f3b18a9c99852720009f03bc5a">mlpack::ann::MeanPooling::InputParameter</a></div><div class="ttdeci">InputDataType &amp; InputParameter()</div><div class="ttdoc">Modify the input parameter. </div><div class="ttdef"><b>Definition:</b> <a href="mean__pooling_8hpp_source.html#l00080">mean_pooling.hpp:80</a></div></div>
<div class="ttc" id="classmlpack_1_1ann_1_1MeanPooling_html_ad0b3cd3d88c506a540e5ee7f23e340aa"><div class="ttname"><a href="classmlpack_1_1ann_1_1MeanPooling.html#ad0b3cd3d88c506a540e5ee7f23e340aa">mlpack::ann::MeanPooling::dW</a></div><div class="ttdeci">size_t dW</div><div class="ttdoc">Locally-stored width of the stride operation. </div><div class="ttdef"><b>Definition:</b> <a href="mean__pooling_8hpp_source.html#l00194">mean_pooling.hpp:194</a></div></div>
<div class="ttc" id="classmlpack_1_1ann_1_1MeanPooling_html_a280b3dec3eb9e07b62d61c5338856c8e"><div class="ttname"><a href="classmlpack_1_1ann_1_1MeanPooling.html#a280b3dec3eb9e07b62d61c5338856c8e">mlpack::ann::MeanPooling::outSize</a></div><div class="ttdeci">size_t outSize</div><div class="ttdoc">Locally-stored number of output units. </div><div class="ttdef"><b>Definition:</b> <a href="mean__pooling_8hpp_source.html#l00185">mean_pooling.hpp:185</a></div></div>
<div class="ttc" id="classmlpack_1_1ann_1_1MeanPooling_html_a88c29cfd786e6c0ca599f094c843aae8"><div class="ttname"><a href="classmlpack_1_1ann_1_1MeanPooling.html#a88c29cfd786e6c0ca599f094c843aae8">mlpack::ann::MeanPooling::Serialize</a></div><div class="ttdeci">void Serialize(Archive &amp;ar, const unsigned int)</div><div class="ttdoc">Serialize the layer. </div></div>
<div class="ttc" id="classmlpack_1_1ann_1_1MeanPooling_html_a138efb4049abd64121e4e28412a45576"><div class="ttname"><a href="classmlpack_1_1ann_1_1MeanPooling.html#a138efb4049abd64121e4e28412a45576">mlpack::ann::MeanPooling::inputTemp</a></div><div class="ttdeci">arma::cube inputTemp</div><div class="ttdoc">Locally-stored transformed input parameter. </div><div class="ttdef"><b>Definition:</b> <a href="mean__pooling_8hpp_source.html#l00227">mean_pooling.hpp:227</a></div></div>
<div class="ttc" id="classmlpack_1_1ann_1_1MeanPooling_html_ab48bdff567e53dd2cb86906b03dc056c"><div class="ttname"><a href="classmlpack_1_1ann_1_1MeanPooling.html#ab48bdff567e53dd2cb86906b03dc056c">mlpack::ann::MeanPooling::outputParameter</a></div><div class="ttdeci">OutputDataType outputParameter</div><div class="ttdoc">Locally-stored output parameter object. </div><div class="ttdef"><b>Definition:</b> <a href="mean__pooling_8hpp_source.html#l00242">mean_pooling.hpp:242</a></div></div>
<div class="ttc" id="classmlpack_1_1ann_1_1MeanPooling_html_a9f47634bf7c47caa78ff1c76f2f9e019"><div class="ttname"><a href="classmlpack_1_1ann_1_1MeanPooling.html#a9f47634bf7c47caa78ff1c76f2f9e019">mlpack::ann::MeanPooling::Delta</a></div><div class="ttdeci">OutputDataType &amp; Delta()</div><div class="ttdoc">Modify the delta. </div><div class="ttdef"><b>Definition:</b> <a href="mean__pooling_8hpp_source.html#l00090">mean_pooling.hpp:90</a></div></div>
<div class="ttc" id="classmlpack_1_1ann_1_1MeanPooling_html_a853d37dafcfc6a374ae8bcf8dc443c85"><div class="ttname"><a href="classmlpack_1_1ann_1_1MeanPooling.html#a853d37dafcfc6a374ae8bcf8dc443c85">mlpack::ann::MeanPooling::dH</a></div><div class="ttdeci">size_t dH</div><div class="ttdoc">Locally-stored height of the stride operation. </div><div class="ttdef"><b>Definition:</b> <a href="mean__pooling_8hpp_source.html#l00197">mean_pooling.hpp:197</a></div></div>
<div class="ttc" id="classmlpack_1_1ann_1_1MeanPooling_html_aa4b0b5e8990e61b1e2c1c1f985ca74ea"><div class="ttname"><a href="classmlpack_1_1ann_1_1MeanPooling.html#aa4b0b5e8990e61b1e2c1c1f985ca74ea">mlpack::ann::MeanPooling::Delta</a></div><div class="ttdeci">OutputDataType const &amp; Delta() const </div><div class="ttdoc">Get the delta. </div><div class="ttdef"><b>Definition:</b> <a href="mean__pooling_8hpp_source.html#l00088">mean_pooling.hpp:88</a></div></div>
<div class="ttc" id="classmlpack_1_1ann_1_1MeanPooling_html_a5933d748352f7ce91ec01b03aee46f57"><div class="ttname"><a href="classmlpack_1_1ann_1_1MeanPooling.html#a5933d748352f7ce91ec01b03aee46f57">mlpack::ann::MeanPooling::inputParameter</a></div><div class="ttdeci">InputDataType inputParameter</div><div class="ttdoc">Locally-stored input parameter object. </div><div class="ttdef"><b>Definition:</b> <a href="mean__pooling_8hpp_source.html#l00239">mean_pooling.hpp:239</a></div></div>
<div class="ttc" id="classmlpack_1_1ann_1_1MeanPooling_html_a8fc8216b7774508941f36f595bf1d3a4"><div class="ttname"><a href="classmlpack_1_1ann_1_1MeanPooling.html#a8fc8216b7774508941f36f595bf1d3a4">mlpack::ann::MeanPooling::OutputWidth</a></div><div class="ttdeci">size_t &amp; OutputWidth()</div><div class="ttdoc">Modify the width. </div><div class="ttdef"><b>Definition:</b> <a href="mean__pooling_8hpp_source.html#l00105">mean_pooling.hpp:105</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>