-
Notifications
You must be signed in to change notification settings - Fork 0
/
aggregate__min__max_8hpp_source.html
147 lines (145 loc) · 32.4 KB
/
aggregate__min__max_8hpp_source.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<!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>tlx: tlx/math/aggregate_min_max.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="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
$(window).load(resizeHeight);
</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>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["tex2jax.js"],
jax: ["input/TeX","output/HTML-CSS"],
});
</script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
<link href="doxygen.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">tlx
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File List</span></a></li>
<li><a href="globals.html"><span>File Members</span></a></li>
</ul>
</div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('aggregate__min__max_8hpp_source.html','');});
</script>
<div id="doc-content">
<!-- 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 class="header">
<div class="headertitle">
<div class="title">aggregate_min_max.hpp</div> </div>
</div><!--header-->
<div class="contents">
<a href="aggregate__min__max_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> <span class="comment">/*******************************************************************************</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> * tlx/math/aggregate_min_max.hpp</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> *</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> * Part of tlx - http://panthema.net/tlx</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> *</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * Copyright (C) 2015-2019 Timo Bingmann <[email protected]></span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> *</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> * All rights reserved. Published under the Boost Software License, Version 1.0</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> ******************************************************************************/</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> </div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="preprocessor">#ifndef TLX_MATH_AGGREGATE_MIN_MAX_HEADER</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="preprocessor">#define TLX_MATH_AGGREGATE_MIN_MAX_HEADER</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> </div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#include <algorithm></span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor">#include <limits></span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> </div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="keyword">namespace </span><a class="code" href="namespacetlx.html">tlx</a> {</div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"></span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment">//! \addtogroup tlx_math</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment">//! \{</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment"></span><span class="comment"></span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="comment">/*!</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="comment"> * Calculate running aggregate statistics: feed it with values, and it will keep</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="comment"> * the minimum and the maximum values.</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="comment"> */</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="keyword">template</span> <<span class="keyword">typename</span> Type_></div><div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="classtlx_1_1AggregateMinMax.html"> 27</a></span> <span class="keyword">class </span><a class="code" href="classtlx_1_1AggregateMinMax.html">AggregateMinMax</a></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> {</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="classtlx_1_1AggregateMinMax.html#a19fffb7a6788d346a4ab677ce5d61f4c"> 30</a></span>  <span class="keyword">using</span> <a class="code" href="classtlx_1_1AggregateMinMax.html#a19fffb7a6788d346a4ab677ce5d61f4c">Type</a> = Type_;</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="comment"></span></div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="comment"> //! default constructor</span></div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="comment"></span> <a class="code" href="classtlx_1_1AggregateMinMax.html#a37225413ec607e223a55f4d6efede796">AggregateMinMax</a>() = <span class="keywordflow">default</span>;</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="comment"></span></div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="comment"> //! initializing constructor</span></div><div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="classtlx_1_1AggregateMinMax.html#a26117139f36ca8b86de2bfb56d98a8fe"> 36</a></span> <span class="comment"></span> <a class="code" href="classtlx_1_1AggregateMinMax.html#a26117139f36ca8b86de2bfb56d98a8fe">AggregateMinMax</a>(<span class="keyword">const</span> <a class="code" href="classtlx_1_1AggregateMinMax.html#a19fffb7a6788d346a4ab677ce5d61f4c">Type</a>& <a class="code" href="classtlx_1_1AggregateMinMax.html#a0071e11be9448367a55dcffcfba4fbd9">min</a>, <span class="keyword">const</span> <a class="code" href="classtlx_1_1AggregateMinMax.html#a19fffb7a6788d346a4ab677ce5d61f4c">Type</a>& <a class="code" href="classtlx_1_1AggregateMinMax.html#a267616cde1f6ebe717b975f090d0257e">max</a>) noexcept</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  : <a class="code" href="classtlx_1_1AggregateMinMax.html#a9b6c971971d60d5363382c1246d3d7ca">min_</a>(<a class="code" href="classtlx_1_1AggregateMinMax.html#a0071e11be9448367a55dcffcfba4fbd9">min</a>), <a class="code" href="classtlx_1_1AggregateMinMax.html#aaf9bdab94087c129e5821251a47c4f2b">max_</a>(<a class="code" href="classtlx_1_1AggregateMinMax.html#a267616cde1f6ebe717b975f090d0257e">max</a>) { }</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="comment"></span></div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="comment"> //! add a value to the running aggregation</span></div><div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="classtlx_1_1AggregateMinMax.html#a2c454d1bfdfce1a187aa23f5b8322a05"> 40</a></span> <span class="comment"></span> <a class="code" href="classtlx_1_1AggregateMinMax.html">AggregateMinMax</a>& <a class="code" href="classtlx_1_1AggregateMinMax.html#a2c454d1bfdfce1a187aa23f5b8322a05">add</a>(<span class="keyword">const</span> <a class="code" href="classtlx_1_1AggregateMinMax.html#a19fffb7a6788d346a4ab677ce5d61f4c">Type</a>& value) noexcept {</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <a class="code" href="classtlx_1_1AggregateMinMax.html#a9b6c971971d60d5363382c1246d3d7ca">min_</a> = <a class="code" href="namespacetlx_1_1digest__detail.html#ac3302bda529d9a02c073a8fc4fe57030">std::min</a>(<a class="code" href="classtlx_1_1AggregateMinMax.html#a9b6c971971d60d5363382c1246d3d7ca">min_</a>, value);</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  <a class="code" href="classtlx_1_1AggregateMinMax.html#aaf9bdab94087c129e5821251a47c4f2b">max_</a> = std::max(<a class="code" href="classtlx_1_1AggregateMinMax.html#aaf9bdab94087c129e5821251a47c4f2b">max_</a>, value);</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  }</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span> <span class="comment"></span></div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="comment"> //! return minimum over all values aggregated</span></div><div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="classtlx_1_1AggregateMinMax.html#a0071e11be9448367a55dcffcfba4fbd9"> 47</a></span> <span class="comment"></span> <span class="keyword">const</span> <a class="code" href="classtlx_1_1AggregateMinMax.html#a19fffb7a6788d346a4ab677ce5d61f4c">Type</a>& <a class="code" href="classtlx_1_1AggregateMinMax.html#a0071e11be9448367a55dcffcfba4fbd9">min</a>() const noexcept { <span class="keywordflow">return</span> <a class="code" href="classtlx_1_1AggregateMinMax.html#a9b6c971971d60d5363382c1246d3d7ca">min_</a>; }</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span> <span class="comment"></span></div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span> <span class="comment"> //! return maximum over all values aggregated</span></div><div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="classtlx_1_1AggregateMinMax.html#a267616cde1f6ebe717b975f090d0257e"> 50</a></span> <span class="comment"></span> <span class="keyword">const</span> <a class="code" href="classtlx_1_1AggregateMinMax.html#a19fffb7a6788d346a4ab677ce5d61f4c">Type</a>& <a class="code" href="classtlx_1_1AggregateMinMax.html#a267616cde1f6ebe717b975f090d0257e">max</a>() const noexcept { <span class="keywordflow">return</span> <a class="code" href="classtlx_1_1AggregateMinMax.html#aaf9bdab94087c129e5821251a47c4f2b">max_</a>; }</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span> <span class="comment"></span></div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span> <span class="comment"> //! return maximum - minimum over all values aggregated</span></div><div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="classtlx_1_1AggregateMinMax.html#a551b2f42da5c0e97d1446d92656e413b"> 53</a></span> <span class="comment"></span> <a class="code" href="classtlx_1_1AggregateMinMax.html#a19fffb7a6788d346a4ab677ce5d61f4c">Type</a> <a class="code" href="classtlx_1_1AggregateMinMax.html#a551b2f42da5c0e97d1446d92656e413b">span</a>() const noexcept { <span class="keywordflow">return</span> <a class="code" href="classtlx_1_1AggregateMinMax.html#aaf9bdab94087c129e5821251a47c4f2b">max_</a> - <a class="code" href="classtlx_1_1AggregateMinMax.html#a9b6c971971d60d5363382c1246d3d7ca">min_</a>; }</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span> <span class="comment"></span></div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span> <span class="comment"> //! change currently aggregated minimum</span></div><div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="classtlx_1_1AggregateMinMax.html#ad91e636fdcc5623133670a1ab66641e7"> 56</a></span> <span class="comment"></span> <span class="keywordtype">void</span> <a class="code" href="classtlx_1_1AggregateMinMax.html#ad91e636fdcc5623133670a1ab66641e7">set_min</a>(<span class="keyword">const</span> <a class="code" href="classtlx_1_1AggregateMinMax.html#a19fffb7a6788d346a4ab677ce5d61f4c">Type</a>& v) noexcept { <a class="code" href="classtlx_1_1AggregateMinMax.html#a9b6c971971d60d5363382c1246d3d7ca">min_</a> = v; }</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span> <span class="comment"></span></div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span> <span class="comment"> //! change currently aggregated minimum</span></div><div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="classtlx_1_1AggregateMinMax.html#ad63ebbb660737d700aa2f62ccda31197"> 59</a></span> <span class="comment"></span> <span class="keywordtype">void</span> <a class="code" href="classtlx_1_1AggregateMinMax.html#ad63ebbb660737d700aa2f62ccda31197">set_max</a>(<span class="keyword">const</span> <a class="code" href="classtlx_1_1AggregateMinMax.html#a19fffb7a6788d346a4ab677ce5d61f4c">Type</a>& v) noexcept { <a class="code" href="classtlx_1_1AggregateMinMax.html#aaf9bdab94087c129e5821251a47c4f2b">max_</a> = v; }</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span> <span class="comment"></span></div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span> <span class="comment"> //! operator + to combine two AggregateMinMax<></span></div><div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="classtlx_1_1AggregateMinMax.html#a0c6d1cae669ea777de84180d8489113d"> 62</a></span> <span class="comment"></span> <a class="code" href="classtlx_1_1AggregateMinMax.html">AggregateMinMax</a> <a class="code" href="classtlx_1_1AggregateMinMax.html#a0c6d1cae669ea777de84180d8489113d">operator + </a>(<span class="keyword">const</span> <a class="code" href="classtlx_1_1AggregateMinMax.html">AggregateMinMax</a>& a) <span class="keyword">const</span> noexcept {</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <span class="keywordflow">return</span> <a class="code" href="classtlx_1_1AggregateMinMax.html#a37225413ec607e223a55f4d6efede796">AggregateMinMax</a>(</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <span class="comment">// min, max</span></div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <a class="code" href="namespacetlx_1_1digest__detail.html#ac3302bda529d9a02c073a8fc4fe57030">std::min</a>(<a class="code" href="classtlx_1_1AggregateMinMax.html#a9b6c971971d60d5363382c1246d3d7ca">min_</a>, a.min_), std::max(<a class="code" href="classtlx_1_1AggregateMinMax.html#aaf9bdab94087c129e5821251a47c4f2b">max_</a>, a.max_));</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  }</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span> <span class="comment"></span></div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span> <span class="comment"> //! operator += to combine two AggregateMinMax<></span></div><div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="classtlx_1_1AggregateMinMax.html#ada383efa01b23c275ef655f5236e0491"> 69</a></span> <span class="comment"></span> <a class="code" href="classtlx_1_1AggregateMinMax.html">AggregateMinMax</a>& <a class="code" href="classtlx_1_1AggregateMinMax.html#ada383efa01b23c275ef655f5236e0491">operator += </a>(<span class="keyword">const</span> <a class="code" href="classtlx_1_1AggregateMinMax.html">AggregateMinMax</a>& a) noexcept {</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <a class="code" href="classtlx_1_1AggregateMinMax.html#a9b6c971971d60d5363382c1246d3d7ca">min_</a> = <a class="code" href="namespacetlx_1_1digest__detail.html#ac3302bda529d9a02c073a8fc4fe57030">std::min</a>(<a class="code" href="classtlx_1_1AggregateMinMax.html#a9b6c971971d60d5363382c1246d3d7ca">min_</a>, a.min_);</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <a class="code" href="classtlx_1_1AggregateMinMax.html#aaf9bdab94087c129e5821251a47c4f2b">max_</a> = std::max(<a class="code" href="classtlx_1_1AggregateMinMax.html#aaf9bdab94087c129e5821251a47c4f2b">max_</a>, a.max_);</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  }</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span> <span class="comment"></span></div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span> <span class="comment"> //! serialization method for cereal.</span></div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span> <span class="comment"></span> <span class="keyword">template</span> <<span class="keyword">typename</span> Archive></div><div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="classtlx_1_1AggregateMinMax.html#a471354d71ba97866fe5dabb75f1a016b"> 77</a></span>  <span class="keywordtype">void</span> <a class="code" href="classtlx_1_1AggregateMinMax.html#a471354d71ba97866fe5dabb75f1a016b">serialize</a>(Archive& archive) {</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  archive(<a class="code" href="classtlx_1_1AggregateMinMax.html#a9b6c971971d60d5363382c1246d3d7ca">min_</a>, <a class="code" href="classtlx_1_1AggregateMinMax.html#aaf9bdab94087c129e5821251a47c4f2b">max_</a>);</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  }</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span> </div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span> <span class="keyword">private</span>:<span class="comment"></span></div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span> <span class="comment"> //! minimum value</span></div><div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="classtlx_1_1AggregateMinMax.html#a9b6c971971d60d5363382c1246d3d7ca"> 83</a></span> <span class="comment"></span> <a class="code" href="classtlx_1_1AggregateMinMax.html#a19fffb7a6788d346a4ab677ce5d61f4c">Type</a> <a class="code" href="classtlx_1_1AggregateMinMax.html#a9b6c971971d60d5363382c1246d3d7ca">min_</a> = std::numeric_limits<Type>::max();</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span> <span class="comment"></span></div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span> <span class="comment"> //! maximum value</span></div><div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="classtlx_1_1AggregateMinMax.html#aaf9bdab94087c129e5821251a47c4f2b"> 86</a></span> <span class="comment"></span> <a class="code" href="classtlx_1_1AggregateMinMax.html#a19fffb7a6788d346a4ab677ce5d61f4c">Type</a> <a class="code" href="classtlx_1_1AggregateMinMax.html#aaf9bdab94087c129e5821251a47c4f2b">max_</a> = std::numeric_limits<Type>::lowest();</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span> };</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span> <span class="comment"></span></div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span> <span class="comment">//! \}</span></div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span> <span class="comment"></span></div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span> } <span class="comment">// namespace tlx</span></div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span> </div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span> <span class="preprocessor">#endif // !TLX_MATH_AGGREGATE_MIN_MAX_HEADER</span></div><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="comment">/******************************************************************************/</span></div><div class="ttc" id="classtlx_1_1AggregateMinMax_html_a471354d71ba97866fe5dabb75f1a016b"><div class="ttname"><a href="classtlx_1_1AggregateMinMax.html#a471354d71ba97866fe5dabb75f1a016b">tlx::AggregateMinMax::serialize</a></div><div class="ttdeci">void serialize(Archive &archive)</div><div class="ttdoc">serialization method for cereal. </div><div class="ttdef"><b>Definition:</b> <a href="aggregate__min__max_8hpp_source.html#l00077">aggregate_min_max.hpp:77</a></div></div>
<div class="ttc" id="classtlx_1_1AggregateMinMax_html_a9b6c971971d60d5363382c1246d3d7ca"><div class="ttname"><a href="classtlx_1_1AggregateMinMax.html#a9b6c971971d60d5363382c1246d3d7ca">tlx::AggregateMinMax::min_</a></div><div class="ttdeci">Type min_</div><div class="ttdoc">minimum value </div><div class="ttdef"><b>Definition:</b> <a href="aggregate__min__max_8hpp_source.html#l00083">aggregate_min_max.hpp:83</a></div></div>
<div class="ttc" id="classtlx_1_1AggregateMinMax_html_a267616cde1f6ebe717b975f090d0257e"><div class="ttname"><a href="classtlx_1_1AggregateMinMax.html#a267616cde1f6ebe717b975f090d0257e">tlx::AggregateMinMax::max</a></div><div class="ttdeci">const Type & max() const noexcept</div><div class="ttdoc">return maximum over all values aggregated </div><div class="ttdef"><b>Definition:</b> <a href="aggregate__min__max_8hpp_source.html#l00050">aggregate_min_max.hpp:50</a></div></div>
<div class="ttc" id="classtlx_1_1AggregateMinMax_html_a0071e11be9448367a55dcffcfba4fbd9"><div class="ttname"><a href="classtlx_1_1AggregateMinMax.html#a0071e11be9448367a55dcffcfba4fbd9">tlx::AggregateMinMax::min</a></div><div class="ttdeci">const Type & min() const noexcept</div><div class="ttdoc">return minimum over all values aggregated </div><div class="ttdef"><b>Definition:</b> <a href="aggregate__min__max_8hpp_source.html#l00047">aggregate_min_max.hpp:47</a></div></div>
<div class="ttc" id="classtlx_1_1AggregateMinMax_html_aaf9bdab94087c129e5821251a47c4f2b"><div class="ttname"><a href="classtlx_1_1AggregateMinMax.html#aaf9bdab94087c129e5821251a47c4f2b">tlx::AggregateMinMax::max_</a></div><div class="ttdeci">Type max_</div><div class="ttdoc">maximum value </div><div class="ttdef"><b>Definition:</b> <a href="aggregate__min__max_8hpp_source.html#l00086">aggregate_min_max.hpp:86</a></div></div>
<div class="ttc" id="namespacetlx_html"><div class="ttname"><a href="namespacetlx.html">tlx</a></div><div class="ttdef"><b>Definition:</b> <a href="exclusive__scan_8hpp_source.html#l00017">exclusive_scan.hpp:17</a></div></div>
<div class="ttc" id="classtlx_1_1AggregateMinMax_html_a551b2f42da5c0e97d1446d92656e413b"><div class="ttname"><a href="classtlx_1_1AggregateMinMax.html#a551b2f42da5c0e97d1446d92656e413b">tlx::AggregateMinMax::span</a></div><div class="ttdeci">Type span() const noexcept</div><div class="ttdoc">return maximum - minimum over all values aggregated </div><div class="ttdef"><b>Definition:</b> <a href="aggregate__min__max_8hpp_source.html#l00053">aggregate_min_max.hpp:53</a></div></div>
<div class="ttc" id="classtlx_1_1AggregateMinMax_html_a0c6d1cae669ea777de84180d8489113d"><div class="ttname"><a href="classtlx_1_1AggregateMinMax.html#a0c6d1cae669ea777de84180d8489113d">tlx::AggregateMinMax::operator+</a></div><div class="ttdeci">AggregateMinMax operator+(const AggregateMinMax &a) const noexcept</div><div class="ttdoc">operator + to combine two AggregateMinMax<> </div><div class="ttdef"><b>Definition:</b> <a href="aggregate__min__max_8hpp_source.html#l00062">aggregate_min_max.hpp:62</a></div></div>
<div class="ttc" id="classtlx_1_1AggregateMinMax_html_a37225413ec607e223a55f4d6efede796"><div class="ttname"><a href="classtlx_1_1AggregateMinMax.html#a37225413ec607e223a55f4d6efede796">tlx::AggregateMinMax::AggregateMinMax</a></div><div class="ttdeci">AggregateMinMax()=default</div><div class="ttdoc">default constructor </div></div>
<div class="ttc" id="namespacetlx_1_1digest__detail_html_ac3302bda529d9a02c073a8fc4fe57030"><div class="ttname"><a href="namespacetlx_1_1digest__detail.html#ac3302bda529d9a02c073a8fc4fe57030">tlx::digest_detail::min</a></div><div class="ttdeci">static uint32_t min(uint32_t x, uint32_t y)</div><div class="ttdef"><b>Definition:</b> <a href="md5_8cpp_source.html#l00032">md5.cpp:32</a></div></div>
<div class="ttc" id="classtlx_1_1AggregateMinMax_html_a26117139f36ca8b86de2bfb56d98a8fe"><div class="ttname"><a href="classtlx_1_1AggregateMinMax.html#a26117139f36ca8b86de2bfb56d98a8fe">tlx::AggregateMinMax::AggregateMinMax</a></div><div class="ttdeci">AggregateMinMax(const Type &min, const Type &max) noexcept</div><div class="ttdoc">initializing constructor </div><div class="ttdef"><b>Definition:</b> <a href="aggregate__min__max_8hpp_source.html#l00036">aggregate_min_max.hpp:36</a></div></div>
<div class="ttc" id="classtlx_1_1AggregateMinMax_html_a19fffb7a6788d346a4ab677ce5d61f4c"><div class="ttname"><a href="classtlx_1_1AggregateMinMax.html#a19fffb7a6788d346a4ab677ce5d61f4c">tlx::AggregateMinMax::Type</a></div><div class="ttdeci">Type_ Type</div><div class="ttdef"><b>Definition:</b> <a href="aggregate__min__max_8hpp_source.html#l00030">aggregate_min_max.hpp:30</a></div></div>
<div class="ttc" id="classtlx_1_1AggregateMinMax_html_ad91e636fdcc5623133670a1ab66641e7"><div class="ttname"><a href="classtlx_1_1AggregateMinMax.html#ad91e636fdcc5623133670a1ab66641e7">tlx::AggregateMinMax::set_min</a></div><div class="ttdeci">void set_min(const Type &v) noexcept</div><div class="ttdoc">change currently aggregated minimum </div><div class="ttdef"><b>Definition:</b> <a href="aggregate__min__max_8hpp_source.html#l00056">aggregate_min_max.hpp:56</a></div></div>
<div class="ttc" id="classtlx_1_1AggregateMinMax_html_ad63ebbb660737d700aa2f62ccda31197"><div class="ttname"><a href="classtlx_1_1AggregateMinMax.html#ad63ebbb660737d700aa2f62ccda31197">tlx::AggregateMinMax::set_max</a></div><div class="ttdeci">void set_max(const Type &v) noexcept</div><div class="ttdoc">change currently aggregated minimum </div><div class="ttdef"><b>Definition:</b> <a href="aggregate__min__max_8hpp_source.html#l00059">aggregate_min_max.hpp:59</a></div></div>
<div class="ttc" id="classtlx_1_1AggregateMinMax_html_ada383efa01b23c275ef655f5236e0491"><div class="ttname"><a href="classtlx_1_1AggregateMinMax.html#ada383efa01b23c275ef655f5236e0491">tlx::AggregateMinMax::operator+=</a></div><div class="ttdeci">AggregateMinMax & operator+=(const AggregateMinMax &a) noexcept</div><div class="ttdoc">operator += to combine two AggregateMinMax<> </div><div class="ttdef"><b>Definition:</b> <a href="aggregate__min__max_8hpp_source.html#l00069">aggregate_min_max.hpp:69</a></div></div>
<div class="ttc" id="classtlx_1_1AggregateMinMax_html"><div class="ttname"><a href="classtlx_1_1AggregateMinMax.html">tlx::AggregateMinMax</a></div><div class="ttdoc">Calculate running aggregate statistics: feed it with values, and it will keep the minimum and the max...</div><div class="ttdef"><b>Definition:</b> <a href="aggregate__min__max_8hpp_source.html#l00027">aggregate_min_max.hpp:27</a></div></div>
<div class="ttc" id="classtlx_1_1AggregateMinMax_html_a2c454d1bfdfce1a187aa23f5b8322a05"><div class="ttname"><a href="classtlx_1_1AggregateMinMax.html#a2c454d1bfdfce1a187aa23f5b8322a05">tlx::AggregateMinMax::add</a></div><div class="ttdeci">AggregateMinMax & add(const Type &value) noexcept</div><div class="ttdoc">add a value to the running aggregation </div><div class="ttdef"><b>Definition:</b> <a href="aggregate__min__max_8hpp_source.html#l00040">aggregate_min_max.hpp:40</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_8b4d4685f7eaf29e53aad23645930303.html">tlx</a></li><li class="navelem"><a class="el" href="dir_e09772e06e87bbb5d2c69a5ed712ca42.html">math</a></li><li class="navelem"><a class="el" href="aggregate__min__max_8hpp.html">aggregate_min_max.hpp</a></li>
<li class="footer">Generated on Sat Oct 2 2021 20:29:00 for tlx by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
</ul>
</div>
</body>
</html>