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">
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);
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(); });
27 <script type="text/x-mathjax-config">
29 extensions: ["tex2jax.js"],
30 jax: ["input/TeX","output/HTML-CSS"],
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" />
36 <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
38 <table cellspacing="0" cellpadding="0">
40 <tr style="height: 56px;">
41 <td style="padding-left: 0.5em;">
42 <div id="projectname">Compute Library
43  <span id="projectnumber">18.02</span>
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');
55 <div id="navrow1" class="tabs">
57 <li><a href="index.xhtml"><span>Main Page</span></a></li>
58 <li><a href="pages.xhtml"><span>Related 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 Structures</span></a></li>
61 <li><a href="files.xhtml"><span>Files</span></a></li>
63 <div id="MSearchBox" class="MSearchBoxInactive">
65 <img id="MSearchSelect" src="search/mag_sel.png"
66 onmouseover="return searchBox.OnSearchSelectShow()"
67 onmouseout="return searchBox.OnSearchSelectHide()"
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>
80 <div id="navrow2" class="tabs2">
82 <li><a href="annotated.xhtml"><span>Data Structures</span></a></li>
83 <li><a href="classes.xhtml"><span>Data Structure Index</span></a></li>
84 <li><a href="inherits.xhtml"><span>Class Hierarchy</span></a></li>
85 <li><a href="functions.xhtml"><span>Data Fields</span></a></li>
89 <div id="side-nav" class="ui-resizable side-nav-resizable">
91 <div id="nav-tree-contents">
92 <div id="nav-sync" class="sync"></div>
95 <div id="splitbar" style="-moz-user-select:none;"
96 class="ui-resizable-handle">
99 <script type="text/javascript">
100 $(document).ready(function(){initNavTree('classarm__compute_1_1test_1_1datasets_1_1_threshold_dataset.xhtml','');});
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)">
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">
118 <div class="summary">
119 <a href="#nested-classes">Data Structures</a> |
120 <a href="#pub-types">Public Types</a> |
121 <a href="#pub-methods">Public Member Functions</a> </div>
122 <div class="headertitle">
123 <div class="title">ThresholdDataset Class Reference</div> </div>
125 <div class="contents">
127 <p><code>#include <<a class="el" href="_threshold_dataset_8h_source.xhtml">ThresholdDataset.h</a>></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  </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"> </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 </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< uint8_t, uint8_t, uint8_t, <a class="el" href="namespacearm__compute.xhtml#a3e6b23e675649b83240691abbc42a649">ThresholdType</a>, uint8_t ></td></tr>
137 <tr class="separator:a458c0ac09d41cfb3f0a55a99ef24446c"><td class="memSeparator" colspan="2"> </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> </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"> </td></tr>
143 <tr class="memitem:ab8e4e3e2a7bf18888b71bdf9dda0770b"><td class="memItemLeft" align="right" valign="top">int </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"> </td></tr>
145 <tr class="memitem:afe9cd51e0c7935c92b881f3697d62f86"><td class="memItemLeft" align="right" valign="top">void </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"> </td></tr>
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">
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<uint8_t, uint8_t, uint8_t, <a class="el" href="namespacearm__compute.xhtml#a3e6b23e675649b83240691abbc42a649">ThresholdType</a>, uint8_t></td>
160 </div><div class="memdoc">
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>
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">
172 <td class="mlabels-left">
173 <table class="memname">
175 <td class="memname">void add_config </td>
177 <td class="paramtype">uint8_t </td>
178 <td class="paramname"><em>threshold</em>, </td>
181 <td class="paramkey"></td>
183 <td class="paramtype">uint8_t </td>
184 <td class="paramname"><em>false_value</em>, </td>
187 <td class="paramkey"></td>
189 <td class="paramtype">uint8_t </td>
190 <td class="paramname"><em>true_value</em>, </td>
193 <td class="paramkey"></td>
195 <td class="paramtype"><a class="el" href="namespacearm__compute.xhtml#a3e6b23e675649b83240691abbc42a649">ThresholdType</a> </td>
196 <td class="paramname"><em>threshold_type</em>, </td>
199 <td class="paramkey"></td>
201 <td class="paramtype">uint8_t </td>
202 <td class="paramname"><em>upper</em> </td>
211 <td class="mlabels-right">
212 <span class="mlabels"><span class="mlabel">inline</span></span> </td>
215 </div><div class="memdoc">
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>
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>  {</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  _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>  _false_values.emplace_back(std::move(false_value));</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  _true_values.emplace_back(std::move(true_value));</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  _types.emplace_back(std::move(threshold_type));</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  _uppers.emplace_back(std::move(upper));</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  }</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< T > threshold(const SimpleTensor< T > &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 -->
224 <a class="anchor" id="a2fcbf5359798ec294d009f286fd802e6"></a>
225 <div class="memitem">
226 <div class="memproto">
227 <table class="mlabels">
229 <td class="mlabels-left">
230 <table class="memname">
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>
234 <td class="paramname"></td><td>)</td>
239 <td class="mlabels-right">
240 <span class="mlabels"><span class="mlabel">inline</span></span> </td>
243 </div><div class="memdoc">
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>
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>  {</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  <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>  }</div></div><!-- fragment -->
251 <a class="anchor" id="ab8e4e3e2a7bf18888b71bdf9dda0770b"></a>
252 <div class="memitem">
253 <div class="memproto">
254 <table class="mlabels">
256 <td class="mlabels-left">
257 <table class="memname">
259 <td class="memname">int size </td>
261 <td class="paramname"></td><td>)</td>
266 <td class="mlabels-right">
267 <span class="mlabels"><span class="mlabel">inline</span></span> </td>
270 </div><div class="memdoc">
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>
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>  {</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <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>  }</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< T > min(fixed_point< T > x, fixed_point< T > 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 -->
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>
282 </div><!-- contents -->
283 </div><!-- doc-content -->
284 <!-- start footer part -->
285 <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
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>