arm_compute v18.02
[platform/upstream/armcl.git] / documentation / classarm__compute_1_1test_1_1datasets_1_1_threshold_dataset.xhtml
1 <!-- HTML header for doxygen 1.8.9.1-->
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <head>
5 <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
6 <meta http-equiv="X-UA-Compatible" content="IE=9"/>
7 <meta name="generator" content="Doxygen 1.8.11"/>
8 <meta name="robots" content="NOINDEX, NOFOLLOW" /> <!-- Prevent indexing by search engines -->
9 <title>Compute Library: ThresholdDataset Class Reference</title>
10 <link href="tabs.css" rel="stylesheet" type="text/css"/>
11 <script type="text/javascript" src="jquery.js"></script>
12 <script type="text/javascript" src="dynsections.js"></script>
13 <link href="navtree.css" rel="stylesheet" type="text/css"/>
14 <script type="text/javascript" src="resize.js"></script>
15 <script type="text/javascript" src="navtreedata.js"></script>
16 <script type="text/javascript" src="navtree.js"></script>
17 <script type="text/javascript">
18   $(document).ready(initResizable);
19   $(window).load(resizeHeight);
20 </script>
21 <link href="search/search.css" rel="stylesheet" type="text/css"/>
22 <script type="text/javascript" src="search/searchdata.js"></script>
23 <script type="text/javascript" src="search/search.js"></script>
24 <script type="text/javascript">
25   $(document).ready(function() { init_search(); });
26 </script>
27 <script type="text/x-mathjax-config">
28   MathJax.Hub.Config({
29     extensions: ["tex2jax.js"],
30     jax: ["input/TeX","output/HTML-CSS"],
31 });
32 </script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
33 <link href="doxygen.css" rel="stylesheet" type="text/css" />
34 </head>
35 <body>
36 <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
37 <div id="titlearea">
38 <table cellspacing="0" cellpadding="0">
39  <tbody>
40  <tr style="height: 56px;">
41   <td style="padding-left: 0.5em;">
42    <div id="projectname">Compute Library
43    &#160;<span id="projectnumber">18.02</span>
44    </div>
45   </td>
46  </tr>
47  </tbody>
48 </table>
49 </div>
50 <!-- end header part -->
51 <!-- Generated by Doxygen 1.8.11 -->
52 <script type="text/javascript">
53 var searchBox = new SearchBox("searchBox", "search",false,'Search');
54 </script>
55   <div id="navrow1" class="tabs">
56     <ul class="tablist">
57       <li><a href="index.xhtml"><span>Main&#160;Page</span></a></li>
58       <li><a href="pages.xhtml"><span>Related&#160;Pages</span></a></li>
59       <li><a href="namespaces.xhtml"><span>Namespaces</span></a></li>
60       <li class="current"><a href="annotated.xhtml"><span>Data&#160;Structures</span></a></li>
61       <li><a href="files.xhtml"><span>Files</span></a></li>
62       <li>
63         <div id="MSearchBox" class="MSearchBoxInactive">
64         <span class="left">
65           <img id="MSearchSelect" src="search/mag_sel.png"
66                onmouseover="return searchBox.OnSearchSelectShow()"
67                onmouseout="return searchBox.OnSearchSelectHide()"
68                alt=""/>
69           <input type="text" id="MSearchField" value="Search" accesskey="S"
70                onfocus="searchBox.OnSearchFieldFocus(true)" 
71                onblur="searchBox.OnSearchFieldFocus(false)" 
72                onkeyup="searchBox.OnSearchFieldChange(event)"/>
73           </span><span class="right">
74             <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
75           </span>
76         </div>
77       </li>
78     </ul>
79   </div>
80   <div id="navrow2" class="tabs2">
81     <ul class="tablist">
82       <li><a href="annotated.xhtml"><span>Data&#160;Structures</span></a></li>
83       <li><a href="classes.xhtml"><span>Data&#160;Structure&#160;Index</span></a></li>
84       <li><a href="inherits.xhtml"><span>Class&#160;Hierarchy</span></a></li>
85       <li><a href="functions.xhtml"><span>Data&#160;Fields</span></a></li>
86     </ul>
87   </div>
88 </div><!-- top -->
89 <div id="side-nav" class="ui-resizable side-nav-resizable">
90   <div id="nav-tree">
91     <div id="nav-tree-contents">
92       <div id="nav-sync" class="sync"></div>
93     </div>
94   </div>
95   <div id="splitbar" style="-moz-user-select:none;" 
96        class="ui-resizable-handle">
97   </div>
98 </div>
99 <script type="text/javascript">
100 $(document).ready(function(){initNavTree('classarm__compute_1_1test_1_1datasets_1_1_threshold_dataset.xhtml','');});
101 </script>
102 <div id="doc-content">
103 <!-- window showing the filter options -->
104 <div id="MSearchSelectWindow"
105      onmouseover="return searchBox.OnSearchSelectShow()"
106      onmouseout="return searchBox.OnSearchSelectHide()"
107      onkeydown="return searchBox.OnSearchSelectKey(event)">
108 </div>
109
110 <!-- iframe showing the search results (closed by default) -->
111 <div id="MSearchResultsWindow">
112 <iframe src="javascript:void(0)" frameborder="0" 
113         name="MSearchResults" id="MSearchResults">
114 </iframe>
115 </div>
116
117 <div class="header">
118   <div class="summary">
119 <a href="#nested-classes">Data Structures</a> &#124;
120 <a href="#pub-types">Public Types</a> &#124;
121 <a href="#pub-methods">Public Member Functions</a>  </div>
122   <div class="headertitle">
123 <div class="title">ThresholdDataset Class Reference</div>  </div>
124 </div><!--header-->
125 <div class="contents">
126
127 <p><code>#include &lt;<a class="el" href="_threshold_dataset_8h_source.xhtml">ThresholdDataset.h</a>&gt;</code></p>
128 <table class="memberdecls">
129 <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
130 Data Structures</h2></td></tr>
131 <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structarm__compute_1_1test_1_1datasets_1_1_threshold_dataset_1_1iterator.xhtml">iterator</a></td></tr>
132 <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
133 </table><table class="memberdecls">
134 <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
135 Public Types</h2></td></tr>
136 <tr class="memitem:a458c0ac09d41cfb3f0a55a99ef24446c"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1datasets_1_1_threshold_dataset.xhtml#a458c0ac09d41cfb3f0a55a99ef24446c">type</a> = std::tuple&lt; uint8_t, uint8_t, uint8_t, <a class="el" href="namespacearm__compute.xhtml#a3e6b23e675649b83240691abbc42a649">ThresholdType</a>, uint8_t &gt;</td></tr>
137 <tr class="separator:a458c0ac09d41cfb3f0a55a99ef24446c"><td class="memSeparator" colspan="2">&#160;</td></tr>
138 </table><table class="memberdecls">
139 <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
140 Public Member Functions</h2></td></tr>
141 <tr class="memitem:a2fcbf5359798ec294d009f286fd802e6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structarm__compute_1_1test_1_1datasets_1_1_threshold_dataset_1_1iterator.xhtml">iterator</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1datasets_1_1_threshold_dataset.xhtml#a2fcbf5359798ec294d009f286fd802e6">begin</a> () const </td></tr>
142 <tr class="separator:a2fcbf5359798ec294d009f286fd802e6"><td class="memSeparator" colspan="2">&#160;</td></tr>
143 <tr class="memitem:ab8e4e3e2a7bf18888b71bdf9dda0770b"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1datasets_1_1_threshold_dataset.xhtml#ab8e4e3e2a7bf18888b71bdf9dda0770b">size</a> () const </td></tr>
144 <tr class="separator:ab8e4e3e2a7bf18888b71bdf9dda0770b"><td class="memSeparator" colspan="2">&#160;</td></tr>
145 <tr class="memitem:afe9cd51e0c7935c92b881f3697d62f86"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1datasets_1_1_threshold_dataset.xhtml#afe9cd51e0c7935c92b881f3697d62f86">add_config</a> (uint8_t threshold, uint8_t false_value, uint8_t true_value, <a class="el" href="namespacearm__compute.xhtml#a3e6b23e675649b83240691abbc42a649">ThresholdType</a> threshold_type, uint8_t upper)</td></tr>
146 <tr class="separator:afe9cd51e0c7935c92b881f3697d62f86"><td class="memSeparator" colspan="2">&#160;</td></tr>
147 </table>
148 <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
149 <div class="textblock">
150 <p>Definition at line <a class="el" href="_threshold_dataset_8h_source.xhtml#l00037">37</a> of file <a class="el" href="_threshold_dataset_8h_source.xhtml">ThresholdDataset.h</a>.</p>
151 </div><h2 class="groupheader">Member Typedef Documentation</h2>
152 <a class="anchor" id="a458c0ac09d41cfb3f0a55a99ef24446c"></a>
153 <div class="memitem">
154 <div class="memproto">
155       <table class="memname">
156         <tr>
157           <td class="memname">using <a class="el" href="classarm__compute_1_1test_1_1datasets_1_1_threshold_dataset.xhtml#a458c0ac09d41cfb3f0a55a99ef24446c">type</a> =  std::tuple&lt;uint8_t, uint8_t, uint8_t, <a class="el" href="namespacearm__compute.xhtml#a3e6b23e675649b83240691abbc42a649">ThresholdType</a>, uint8_t&gt;</td>
158         </tr>
159       </table>
160 </div><div class="memdoc">
161
162 <p>Definition at line <a class="el" href="_threshold_dataset_8h_source.xhtml#l00040">40</a> of file <a class="el" href="_threshold_dataset_8h_source.xhtml">ThresholdDataset.h</a>.</p>
163
164 </div>
165 </div>
166 <h2 class="groupheader">Member Function Documentation</h2>
167 <a class="anchor" id="afe9cd51e0c7935c92b881f3697d62f86"></a>
168 <div class="memitem">
169 <div class="memproto">
170 <table class="mlabels">
171   <tr>
172   <td class="mlabels-left">
173       <table class="memname">
174         <tr>
175           <td class="memname">void add_config </td>
176           <td>(</td>
177           <td class="paramtype">uint8_t&#160;</td>
178           <td class="paramname"><em>threshold</em>, </td>
179         </tr>
180         <tr>
181           <td class="paramkey"></td>
182           <td></td>
183           <td class="paramtype">uint8_t&#160;</td>
184           <td class="paramname"><em>false_value</em>, </td>
185         </tr>
186         <tr>
187           <td class="paramkey"></td>
188           <td></td>
189           <td class="paramtype">uint8_t&#160;</td>
190           <td class="paramname"><em>true_value</em>, </td>
191         </tr>
192         <tr>
193           <td class="paramkey"></td>
194           <td></td>
195           <td class="paramtype"><a class="el" href="namespacearm__compute.xhtml#a3e6b23e675649b83240691abbc42a649">ThresholdType</a>&#160;</td>
196           <td class="paramname"><em>threshold_type</em>, </td>
197         </tr>
198         <tr>
199           <td class="paramkey"></td>
200           <td></td>
201           <td class="paramtype">uint8_t&#160;</td>
202           <td class="paramname"><em>upper</em>&#160;</td>
203         </tr>
204         <tr>
205           <td></td>
206           <td>)</td>
207           <td></td><td></td>
208         </tr>
209       </table>
210   </td>
211   <td class="mlabels-right">
212 <span class="mlabels"><span class="mlabel">inline</span></span>  </td>
213   </tr>
214 </table>
215 </div><div class="memdoc">
216
217 <p>Definition at line <a class="el" href="_threshold_dataset_8h_source.xhtml#l00103">103</a> of file <a class="el" href="_threshold_dataset_8h_source.xhtml">ThresholdDataset.h</a>.</p>
218
219 <p>Referenced by <a class="el" href="_threshold_dataset_8h_source.xhtml#l00127">MixedThresholdDataset::MixedThresholdDataset()</a>.</p>
220 <div class="fragment"><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;    {</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;        _thresholds.emplace_back(std::move(<a class="code" href="namespacearm__compute_1_1test_1_1validation_1_1reference.xhtml#a6cae310822a46019ba25a00ddb0f7e62">threshold</a>));</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;        _false_values.emplace_back(std::move(false_value));</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;        _true_values.emplace_back(std::move(true_value));</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;        _types.emplace_back(std::move(threshold_type));</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;        _uppers.emplace_back(std::move(upper));</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;    }</div><div class="ttc" id="namespacearm__compute_1_1test_1_1validation_1_1reference_xhtml_a6cae310822a46019ba25a00ddb0f7e62"><div class="ttname"><a href="namespacearm__compute_1_1test_1_1validation_1_1reference.xhtml#a6cae310822a46019ba25a00ddb0f7e62">arm_compute::test::validation::reference::threshold</a></div><div class="ttdeci">SimpleTensor&lt; T &gt; threshold(const SimpleTensor&lt; T &gt; &amp;src, T threshold, T false_value, T true_value, ThresholdType type, T upper)</div><div class="ttdef"><b>Definition:</b> <a href="reference_2_threshold_8cpp_source.xhtml#l00035">Threshold.cpp:35</a></div></div>
221 </div><!-- fragment -->
222 </div>
223 </div>
224 <a class="anchor" id="a2fcbf5359798ec294d009f286fd802e6"></a>
225 <div class="memitem">
226 <div class="memproto">
227 <table class="mlabels">
228   <tr>
229   <td class="mlabels-left">
230       <table class="memname">
231         <tr>
232           <td class="memname"><a class="el" href="structarm__compute_1_1test_1_1datasets_1_1_threshold_dataset_1_1iterator.xhtml">iterator</a> begin </td>
233           <td>(</td>
234           <td class="paramname"></td><td>)</td>
235           <td> const</td>
236         </tr>
237       </table>
238   </td>
239   <td class="mlabels-right">
240 <span class="mlabels"><span class="mlabel">inline</span></span>  </td>
241   </tr>
242 </table>
243 </div><div class="memdoc">
244
245 <p>Definition at line <a class="el" href="_threshold_dataset_8h_source.xhtml#l00093">93</a> of file <a class="el" href="_threshold_dataset_8h_source.xhtml">ThresholdDataset.h</a>.</p>
246
247 <p>References <a class="el" href="_threshold_dataset_8h_source.xhtml#l00044">ThresholdDataset::iterator::iterator()</a>.</p>
248 <div class="fragment"><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;    {</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;        <span class="keywordflow">return</span> iterator(_thresholds.begin(), _false_values.begin(), _true_values.begin(), _types.begin(), _uppers.begin());</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;    }</div></div><!-- fragment -->
249 </div>
250 </div>
251 <a class="anchor" id="ab8e4e3e2a7bf18888b71bdf9dda0770b"></a>
252 <div class="memitem">
253 <div class="memproto">
254 <table class="mlabels">
255   <tr>
256   <td class="mlabels-left">
257       <table class="memname">
258         <tr>
259           <td class="memname">int size </td>
260           <td>(</td>
261           <td class="paramname"></td><td>)</td>
262           <td> const</td>
263         </tr>
264       </table>
265   </td>
266   <td class="mlabels-right">
267 <span class="mlabels"><span class="mlabel">inline</span></span>  </td>
268   </tr>
269 </table>
270 </div><div class="memdoc">
271
272 <p>Definition at line <a class="el" href="_threshold_dataset_8h_source.xhtml#l00098">98</a> of file <a class="el" href="_threshold_dataset_8h_source.xhtml">ThresholdDataset.h</a>.</p>
273
274 <p>References <a class="el" href="tests_2validation_2_fixed_point_8h_source.xhtml#l00884">arm_compute::test::fixed_point_arithmetic::detail::min()</a>.</p>
275 <div class="fragment"><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;    {</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="namespacearm__compute_1_1test_1_1fixed__point__arithmetic_1_1detail.xhtml#aabcf39e3917f842dbc5fbb0d802f24d5">std::min</a>(_thresholds.size(), <a class="code" href="namespacearm__compute_1_1test_1_1fixed__point__arithmetic_1_1detail.xhtml#aabcf39e3917f842dbc5fbb0d802f24d5">std::min</a>(_false_values.size(), <a class="code" href="namespacearm__compute_1_1test_1_1fixed__point__arithmetic_1_1detail.xhtml#aabcf39e3917f842dbc5fbb0d802f24d5">std::min</a>(_true_values.size(), <a class="code" href="namespacearm__compute_1_1test_1_1fixed__point__arithmetic_1_1detail.xhtml#aabcf39e3917f842dbc5fbb0d802f24d5">std::min</a>(_types.size(), _uppers.size()))));</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;    }</div><div class="ttc" id="namespacearm__compute_1_1test_1_1fixed__point__arithmetic_1_1detail_xhtml_aabcf39e3917f842dbc5fbb0d802f24d5"><div class="ttname"><a href="namespacearm__compute_1_1test_1_1fixed__point__arithmetic_1_1detail.xhtml#aabcf39e3917f842dbc5fbb0d802f24d5">arm_compute::test::fixed_point_arithmetic::detail::min</a></div><div class="ttdeci">fixed_point&lt; T &gt; min(fixed_point&lt; T &gt; x, fixed_point&lt; T &gt; y)</div><div class="ttdef"><b>Definition:</b> <a href="tests_2validation_2_fixed_point_8h_source.xhtml#l00884">FixedPoint.h:884</a></div></div>
276 </div><!-- fragment -->
277 </div>
278 </div>
279 <hr/>The documentation for this class was generated from the following file:<ul>
280 <li>tests/datasets/<a class="el" href="_threshold_dataset_8h_source.xhtml">ThresholdDataset.h</a></li>
281 </ul>
282 </div><!-- contents -->
283 </div><!-- doc-content -->
284 <!-- start footer part -->
285 <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
286   <ul>
287     <li class="navelem"><a class="el" href="namespacearm__compute.xhtml">arm_compute</a></li><li class="navelem"><a class="el" href="namespacearm__compute_1_1test.xhtml">test</a></li><li class="navelem"><a class="el" href="namespacearm__compute_1_1test_1_1datasets.xhtml">datasets</a></li><li class="navelem"><a class="el" href="classarm__compute_1_1test_1_1datasets_1_1_threshold_dataset.xhtml">ThresholdDataset</a></li>
288     <li class="footer">Generated on Thu Feb 22 2018 15:45:26 for Compute Library by
289     <a href="http://www.doxygen.org/index.html">
290     <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
291   </ul>
292 </div>
293 </body>
294 </html>