-
Notifications
You must be signed in to change notification settings - Fork 0
/
Histogram_8h_source.html
149 lines (147 loc) · 19.6 KB
/
Histogram_8h_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
148
149
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>CPM: Histogram.h 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>
<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">CPM
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- 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">Histogram.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="Histogram_8h.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="preprocessor">#ifndef HISTOGRAM_H</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="preprocessor">#define HISTOGRAM_H</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>  </div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="preprocessor">#include <QPointF></span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="preprocessor">#include <QVector></span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>  </div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>  </div>
<div class="line"><a name="l00008"></a><span class="lineno"><a class="line" href="classHistogram.html"> 8</a></span> <span class="keyword">class </span><a class="code" href="classHistogram.html">Histogram</a></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> {</div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="keyword">public</span>:</div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>  <a class="code" href="classHistogram.html#af681f293852ac145f867ecfcce3062a5">Histogram</a>();</div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>  <a class="code" href="classHistogram.html#af681f293852ac145f867ecfcce3062a5">Histogram</a>(qreal aXmin, qreal aXmax, <span class="keywordtype">int</span> nBins);</div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>  <a class="code" href="classHistogram.html#aaf22daf3b8e3f0578337109005532f51">~Histogram</a>();</div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>  </div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>  <span class="keywordtype">void</span> <a class="code" href="classHistogram.html#a42ce9043f91904cc1997c02a05481769">Fill</a>(qreal value);</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>  qreal <a class="code" href="classHistogram.html#a6529d27409b0b87da41653c42df790d4">GetBinWidth</a>();</div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>  qreal <a class="code" href="classHistogram.html#aaa0b8d77f8c760ad6a4cf67719e3d6f8">GetBinCenter</a>(<span class="keywordtype">int</span> iBin);</div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  qreal <a class="code" href="classHistogram.html#a9f4087047f3214e15009c119af0bc259">GetBinContent</a>(<span class="keywordtype">int</span> iBin);</div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  </div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  <span class="keywordtype">void</span> <a class="code" href="classHistogram.html#a2a1f370b9d8dddbc0205e7d181ada16e">Smooth</a>(<span class="keywordtype">int</span> windowSize=10);</div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  <span class="keywordtype">void</span> <a class="code" href="classHistogram.html#a2a1f370b9d8dddbc0205e7d181ada16e">Smooth</a>(<span class="keywordtype">int</span> windowSize, <span class="keywordtype">int</span> times);</div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  </div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  <span class="keywordtype">void</span> <a class="code" href="classHistogram.html#a92a5f3ebdb2c2ff6e91e4273facb2f0f">SetCutValue</a>(qreal value);</div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  </div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  <span class="keywordtype">void</span> <a class="code" href="classHistogram.html#a1ed08724ec01eeaa4aaefda028ebf01d">Add</a>(<a class="code" href="classHistogram.html">Histogram</a>* aHist);</div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  </div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  QPointF <a class="code" href="classHistogram.html#a56632cefb356109b25a0ed8ada5724ce">GetPeak</a>();</div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  qreal <a class="code" href="classHistogram.html#a84f7d8e5fa89814ec2524e72781fdc5b">GetResolution</a>();</div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  qreal <a class="code" href="classHistogram.html#afdcf3ed9f291570605561f996435f7cb">GetLeftValue</a>();</div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  qreal <a class="code" href="classHistogram.html#adc6850aea09b245c76767dc6c6e30027">GetRightValue</a>();</div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  </div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  <span class="keywordtype">void</span> <a class="code" href="classHistogram.html#aa9b6b2cf6f4d9f0778fa3fce12fd557b">Clear</a>();</div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  </div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  </div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="keyword">private</span>:</div>
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="classHistogram.html#afa4704302db8a7ff6b91c5c8a5bf2b56"> 37</a></span>  <span class="keywordtype">int</span> <a class="code" href="classHistogram.html#afa4704302db8a7ff6b91c5c8a5bf2b56">m_nBins</a>;</div>
<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="classHistogram.html#a4c3cf1aab2fff21af40063e2d1b9327b"> 38</a></span>  qreal <a class="code" href="classHistogram.html#a4c3cf1aab2fff21af40063e2d1b9327b">m_xmin</a>;</div>
<div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="classHistogram.html#a9cc9a8c39b6b38713646f1f8129277f3"> 39</a></span>  qreal <a class="code" href="classHistogram.html#a9cc9a8c39b6b38713646f1f8129277f3">m_xmax</a>;</div>
<div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="classHistogram.html#a0cd493e25a8f58f41c1a6b8b51a9b17a"> 40</a></span>  qreal <a class="code" href="classHistogram.html#a0cd493e25a8f58f41c1a6b8b51a9b17a">m_binWidth</a>;</div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  </div>
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="classHistogram.html#a2ce972913367c3d01545a04a198d55c8"> 42</a></span>  QVector<qreal> <a class="code" href="classHistogram.html#a2ce972913367c3d01545a04a198d55c8">m_binCenters</a>;</div>
<div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="classHistogram.html#a8b212c0031ae2b079173c22a00d175df"> 43</a></span>  QVector<qreal> <a class="code" href="classHistogram.html#a8b212c0031ae2b079173c22a00d175df">m_binContents</a>;</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  </div>
<div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="classHistogram.html#a568a78f02c7fdd2bc8d60b565e096e62"> 45</a></span>  qreal <a class="code" href="classHistogram.html#a568a78f02c7fdd2bc8d60b565e096e62">m_cutValue</a>;</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  </div>
<div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="classHistogram.html#a12530c0a164e04898814dee4319e9b0f"> 47</a></span>  qreal <a class="code" href="classHistogram.html#a12530c0a164e04898814dee4319e9b0f">m_leftValue</a>;</div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="classHistogram.html#a3a23808691e942ee6bec8d7dedd0d123"> 48</a></span>  qreal <a class="code" href="classHistogram.html#a3a23808691e942ee6bec8d7dedd0d123">m_rightValue</a>;</div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span> };</div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  </div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span> <span class="preprocessor">#endif </span><span class="comment">// HISTOGRAM_H</span></div>
<div class="ttc" id="aclassHistogram_html"><div class="ttname"><a href="classHistogram.html">Histogram</a></div><div class="ttdef"><b>Definition:</b> <a href="Histogram_8h_source.html#l00008">Histogram.h:9</a></div></div>
<div class="ttc" id="aclassHistogram_html_a0cd493e25a8f58f41c1a6b8b51a9b17a"><div class="ttname"><a href="classHistogram.html#a0cd493e25a8f58f41c1a6b8b51a9b17a">Histogram::m_binWidth</a></div><div class="ttdeci">qreal m_binWidth</div><div class="ttdef"><b>Definition:</b> <a href="Histogram_8h_source.html#l00040">Histogram.h:40</a></div></div>
<div class="ttc" id="aclassHistogram_html_a12530c0a164e04898814dee4319e9b0f"><div class="ttname"><a href="classHistogram.html#a12530c0a164e04898814dee4319e9b0f">Histogram::m_leftValue</a></div><div class="ttdeci">qreal m_leftValue</div><div class="ttdef"><b>Definition:</b> <a href="Histogram_8h_source.html#l00047">Histogram.h:47</a></div></div>
<div class="ttc" id="aclassHistogram_html_a1ed08724ec01eeaa4aaefda028ebf01d"><div class="ttname"><a href="classHistogram.html#a1ed08724ec01eeaa4aaefda028ebf01d">Histogram::Add</a></div><div class="ttdeci">void Add(Histogram *aHist)</div><div class="ttdef"><b>Definition:</b> <a href="Histogram_8cpp_source.html#l00101">Histogram.cpp:101</a></div></div>
<div class="ttc" id="aclassHistogram_html_a2a1f370b9d8dddbc0205e7d181ada16e"><div class="ttname"><a href="classHistogram.html#a2a1f370b9d8dddbc0205e7d181ada16e">Histogram::Smooth</a></div><div class="ttdeci">void Smooth(int windowSize=10)</div><div class="ttdef"><b>Definition:</b> <a href="Histogram_8cpp_source.html#l00065">Histogram.cpp:65</a></div></div>
<div class="ttc" id="aclassHistogram_html_a2ce972913367c3d01545a04a198d55c8"><div class="ttname"><a href="classHistogram.html#a2ce972913367c3d01545a04a198d55c8">Histogram::m_binCenters</a></div><div class="ttdeci">QVector< qreal > m_binCenters</div><div class="ttdef"><b>Definition:</b> <a href="Histogram_8h_source.html#l00042">Histogram.h:42</a></div></div>
<div class="ttc" id="aclassHistogram_html_a3a23808691e942ee6bec8d7dedd0d123"><div class="ttname"><a href="classHistogram.html#a3a23808691e942ee6bec8d7dedd0d123">Histogram::m_rightValue</a></div><div class="ttdeci">qreal m_rightValue</div><div class="ttdef"><b>Definition:</b> <a href="Histogram_8h_source.html#l00048">Histogram.h:48</a></div></div>
<div class="ttc" id="aclassHistogram_html_a42ce9043f91904cc1997c02a05481769"><div class="ttname"><a href="classHistogram.html#a42ce9043f91904cc1997c02a05481769">Histogram::Fill</a></div><div class="ttdeci">void Fill(qreal value)</div><div class="ttdef"><b>Definition:</b> <a href="Histogram_8cpp_source.html#l00036">Histogram.cpp:36</a></div></div>
<div class="ttc" id="aclassHistogram_html_a4c3cf1aab2fff21af40063e2d1b9327b"><div class="ttname"><a href="classHistogram.html#a4c3cf1aab2fff21af40063e2d1b9327b">Histogram::m_xmin</a></div><div class="ttdeci">qreal m_xmin</div><div class="ttdef"><b>Definition:</b> <a href="Histogram_8h_source.html#l00038">Histogram.h:38</a></div></div>
<div class="ttc" id="aclassHistogram_html_a56632cefb356109b25a0ed8ada5724ce"><div class="ttname"><a href="classHistogram.html#a56632cefb356109b25a0ed8ada5724ce">Histogram::GetPeak</a></div><div class="ttdeci">QPointF GetPeak()</div><div class="ttdef"><b>Definition:</b> <a href="Histogram_8cpp_source.html#l00110">Histogram.cpp:110</a></div></div>
<div class="ttc" id="aclassHistogram_html_a568a78f02c7fdd2bc8d60b565e096e62"><div class="ttname"><a href="classHistogram.html#a568a78f02c7fdd2bc8d60b565e096e62">Histogram::m_cutValue</a></div><div class="ttdeci">qreal m_cutValue</div><div class="ttdef"><b>Definition:</b> <a href="Histogram_8h_source.html#l00045">Histogram.h:45</a></div></div>
<div class="ttc" id="aclassHistogram_html_a6529d27409b0b87da41653c42df790d4"><div class="ttname"><a href="classHistogram.html#a6529d27409b0b87da41653c42df790d4">Histogram::GetBinWidth</a></div><div class="ttdeci">qreal GetBinWidth()</div><div class="ttdef"><b>Definition:</b> <a href="Histogram_8cpp_source.html#l00047">Histogram.cpp:47</a></div></div>
<div class="ttc" id="aclassHistogram_html_a84f7d8e5fa89814ec2524e72781fdc5b"><div class="ttname"><a href="classHistogram.html#a84f7d8e5fa89814ec2524e72781fdc5b">Histogram::GetResolution</a></div><div class="ttdeci">qreal GetResolution()</div><div class="ttdef"><b>Definition:</b> <a href="Histogram_8cpp_source.html#l00121">Histogram.cpp:121</a></div></div>
<div class="ttc" id="aclassHistogram_html_a8b212c0031ae2b079173c22a00d175df"><div class="ttname"><a href="classHistogram.html#a8b212c0031ae2b079173c22a00d175df">Histogram::m_binContents</a></div><div class="ttdeci">QVector< qreal > m_binContents</div><div class="ttdef"><b>Definition:</b> <a href="Histogram_8h_source.html#l00043">Histogram.h:43</a></div></div>
<div class="ttc" id="aclassHistogram_html_a92a5f3ebdb2c2ff6e91e4273facb2f0f"><div class="ttname"><a href="classHistogram.html#a92a5f3ebdb2c2ff6e91e4273facb2f0f">Histogram::SetCutValue</a></div><div class="ttdeci">void SetCutValue(qreal value)</div><div class="ttdef"><b>Definition:</b> <a href="Histogram_8cpp_source.html#l00095">Histogram.cpp:95</a></div></div>
<div class="ttc" id="aclassHistogram_html_a9cc9a8c39b6b38713646f1f8129277f3"><div class="ttname"><a href="classHistogram.html#a9cc9a8c39b6b38713646f1f8129277f3">Histogram::m_xmax</a></div><div class="ttdeci">qreal m_xmax</div><div class="ttdef"><b>Definition:</b> <a href="Histogram_8h_source.html#l00039">Histogram.h:39</a></div></div>
<div class="ttc" id="aclassHistogram_html_a9f4087047f3214e15009c119af0bc259"><div class="ttname"><a href="classHistogram.html#a9f4087047f3214e15009c119af0bc259">Histogram::GetBinContent</a></div><div class="ttdeci">qreal GetBinContent(int iBin)</div><div class="ttdef"><b>Definition:</b> <a href="Histogram_8cpp_source.html#l00059">Histogram.cpp:59</a></div></div>
<div class="ttc" id="aclassHistogram_html_aa9b6b2cf6f4d9f0778fa3fce12fd557b"><div class="ttname"><a href="classHistogram.html#aa9b6b2cf6f4d9f0778fa3fce12fd557b">Histogram::Clear</a></div><div class="ttdeci">void Clear()</div><div class="ttdef"><b>Definition:</b> <a href="Histogram_8cpp_source.html#l00169">Histogram.cpp:169</a></div></div>
<div class="ttc" id="aclassHistogram_html_aaa0b8d77f8c760ad6a4cf67719e3d6f8"><div class="ttname"><a href="classHistogram.html#aaa0b8d77f8c760ad6a4cf67719e3d6f8">Histogram::GetBinCenter</a></div><div class="ttdeci">qreal GetBinCenter(int iBin)</div><div class="ttdef"><b>Definition:</b> <a href="Histogram_8cpp_source.html#l00053">Histogram.cpp:53</a></div></div>
<div class="ttc" id="aclassHistogram_html_aaf22daf3b8e3f0578337109005532f51"><div class="ttname"><a href="classHistogram.html#aaf22daf3b8e3f0578337109005532f51">Histogram::~Histogram</a></div><div class="ttdeci">~Histogram()</div><div class="ttdef"><b>Definition:</b> <a href="Histogram_8cpp_source.html#l00033">Histogram.cpp:33</a></div></div>
<div class="ttc" id="aclassHistogram_html_adc6850aea09b245c76767dc6c6e30027"><div class="ttname"><a href="classHistogram.html#adc6850aea09b245c76767dc6c6e30027">Histogram::GetRightValue</a></div><div class="ttdeci">qreal GetRightValue()</div><div class="ttdef"><b>Definition:</b> <a href="Histogram_8cpp_source.html#l00163">Histogram.cpp:163</a></div></div>
<div class="ttc" id="aclassHistogram_html_af681f293852ac145f867ecfcce3062a5"><div class="ttname"><a href="classHistogram.html#af681f293852ac145f867ecfcce3062a5">Histogram::Histogram</a></div><div class="ttdeci">Histogram()</div><div class="ttdef"><b>Definition:</b> <a href="Histogram_8cpp_source.html#l00009">Histogram.cpp:9</a></div></div>
<div class="ttc" id="aclassHistogram_html_afa4704302db8a7ff6b91c5c8a5bf2b56"><div class="ttname"><a href="classHistogram.html#afa4704302db8a7ff6b91c5c8a5bf2b56">Histogram::m_nBins</a></div><div class="ttdeci">int m_nBins</div><div class="ttdef"><b>Definition:</b> <a href="Histogram_8h_source.html#l00037">Histogram.h:37</a></div></div>
<div class="ttc" id="aclassHistogram_html_afdcf3ed9f291570605561f996435f7cb"><div class="ttname"><a href="classHistogram.html#afdcf3ed9f291570605561f996435f7cb">Histogram::GetLeftValue</a></div><div class="ttdeci">qreal GetLeftValue()</div><div class="ttdef"><b>Definition:</b> <a href="Histogram_8cpp_source.html#l00157">Histogram.cpp:157</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>