mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-05-12 03:28:29 +08:00
Documentation for 7309ef1370
This commit is contained in:
325
d1/ded/windowed__median_8cpp.html
Normal file
325
d1/ded/windowed__median_8cpp.html
Normal file
@@ -0,0 +1,325 @@
|
||||
<!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=11"/>
|
||||
<meta name="generator" content="Doxygen 1.9.2"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Algorithms_in_C++: probability/windowed_median.cpp File Reference</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>
|
||||
<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/x-mathjax-config">
|
||||
MathJax.Hub.Config({
|
||||
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
|
||||
jax: ["input/TeX","output/HTML-CSS"],
|
||||
});
|
||||
</script>
|
||||
<script type="text/javascript" async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML/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">Algorithms_in_C++<span id="projectnumber"> 1.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">Set of algorithms implemented in C++.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.2 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",'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:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() {
|
||||
initMenu('../../',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></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">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(document).ready(function(){initNavTree('d1/ded/windowed__median_8cpp.html','../../'); initResizable(); });
|
||||
/* @license-end */
|
||||
</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="summary">
|
||||
<a href="#nested-classes">Classes</a> |
|
||||
<a href="#namespaces">Namespaces</a> |
|
||||
<a href="#typedef-members">Typedefs</a> |
|
||||
<a href="#func-members">Functions</a> </div>
|
||||
<div class="headertitle"><div class="title">windowed_median.cpp File Reference</div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
<p>An implementation of a median calculation of a sliding window along a data stream.
|
||||
<a href="#details">More...</a></p>
|
||||
<div class="textblock"><code>#include <cassert></code><br />
|
||||
<code>#include <cstdlib></code><br />
|
||||
<code>#include <ctime></code><br />
|
||||
<code>#include <list></code><br />
|
||||
<code>#include <set></code><br />
|
||||
<code>#include <vector></code><br />
|
||||
</div><div class="textblock"><div class="dynheader">
|
||||
Include dependency graph for windowed_median.cpp:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d0/d5b/windowed__median_8cpp__incl.svg" width="450" height="127"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
</div>
|
||||
</div>
|
||||
</div><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="nested-classes" name="nested-classes"></a>
|
||||
Classes</h2></td></tr>
|
||||
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d34/classprobability_1_1windowed__median_1_1_windowed_median.html">probability::windowed_median::WindowedMedian</a></td></tr>
|
||||
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">A class to calculate the median of a leading sliding window at the back of a stream of integer values. <a href="../../df/d34/classprobability_1_1windowed__median_1_1_windowed_median.html#details">More...</a><br /></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="namespaces" name="namespaces"></a>
|
||||
Namespaces</h2></td></tr>
|
||||
<tr class="memitem:d4/ded/namespaceprobability"><td class="memItemLeft" align="right" valign="top">namespace  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/ded/namespaceprobability.html">probability</a></td></tr>
|
||||
<tr class="memdesc:d4/ded/namespaceprobability"><td class="mdescLeft"> </td><td class="mdescRight">for <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a> - needed in testing <br /></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:dd/d21/namespacewindowed__median"><td class="memItemLeft" align="right" valign="top">namespace  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/d21/namespacewindowed__median.html">windowed_median</a></td></tr>
|
||||
<tr class="memdesc:dd/d21/namespacewindowed__median"><td class="mdescLeft"> </td><td class="mdescRight">Functions for the Windowed Median algorithm implementation. <br /></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="typedef-members" name="typedef-members"></a>
|
||||
Typedefs</h2></td></tr>
|
||||
<tr class="memitem:aa9dca002d7dfbcaaa68183677a5f0342"><td class="memItemLeft" align="right" valign="top"><a id="aa9dca002d7dfbcaaa68183677a5f0342" name="aa9dca002d7dfbcaaa68183677a5f0342"></a>
|
||||
using </td><td class="memItemRight" valign="bottom"><b>probability::windowed_median::Window</b> = <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/list.html">std::list</a>< int ></td></tr>
|
||||
<tr class="separator:aa9dca002d7dfbcaaa68183677a5f0342"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ab5db7d07b43777564ad898d1f8622149"><td class="memItemLeft" align="right" valign="top"><a id="ab5db7d07b43777564ad898d1f8622149" name="ab5db7d07b43777564ad898d1f8622149"></a>
|
||||
using </td><td class="memItemRight" valign="bottom"><b>probability::windowed_median::size_type</b> = Window::size_type</td></tr>
|
||||
<tr class="separator:ab5db7d07b43777564ad898d1f8622149"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
|
||||
Functions</h2></td></tr>
|
||||
<tr class="memitem:a6dc652a36ea42ba262c4e4236e3e6601"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/ded/windowed__median_8cpp.html#a6dc652a36ea42ba262c4e4236e3e6601">test</a> (const <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a>< int > &vals, int windowSize)</td></tr>
|
||||
<tr class="memdesc:a6dc652a36ea42ba262c4e4236e3e6601"><td class="mdescLeft"> </td><td class="mdescRight">namespace probability <a href="../../d1/ded/windowed__median_8cpp.html#a6dc652a36ea42ba262c4e4236e3e6601">More...</a><br /></td></tr>
|
||||
<tr class="separator:a6dc652a36ea42ba262c4e4236e3e6601"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ac0f2228420376f4db7e1274f2b41667c"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/ded/windowed__median_8cpp.html#ac0f2228420376f4db7e1274f2b41667c">main</a> (int argc, const char *argv[])</td></tr>
|
||||
<tr class="memdesc:ac0f2228420376f4db7e1274f2b41667c"><td class="mdescLeft"> </td><td class="mdescRight">Main function. <a href="../../d1/ded/windowed__median_8cpp.html#ac0f2228420376f4db7e1274f2b41667c">More...</a><br /></td></tr>
|
||||
<tr class="separator:ac0f2228420376f4db7e1274f2b41667c"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
||||
<div class="textblock"><p >An implementation of a median calculation of a sliding window along a data stream. </p>
|
||||
<p >Given a stream of integers, the algorithm calculates the median of a fixed size window at the back of the stream. The leading time complexity of this algorithm is O(log(N), and it is inspired by the known algorithm to [find median from (infinite) data stream](<a href="https://www.tutorialcup.com/interview/algorithm/find-median-from-data-stream.htm">https://www.tutorialcup.com/interview/algorithm/find-median-from-data-stream.htm</a>), with the proper modifications to account for the finite window size for which the median is requested</p>
|
||||
<h3><a class="anchor" id="autotoc_md90"></a>
|
||||
Algorithm</h3>
|
||||
<p >The sliding window is managed by a list, which guarantees O(1) for both pushing and popping. Each new value is pushed to the window back, while a value from the front of the window is popped. In addition, the algorithm manages a multi-value binary search tree (BST), implemented by <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/multiset.html">std::multiset</a>. For each new value that is inserted into the window, it is also inserted to the BST. When a value is popped from the window, it is also erased from the BST. Both insertion and erasion to/from the BST are O(logN) in time, with N the size of the window. Finally, the algorithm keeps a pointer to the root of the BST, and updates its position whenever values are inserted or erased to/from BST. The root of the tree is the median! Hence, median retrieval is always O(1)</p>
|
||||
<p >Time complexity: O(logN). Space complexity: O(N). N - size of window </p><dl class="section author"><dt>Author</dt><dd><a href="https://github.com/YanivHollander" target="_blank">Yaniv Hollander</a> </dd></dl>
|
||||
</div><h2 class="groupheader">Function Documentation</h2>
|
||||
<a id="ac0f2228420376f4db7e1274f2b41667c" name="ac0f2228420376f4db7e1274f2b41667c"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#ac0f2228420376f4db7e1274f2b41667c">◆ </a></span>main()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">int main </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">int </td>
|
||||
<td class="paramname"><em>argc</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">const char * </td>
|
||||
<td class="paramname"><em>argv</em>[] </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Main function. </p>
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">argc</td><td>command line argument count (ignored) </td></tr>
|
||||
<tr><td class="paramname">argv</td><td>command line array of arguments (ignored) </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="section return"><dt>Returns</dt><dd>0 on exit </dd></dl>
|
||||
<p >A few fixed test cases</p>
|
||||
<p >Array of sorted values; odd window size</p>
|
||||
<p >Array of sorted values - decreasing; odd window size</p>
|
||||
<p >Even window size</p>
|
||||
<p >Array with repeating values</p>
|
||||
<p >Array with same values except one</p>
|
||||
<p >Array that includes repeating values including negatives</p>
|
||||
<p >Array with large values - sum of few pairs exceeds MAX_INT. Window size is even - testing calculation of average median between two middle values</p>
|
||||
<p >Random test cases</p>
|
||||
<p >Array size in the range [5, 20]</p>
|
||||
<p >Window size in the range [3, 10]</p>
|
||||
<p >Random array values (positive/negative)</p>
|
||||
<p >Testing randomized test</p>
|
||||
<div class="fragment"><div class="line"><a id="l00197" name="l00197"></a><span class="lineno"> 197</span> {</div>
|
||||
<div class="line"><a id="l00198" name="l00198"></a><span class="lineno"> 198</span> <span class="comment"></span></div>
|
||||
<div class="line"><a id="l00199" name="l00199"></a><span class="lineno"> 199</span><span class="comment"> /// A few fixed test cases</span></div>
|
||||
<div class="line"><a id="l00200" name="l00200"></a><span class="lineno"> 200</span><span class="comment"></span> <a class="code hl_function" href="../../d1/ded/windowed__median_8cpp.html#a6dc652a36ea42ba262c4e4236e3e6601">test</a>({1, 2, 3, 4, 5, 6, 7, 8, 9}, 3); <span class="comment">/// Array of sorted values; odd window size</span></div>
|
||||
<div class="line"><a id="l00201" name="l00201"></a><span class="lineno"> 201</span> <a class="code hl_function" href="../../d1/ded/windowed__median_8cpp.html#a6dc652a36ea42ba262c4e4236e3e6601">test</a>({9, 8, 7, 6, 5, 4, 3, 2, 1}, 3); <span class="comment">/// Array of sorted values - decreasing; odd window size</span></div>
|
||||
<div class="line"><a id="l00202" name="l00202"></a><span class="lineno"> 202</span> <a class="code hl_function" href="../../d1/ded/windowed__median_8cpp.html#a6dc652a36ea42ba262c4e4236e3e6601">test</a>({9, 8, 7, 6, 5, 4, 5, 6}, 4); <span class="comment">/// Even window size</span></div>
|
||||
<div class="line"><a id="l00203" name="l00203"></a><span class="lineno"> 203</span> <a class="code hl_function" href="../../d1/ded/windowed__median_8cpp.html#a6dc652a36ea42ba262c4e4236e3e6601">test</a>({3, 3, 3, 3, 3, 3, 3, 3, 3}, 3); <span class="comment">/// Array with repeating values</span></div>
|
||||
<div class="line"><a id="l00204" name="l00204"></a><span class="lineno"> 204</span> <a class="code hl_function" href="../../d1/ded/windowed__median_8cpp.html#a6dc652a36ea42ba262c4e4236e3e6601">test</a>({3, 3, 3, 3, 7, 3, 3, 3, 3}, 3); <span class="comment">/// Array with same values except one</span></div>
|
||||
<div class="line"><a id="l00205" name="l00205"></a><span class="lineno"> 205</span> <a class="code hl_function" href="../../d1/ded/windowed__median_8cpp.html#a6dc652a36ea42ba262c4e4236e3e6601">test</a>({4, 3, 3, -5, -5, 1, 3, 4, 5}, 5); <span class="comment">/// Array that includes repeating values including negatives</span></div>
|
||||
<div class="line"><a id="l00206" name="l00206"></a><span class="lineno"> 206</span> <span class="comment"></span></div>
|
||||
<div class="line"><a id="l00207" name="l00207"></a><span class="lineno"> 207</span><span class="comment"> /// Array with large values - sum of few pairs exceeds MAX_INT. Window size is even - testing calculation of</span></div>
|
||||
<div class="line"><a id="l00208" name="l00208"></a><span class="lineno"> 208</span><span class="comment"> /// average median between two middle values</span></div>
|
||||
<div class="line"><a id="l00209" name="l00209"></a><span class="lineno"> 209</span><span class="comment"></span> <a class="code hl_function" href="../../d1/ded/windowed__median_8cpp.html#a6dc652a36ea42ba262c4e4236e3e6601">test</a>({470211272, 101027544, 1457850878, 1458777923, 2007237709, 823564440,</div>
|
||||
<div class="line"><a id="l00210" name="l00210"></a><span class="lineno"> 210</span> 1115438165, 1784484492, 74243042, 114807987}, 6);</div>
|
||||
<div class="line"><a id="l00211" name="l00211"></a><span class="lineno"> 211</span> <span class="comment"></span></div>
|
||||
<div class="line"><a id="l00212" name="l00212"></a><span class="lineno"> 212</span><span class="comment"> /// Random test cases</span></div>
|
||||
<div class="line"><a id="l00213" name="l00213"></a><span class="lineno"> 213</span><span class="comment"></span> <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/random/srand.html">std::srand</a>(<span class="keyword">static_cast<</span><span class="keywordtype">unsigned</span> <span class="keywordtype">int</span><span class="keyword">></span>(<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/chrono/c/time.html">std::time</a>(<span class="keyword">nullptr</span>)));</div>
|
||||
<div class="line"><a id="l00214" name="l00214"></a><span class="lineno"> 214</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<int></a> vals;</div>
|
||||
<div class="line"><a id="l00215" name="l00215"></a><span class="lineno"> 215</span> <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 8; i < 100; i++) {</div>
|
||||
<div class="line"><a id="l00216" name="l00216"></a><span class="lineno"> 216</span> <span class="keyword">const</span> <span class="keyword">auto</span> n = 1 + <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/random/rand.html">std::rand</a>() / ((RAND_MAX + 5u) / 20); <span class="comment">/// Array size in the range [5, 20]</span></div>
|
||||
<div class="line"><a id="l00217" name="l00217"></a><span class="lineno"> 217</span> <span class="keyword">auto</span> windowSize = 1 + <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/random/rand.html">std::rand</a>() / ((RAND_MAX + 3u) / 10); <span class="comment">/// Window size in the range [3, 10]</span></div>
|
||||
<div class="line"><a id="l00218" name="l00218"></a><span class="lineno"> 218</span> vals.<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector/clear.html">clear</a>();</div>
|
||||
<div class="line"><a id="l00219" name="l00219"></a><span class="lineno"> 219</span> vals.<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector/reserve.html">reserve</a>(n);</div>
|
||||
<div class="line"><a id="l00220" name="l00220"></a><span class="lineno"> 220</span> <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < n; i++) {</div>
|
||||
<div class="line"><a id="l00221" name="l00221"></a><span class="lineno"> 221</span> vals.<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector/push_back.html">push_back</a>(<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/random/rand.html">rand</a>() - RAND_MAX); <span class="comment">/// Random array values (positive/negative)</span></div>
|
||||
<div class="line"><a id="l00222" name="l00222"></a><span class="lineno"> 222</span> }</div>
|
||||
<div class="line"><a id="l00223" name="l00223"></a><span class="lineno"> 223</span> <a class="code hl_function" href="../../d1/ded/windowed__median_8cpp.html#a6dc652a36ea42ba262c4e4236e3e6601">test</a>(vals, windowSize); <span class="comment">/// Testing randomized test</span></div>
|
||||
<div class="line"><a id="l00224" name="l00224"></a><span class="lineno"> 224</span> }</div>
|
||||
<div class="line"><a id="l00225" name="l00225"></a><span class="lineno"> 225</span> <span class="keywordflow">return</span> 0;</div>
|
||||
<div class="line"><a id="l00226" name="l00226"></a><span class="lineno"> 226</span>}</div>
|
||||
<div class="ttc" id="aclear_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/vector/clear.html">std::vector::clear</a></div><div class="ttdeci">T clear(T... args)</div></div>
|
||||
<div class="ttc" id="apush_back_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/vector/push_back.html">std::vector::push_back</a></div><div class="ttdeci">T push_back(T... args)</div></div>
|
||||
<div class="ttc" id="arand_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/numeric/random/rand.html">std::rand</a></div><div class="ttdeci">T rand(T... args)</div></div>
|
||||
<div class="ttc" id="areserve_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/vector/reserve.html">std::vector::reserve</a></div><div class="ttdeci">T reserve(T... args)</div></div>
|
||||
<div class="ttc" id="asrand_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/numeric/random/srand.html">std::srand</a></div><div class="ttdeci">T srand(T... args)</div></div>
|
||||
<div class="ttc" id="atime_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/chrono/c/time.html">std::time</a></div><div class="ttdeci">T time(T... args)</div></div>
|
||||
<div class="ttc" id="avector_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a></div></div>
|
||||
<div class="ttc" id="awindowed__median_8cpp_html_a6dc652a36ea42ba262c4e4236e3e6601"><div class="ttname"><a href="../../d1/ded/windowed__median_8cpp.html#a6dc652a36ea42ba262c4e4236e3e6601">test</a></div><div class="ttdeci">static void test(const std::vector< int > &vals, int windowSize)</div><div class="ttdoc">namespace probability</div><div class="ttdef"><b>Definition:</b> windowed_median.cpp:181</div></div>
|
||||
</div><!-- fragment --><div class="dynheader">
|
||||
Here is the call graph for this function:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center"><div class="zoom"><iframe scrolling="no" frameborder="0" src="../../d1/ded/windowed__median_8cpp_ac0f2228420376f4db7e1274f2b41667c_cgraph.svg" width="100%" height="600"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a6dc652a36ea42ba262c4e4236e3e6601" name="a6dc652a36ea42ba262c4e4236e3e6601"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a6dc652a36ea42ba262c4e4236e3e6601">◆ </a></span>test()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">static void test </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">const <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a>< int > & </td>
|
||||
<td class="paramname"><em>vals</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">int </td>
|
||||
<td class="paramname"><em>windowSize</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">static</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>namespace probability </p>
|
||||
<p >Self-test implementations </p><dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">vals</td><td>Stream of values </td></tr>
|
||||
<tr><td class="paramname">windowSize</td><td>Size of sliding window </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<p >Comparing medians: efficient function vs. Naive one</p>
|
||||
<div class="fragment"><div class="line"><a id="l00181" name="l00181"></a><span class="lineno"> 181</span> {</div>
|
||||
<div class="line"><a id="l00182" name="l00182"></a><span class="lineno"> 182</span> <a class="code hl_class" href="../../df/d34/classprobability_1_1windowed__median_1_1_windowed_median.html">probability::windowed_median::WindowedMedian</a> windowedMedian(windowSize);</div>
|
||||
<div class="line"><a id="l00183" name="l00183"></a><span class="lineno"> 183</span> <span class="keywordflow">for</span> (<span class="keyword">const</span> <span class="keyword">auto</span> val : vals) {</div>
|
||||
<div class="line"><a id="l00184" name="l00184"></a><span class="lineno"> 184</span> windowedMedian.insert(val);</div>
|
||||
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno"> 185</span><span class="comment"></span> </div>
|
||||
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno"> 186</span><span class="comment"> /// Comparing medians: efficient function vs. Naive one</span></div>
|
||||
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno"> 187</span><span class="comment"></span> assert(windowedMedian.getMedian() == windowedMedian.getMedianNaive());</div>
|
||||
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno"> 188</span> }</div>
|
||||
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno"> 189</span>}</div>
|
||||
<div class="ttc" id="aclassprobability_1_1windowed__median_1_1_windowed_median_html"><div class="ttname"><a href="../../df/d34/classprobability_1_1windowed__median_1_1_windowed_median.html">probability::windowed_median::WindowedMedian</a></div><div class="ttdoc">A class to calculate the median of a leading sliding window at the back of a stream of integer values...</div><div class="ttdef"><b>Definition:</b> windowed_median.cpp:56</div></div>
|
||||
</div><!-- fragment --><div class="dynheader">
|
||||
Here is the call graph for this function:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d1/ded/windowed__median_8cpp_a6dc652a36ea42ba262c4e4236e3e6601_cgraph.svg" width="524" height="436"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</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_82e494173a87936756866de2fa774307.html">probability</a></li><li class="navelem"><a class="el" href="../../d1/ded/windowed__median_8cpp.html">windowed_median.cpp</a></li>
|
||||
<li class="footer">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.2 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
6
d1/ded/windowed__median_8cpp.js
Normal file
6
d1/ded/windowed__median_8cpp.js
Normal file
@@ -0,0 +1,6 @@
|
||||
var windowed__median_8cpp =
|
||||
[
|
||||
[ "probability::windowed_median::WindowedMedian", "df/d34/classprobability_1_1windowed__median_1_1_windowed_median.html", "df/d34/classprobability_1_1windowed__median_1_1_windowed_median" ],
|
||||
[ "main", "d1/ded/windowed__median_8cpp.html#ac0f2228420376f4db7e1274f2b41667c", null ],
|
||||
[ "test", "d1/ded/windowed__median_8cpp.html#a6dc652a36ea42ba262c4e4236e3e6601", null ]
|
||||
];
|
||||
@@ -0,0 +1,13 @@
|
||||
<map id="test" name="test">
|
||||
<area shape="rect" id="node1" title="namespace probability" alt="" coords="5,100,49,127"/>
|
||||
<area shape="rect" id="node2" href="$df/d34/classprobability_1_1windowed__median_1_1_windowed_median.html#a938cafbdf70dc01e86e9bb12d29ec65d" title="Gets the median of the values in the sliding window." alt="" coords="97,5,284,61"/>
|
||||
<area shape="rect" id="node3" href="$df/d34/classprobability_1_1windowed__median_1_1_windowed_median.html#a61804988fcb1a6caf640f8291979aaa6" title="A naive and inefficient method to obtain the median of the sliding window. Used for testing!" alt="" coords="97,85,284,141"/>
|
||||
<area shape="rect" id="node5" href="$df/d34/classprobability_1_1windowed__median_1_1_windowed_median.html#a6b52b7851750f28d53508e63c52a69f7" title="Insert a new value to the stream." alt="" coords="97,223,284,279"/>
|
||||
<area shape="rect" id="node4" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/list/sort.html#" title=" " alt="" coords="379,41,472,68"/>
|
||||
<area shape="rect" id="node6" href="$df/d34/classprobability_1_1windowed__median_1_1_windowed_median.html#af544e271ea19a6fd69a6b3ed6816453e" title="Erases a value from a sorted multi-value BST." alt="" coords="332,92,519,148"/>
|
||||
<area shape="rect" id="node7" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/list/front.html#" title=" " alt="" coords="377,172,474,199"/>
|
||||
<area shape="rect" id="node8" href="$df/d34/classprobability_1_1windowed__median_1_1_windowed_median.html#a3a7f57679e9cd6c9f042dfd0612b2b24" title="Inserts a value to a sorted multi-value BST." alt="" coords="332,223,519,279"/>
|
||||
<area shape="rect" id="node9" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/list/pop_front.html#" title=" " alt="" coords="362,303,489,329"/>
|
||||
<area shape="rect" id="node10" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/list/push_back.html#" title=" " alt="" coords="357,353,493,380"/>
|
||||
<area shape="rect" id="node11" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/list/size.html#" title=" " alt="" coords="378,404,473,431"/>
|
||||
</map>
|
||||
@@ -0,0 +1 @@
|
||||
af3ecd3d6ea1f430112ad540bab9e020
|
||||
@@ -0,0 +1,182 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
|
||||
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<!-- Generated by graphviz version 2.49.1 (20210923.0004)
|
||||
-->
|
||||
<!-- Title: test Pages: 1 -->
|
||||
<svg width="393pt" height="327pt"
|
||||
viewBox="0.00 0.00 393.00 327.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 323)">
|
||||
<title>test</title>
|
||||
<polygon fill="white" stroke="transparent" points="-4,4 -4,-323 389,-323 389,4 -4,4"/>
|
||||
<!-- Node1 -->
|
||||
<g id="node1" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_node1"><a xlink:title="namespace probability">
|
||||
<polygon fill="#bfbfbf" stroke="black" points="0,-228.5 0,-247.5 33,-247.5 33,-228.5 0,-228.5"/>
|
||||
<text text-anchor="middle" x="16.5" y="-235.5" font-family="Helvetica,sans-Serif" font-size="10.00">test</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2 -->
|
||||
<g id="node2" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_node2"><a xlink:href="../../df/d34/classprobability_1_1windowed__median_1_1_windowed_median.html#a938cafbdf70dc01e86e9bb12d29ec65d" target="_top" xlink:title="Gets the median of the values in the sliding window.">
|
||||
<polygon fill="white" stroke="black" points="69,-277.5 69,-318.5 209,-318.5 209,-277.5 69,-277.5"/>
|
||||
<text text-anchor="start" x="77" y="-306.5" font-family="Helvetica,sans-Serif" font-size="10.00">probability::windowed</text>
|
||||
<text text-anchor="start" x="77" y="-295.5" font-family="Helvetica,sans-Serif" font-size="10.00">_median::WindowedMedian</text>
|
||||
<text text-anchor="middle" x="139" y="-284.5" font-family="Helvetica,sans-Serif" font-size="10.00">::getMedian</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<path fill="none" stroke="midnightblue" d="M33.01,-247.68C43.1,-253.81 56.63,-261.74 69,-268 72.34,-269.69 75.8,-271.38 79.31,-273.05"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="78.13,-276.36 88.67,-277.39 81.07,-270.01 78.13,-276.36"/>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="node3" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_node3"><a xlink:href="../../df/d34/classprobability_1_1windowed__median_1_1_windowed_median.html#a61804988fcb1a6caf640f8291979aaa6" target="_top" xlink:title="A naive and inefficient method to obtain the median of the sliding window. Used for testing!">
|
||||
<polygon fill="white" stroke="black" points="69,-217.5 69,-258.5 209,-258.5 209,-217.5 69,-217.5"/>
|
||||
<text text-anchor="start" x="77" y="-246.5" font-family="Helvetica,sans-Serif" font-size="10.00">probability::windowed</text>
|
||||
<text text-anchor="start" x="77" y="-235.5" font-family="Helvetica,sans-Serif" font-size="10.00">_median::WindowedMedian</text>
|
||||
<text text-anchor="middle" x="139" y="-224.5" font-family="Helvetica,sans-Serif" font-size="10.00">::getMedianNaive</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node3 -->
|
||||
<g id="edge2" class="edge">
|
||||
<title>Node1->Node3</title>
|
||||
<path fill="none" stroke="midnightblue" d="M33.25,-238C40.26,-238 49.08,-238 58.62,-238"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="58.77,-241.5 68.77,-238 58.77,-234.5 58.77,-241.5"/>
|
||||
</g>
|
||||
<!-- Node5 -->
|
||||
<g id="node5" class="node">
|
||||
<title>Node5</title>
|
||||
<g id="a_node5"><a xlink:href="../../df/d34/classprobability_1_1windowed__median_1_1_windowed_median.html#a6b52b7851750f28d53508e63c52a69f7" target="_top" xlink:title="Insert a new value to the stream.">
|
||||
<polygon fill="white" stroke="black" points="69,-114.5 69,-155.5 209,-155.5 209,-114.5 69,-114.5"/>
|
||||
<text text-anchor="start" x="77" y="-143.5" font-family="Helvetica,sans-Serif" font-size="10.00">probability::windowed</text>
|
||||
<text text-anchor="start" x="77" y="-132.5" font-family="Helvetica,sans-Serif" font-size="10.00">_median::WindowedMedian</text>
|
||||
<text text-anchor="middle" x="139" y="-121.5" font-family="Helvetica,sans-Serif" font-size="10.00">::insert</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node5 -->
|
||||
<g id="edge4" class="edge">
|
||||
<title>Node1->Node5</title>
|
||||
<path fill="none" stroke="midnightblue" d="M28.62,-228.49C46.04,-213.6 80.43,-184.21 106.02,-162.33"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="108.32,-164.97 113.65,-155.81 103.78,-159.65 108.32,-164.97"/>
|
||||
</g>
|
||||
<!-- Node4 -->
|
||||
<g id="node4" class="node">
|
||||
<title>Node4</title>
|
||||
<g id="a_node4"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/sort.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="black" points="280,-272.5 280,-291.5 350,-291.5 350,-272.5 280,-272.5"/>
|
||||
<text text-anchor="middle" x="315" y="-279.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::sort</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node4 -->
|
||||
<g id="edge3" class="edge">
|
||||
<title>Node3->Node4</title>
|
||||
<path fill="none" stroke="midnightblue" d="M209.02,-255.45C229.51,-260.64 251.4,-266.17 269.86,-270.84"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="269.17,-274.27 279.73,-273.33 270.89,-267.49 269.17,-274.27"/>
|
||||
</g>
|
||||
<!-- Node6 -->
|
||||
<g id="node6" class="node">
|
||||
<title>Node6</title>
|
||||
<g id="a_node6"><a xlink:href="../../df/d34/classprobability_1_1windowed__median_1_1_windowed_median.html#af544e271ea19a6fd69a6b3ed6816453e" target="_top" xlink:title="Erases a value from a sorted multi-value BST.">
|
||||
<polygon fill="white" stroke="black" points="245,-212.5 245,-253.5 385,-253.5 385,-212.5 245,-212.5"/>
|
||||
<text text-anchor="start" x="253" y="-241.5" font-family="Helvetica,sans-Serif" font-size="10.00">probability::windowed</text>
|
||||
<text text-anchor="start" x="253" y="-230.5" font-family="Helvetica,sans-Serif" font-size="10.00">_median::WindowedMedian</text>
|
||||
<text text-anchor="middle" x="315" y="-219.5" font-family="Helvetica,sans-Serif" font-size="10.00">::eraseFromSorted</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node5->Node6 -->
|
||||
<g id="edge5" class="edge">
|
||||
<title>Node5->Node6</title>
|
||||
<path fill="none" stroke="midnightblue" d="M169.08,-155.68C189.73,-169.91 218.4,-188.73 245,-203 248.24,-204.74 251.6,-206.46 255.02,-208.14"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="253.62,-211.35 264.16,-212.5 256.64,-205.03 253.62,-211.35"/>
|
||||
</g>
|
||||
<!-- Node7 -->
|
||||
<g id="node7" class="node">
|
||||
<title>Node7</title>
|
||||
<g id="a_node7"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/front.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="black" points="278.5,-174.5 278.5,-193.5 351.5,-193.5 351.5,-174.5 278.5,-174.5"/>
|
||||
<text text-anchor="middle" x="315" y="-181.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::front</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node5->Node7 -->
|
||||
<g id="edge6" class="edge">
|
||||
<title>Node5->Node7</title>
|
||||
<path fill="none" stroke="midnightblue" d="M209.16,-154.86C221.11,-158.26 233.41,-161.75 245,-165 252.91,-167.22 261.34,-169.56 269.49,-171.81"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="268.66,-175.21 279.23,-174.5 270.52,-168.47 268.66,-175.21"/>
|
||||
</g>
|
||||
<!-- Node8 -->
|
||||
<g id="node8" class="node">
|
||||
<title>Node8</title>
|
||||
<g id="a_node8"><a xlink:href="../../df/d34/classprobability_1_1windowed__median_1_1_windowed_median.html#a3a7f57679e9cd6c9f042dfd0612b2b24" target="_top" xlink:title="Inserts a value to a sorted multi-value BST.">
|
||||
<polygon fill="white" stroke="black" points="245,-114.5 245,-155.5 385,-155.5 385,-114.5 245,-114.5"/>
|
||||
<text text-anchor="start" x="253" y="-143.5" font-family="Helvetica,sans-Serif" font-size="10.00">probability::windowed</text>
|
||||
<text text-anchor="start" x="253" y="-132.5" font-family="Helvetica,sans-Serif" font-size="10.00">_median::WindowedMedian</text>
|
||||
<text text-anchor="middle" x="315" y="-121.5" font-family="Helvetica,sans-Serif" font-size="10.00">::insertToSorted</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node5->Node8 -->
|
||||
<g id="edge7" class="edge">
|
||||
<title>Node5->Node8</title>
|
||||
<path fill="none" stroke="midnightblue" d="M209.02,-135C217.48,-135 226.17,-135 234.76,-135"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="234.78,-138.5 244.78,-135 234.78,-131.5 234.78,-138.5"/>
|
||||
</g>
|
||||
<!-- Node9 -->
|
||||
<g id="node9" class="node">
|
||||
<title>Node9</title>
|
||||
<g id="a_node9"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/pop_front.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="black" points="267.5,-76.5 267.5,-95.5 362.5,-95.5 362.5,-76.5 267.5,-76.5"/>
|
||||
<text text-anchor="middle" x="315" y="-83.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::pop_front</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node5->Node9 -->
|
||||
<g id="edge8" class="edge">
|
||||
<title>Node5->Node9</title>
|
||||
<path fill="none" stroke="midnightblue" d="M209.16,-115.14C221.11,-111.74 233.41,-108.25 245,-105 252.91,-102.78 261.34,-100.44 269.49,-98.19"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="270.52,-101.53 279.23,-95.5 268.66,-94.79 270.52,-101.53"/>
|
||||
</g>
|
||||
<!-- Node10 -->
|
||||
<g id="node10" class="node">
|
||||
<title>Node10</title>
|
||||
<g id="a_node10"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/push_back.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="black" points="264,-38.5 264,-57.5 366,-57.5 366,-38.5 264,-38.5"/>
|
||||
<text text-anchor="middle" x="315" y="-45.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::push_back</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node5->Node10 -->
|
||||
<g id="edge9" class="edge">
|
||||
<title>Node5->Node10</title>
|
||||
<path fill="none" stroke="midnightblue" d="M166.75,-114.38C187.22,-99.44 216.66,-79.71 245,-67 250.3,-64.62 255.97,-62.48 261.69,-60.56"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="262.82,-63.88 271.32,-57.55 260.73,-57.2 262.82,-63.88"/>
|
||||
</g>
|
||||
<!-- Node11 -->
|
||||
<g id="node11" class="node">
|
||||
<title>Node11</title>
|
||||
<g id="a_node11"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/size.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="black" points="279.5,-0.5 279.5,-19.5 350.5,-19.5 350.5,-0.5 279.5,-0.5"/>
|
||||
<text text-anchor="middle" x="315" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::size</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node5->Node11 -->
|
||||
<g id="edge10" class="edge">
|
||||
<title>Node5->Node11</title>
|
||||
<path fill="none" stroke="midnightblue" d="M155.05,-114.25C173.56,-90.22 207.22,-51.11 245,-29 252.48,-24.63 261,-21.22 269.44,-18.59"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="270.57,-21.91 279.25,-15.84 268.68,-15.17 270.57,-21.91"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 10 KiB |
@@ -0,0 +1,20 @@
|
||||
<map id="main" name="main">
|
||||
<area shape="rect" id="node1" title="Main function." alt="" coords="5,157,56,184"/>
|
||||
<area shape="rect" id="node2" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/clear.html#" title=" " alt="" coords="122,5,242,32"/>
|
||||
<area shape="rect" id="node3" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/push_back.html#" title=" " alt="" coords="104,56,260,83"/>
|
||||
<area shape="rect" id="node4" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/numeric/random/rand.html#" title=" " alt="" coords="145,107,219,133"/>
|
||||
<area shape="rect" id="node5" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/reserve.html#" title=" " alt="" coords="114,157,250,184"/>
|
||||
<area shape="rect" id="node6" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/numeric/random/srand.html#" title=" " alt="" coords="142,208,222,235"/>
|
||||
<area shape="rect" id="node7" href="$d1/ded/windowed__median_8cpp.html#a6dc652a36ea42ba262c4e4236e3e6601" title="namespace probability" alt="" coords="160,259,204,285"/>
|
||||
<area shape="rect" id="node18" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/chrono/c/time.html#" title=" " alt="" coords="146,309,218,336"/>
|
||||
<area shape="rect" id="node8" href="$df/d34/classprobability_1_1windowed__median_1_1_windowed_median.html#a938cafbdf70dc01e86e9bb12d29ec65d" title="Gets the median of the values in the sliding window." alt="" coords="308,164,495,220"/>
|
||||
<area shape="rect" id="node9" href="$df/d34/classprobability_1_1windowed__median_1_1_windowed_median.html#a61804988fcb1a6caf640f8291979aaa6" title="A naive and inefficient method to obtain the median of the sliding window. Used for testing!" alt="" coords="308,244,495,300"/>
|
||||
<area shape="rect" id="node11" href="$df/d34/classprobability_1_1windowed__median_1_1_windowed_median.html#a6b52b7851750f28d53508e63c52a69f7" title="Insert a new value to the stream." alt="" coords="308,381,495,437"/>
|
||||
<area shape="rect" id="node10" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/list/sort.html#" title=" " alt="" coords="589,200,683,227"/>
|
||||
<area shape="rect" id="node12" href="$df/d34/classprobability_1_1windowed__median_1_1_windowed_median.html#af544e271ea19a6fd69a6b3ed6816453e" title="Erases a value from a sorted multi-value BST." alt="" coords="543,251,729,307"/>
|
||||
<area shape="rect" id="node13" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/list/front.html#" title=" " alt="" coords="587,331,685,357"/>
|
||||
<area shape="rect" id="node14" href="$df/d34/classprobability_1_1windowed__median_1_1_windowed_median.html#a3a7f57679e9cd6c9f042dfd0612b2b24" title="Inserts a value to a sorted multi-value BST." alt="" coords="543,381,729,437"/>
|
||||
<area shape="rect" id="node15" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/list/pop_front.html#" title=" " alt="" coords="573,461,699,488"/>
|
||||
<area shape="rect" id="node16" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/list/push_back.html#" title=" " alt="" coords="568,512,704,539"/>
|
||||
<area shape="rect" id="node17" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/list/size.html#" title=" " alt="" coords="589,563,683,589"/>
|
||||
</map>
|
||||
@@ -0,0 +1 @@
|
||||
3a15537f7782af1ae7db25b318481ec4
|
||||
@@ -0,0 +1,375 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
|
||||
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<!-- Generated by graphviz version 2.49.1 (20210923.0004)
|
||||
-->
|
||||
<!-- Title: main Pages: 1 -->
|
||||
<!--zoomable 446 -->
|
||||
<svg id="main" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" onload="init(evt)">
|
||||
<style type="text/css"><![CDATA[
|
||||
.edge:hover path { stroke: red; }
|
||||
.edge:hover polygon { stroke: red; fill: red; }
|
||||
]]></style>
|
||||
<script type="text/javascript"><![CDATA[
|
||||
var edges = document.getElementsByTagName('g');
|
||||
if (edges && edges.length) {
|
||||
for (var i=0;i<edges.length;i++) {
|
||||
if (edges[i].id.substr(0,4)=='edge') {
|
||||
edges[i].setAttribute('class','edge');
|
||||
}
|
||||
}
|
||||
}
|
||||
]]></script>
|
||||
<defs>
|
||||
<circle id="rim" cx="0" cy="0" r="7"/>
|
||||
<circle id="rim2" cx="0" cy="0" r="3.5"/>
|
||||
<g id="zoomPlus">
|
||||
<use xlink:href="#rim" fill="#404040">
|
||||
<set attributeName="fill" to="#808080" begin="zoomplus.mouseover" end="zoomplus.mouseout"/>
|
||||
</use>
|
||||
<path d="M-4,0h8M0,-4v8" fill="none" stroke="white" stroke-width="1.5" pointer-events="none"/>
|
||||
</g>
|
||||
<g id="zoomMin">
|
||||
<use xlink:href="#rim" fill="#404040">
|
||||
<set attributeName="fill" to="#808080" begin="zoomminus.mouseover" end="zoomminus.mouseout"/>
|
||||
</use>
|
||||
<path d="M-4,0h8" fill="none" stroke="white" stroke-width="1.5" pointer-events="none"/>
|
||||
</g>
|
||||
<g id="dirArrow">
|
||||
<path fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
|
||||
</g>
|
||||
<g id="resetDef">
|
||||
<use xlink:href="#rim2" fill="#404040">
|
||||
<set attributeName="fill" to="#808080" begin="reset.mouseover" end="reset.mouseout"/>
|
||||
</use>
|
||||
</g>
|
||||
</defs>
|
||||
|
||||
<script type="text/javascript">
|
||||
var viewWidth = 551;
|
||||
var viewHeight = 446;
|
||||
var sectionId = 'dynsection-1';
|
||||
</script>
|
||||
<script xlink:href="../../svgpan.js"/>
|
||||
<svg id="graph" class="graph">
|
||||
<g id="viewport">
|
||||
<title>main</title>
|
||||
<polygon fill="white" stroke="transparent" points="-4,4 -4,-442 547,-442 547,4 -4,4"/>
|
||||
<!-- Node1 -->
|
||||
<g id="node1" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_node1"><a xlink:title="Main function.">
|
||||
<polygon fill="#bfbfbf" stroke="black" points="0,-304.5 0,-323.5 38,-323.5 38,-304.5 0,-304.5"/>
|
||||
<text text-anchor="middle" x="19" y="-311.5" font-family="Helvetica,sans-Serif" font-size="10.00">main</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2 -->
|
||||
<g id="node2" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_node2"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/clear.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="black" points="87.5,-418.5 87.5,-437.5 177.5,-437.5 177.5,-418.5 87.5,-418.5"/>
|
||||
<text text-anchor="middle" x="132.5" y="-425.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::clear</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<path fill="none" stroke="midnightblue" d="M22.86,-323.62C29.03,-342.7 45.39,-385.55 74,-409 76.06,-410.69 78.28,-412.23 80.61,-413.64"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="79.48,-417 89.98,-418.42 82.66,-410.76 79.48,-417"/>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="node3" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_node3"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/push_back.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="black" points="74,-380.5 74,-399.5 191,-399.5 191,-380.5 74,-380.5"/>
|
||||
<text text-anchor="middle" x="132.5" y="-387.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::push_back</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node3 -->
|
||||
<g id="edge2" class="edge">
|
||||
<title>Node1->Node3</title>
|
||||
<path fill="none" stroke="midnightblue" d="M26.91,-323.88C36.23,-336.52 53.98,-358.28 74,-371 77.16,-373.01 80.55,-374.82 84.05,-376.46"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="82.9,-379.77 93.48,-380.4 85.6,-373.31 82.9,-379.77"/>
|
||||
</g>
|
||||
<!-- Node4 -->
|
||||
<g id="node4" class="node">
|
||||
<title>Node4</title>
|
||||
<g id="a_node4"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/numeric/random/rand.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="black" points="105,-342.5 105,-361.5 160,-361.5 160,-342.5 105,-342.5"/>
|
||||
<text text-anchor="middle" x="132.5" y="-349.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::rand</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node4 -->
|
||||
<g id="edge3" class="edge">
|
||||
<title>Node1->Node4</title>
|
||||
<path fill="none" stroke="midnightblue" d="M38.46,-320.6C48.88,-324.29 62.15,-328.96 74,-333 80.75,-335.3 87.97,-337.72 94.92,-340.03"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="94.25,-343.49 104.84,-343.31 96.44,-336.85 94.25,-343.49"/>
|
||||
</g>
|
||||
<!-- Node5 -->
|
||||
<g id="node5" class="node">
|
||||
<title>Node5</title>
|
||||
<g id="a_node5"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/reserve.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="black" points="81.5,-304.5 81.5,-323.5 183.5,-323.5 183.5,-304.5 81.5,-304.5"/>
|
||||
<text text-anchor="middle" x="132.5" y="-311.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::reserve</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node5 -->
|
||||
<g id="edge4" class="edge">
|
||||
<title>Node1->Node5</title>
|
||||
<path fill="none" stroke="midnightblue" d="M38.41,-314C47.59,-314 59.28,-314 71.24,-314"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="71.3,-317.5 81.3,-314 71.3,-310.5 71.3,-317.5"/>
|
||||
</g>
|
||||
<!-- Node6 -->
|
||||
<g id="node6" class="node">
|
||||
<title>Node6</title>
|
||||
<g id="a_node6"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/numeric/random/srand.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="black" points="102.5,-266.5 102.5,-285.5 162.5,-285.5 162.5,-266.5 102.5,-266.5"/>
|
||||
<text text-anchor="middle" x="132.5" y="-273.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::srand</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node6 -->
|
||||
<g id="edge5" class="edge">
|
||||
<title>Node1->Node6</title>
|
||||
<path fill="none" stroke="midnightblue" d="M38.46,-307.4C48.88,-303.71 62.15,-299.04 74,-295 80.01,-292.95 86.38,-290.81 92.61,-288.74"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="93.82,-292.02 102.21,-285.56 91.62,-285.38 93.82,-292.02"/>
|
||||
</g>
|
||||
<!-- Node7 -->
|
||||
<g id="node7" class="node">
|
||||
<title>Node7</title>
|
||||
<g id="a_node7"><a xlink:href="../../d1/ded/windowed__median_8cpp.html#a6dc652a36ea42ba262c4e4236e3e6601" target="_top" xlink:title="namespace probability">
|
||||
<polygon fill="white" stroke="black" points="116,-228.5 116,-247.5 149,-247.5 149,-228.5 116,-228.5"/>
|
||||
<text text-anchor="middle" x="132.5" y="-235.5" font-family="Helvetica,sans-Serif" font-size="10.00">test</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node7 -->
|
||||
<g id="edge6" class="edge">
|
||||
<title>Node1->Node7</title>
|
||||
<path fill="none" stroke="midnightblue" d="M26.91,-304.12C36.23,-291.48 53.98,-269.72 74,-257 83.72,-250.83 95.64,-246.46 106.11,-243.48"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="107.14,-246.83 115.95,-240.95 105.4,-240.05 107.14,-246.83"/>
|
||||
</g>
|
||||
<!-- Node18 -->
|
||||
<g id="node18" class="node">
|
||||
<title>Node18</title>
|
||||
<g id="a_node18"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/chrono/c/time.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="black" points="105.5,-190.5 105.5,-209.5 159.5,-209.5 159.5,-190.5 105.5,-190.5"/>
|
||||
<text text-anchor="middle" x="132.5" y="-197.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::time</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node18 -->
|
||||
<g id="edge17" class="edge">
|
||||
<title>Node1->Node18</title>
|
||||
<path fill="none" stroke="midnightblue" d="M22.86,-304.38C29.03,-285.3 45.39,-242.45 74,-219 80.29,-213.85 88.03,-210.07 95.76,-207.31"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="96.92,-210.62 105.45,-204.34 94.87,-203.93 96.92,-210.62"/>
|
||||
</g>
|
||||
<!-- Node8 -->
|
||||
<g id="node8" class="node">
|
||||
<title>Node8</title>
|
||||
<g id="a_node8"><a xlink:href="../../df/d34/classprobability_1_1windowed__median_1_1_windowed_median.html#a938cafbdf70dc01e86e9bb12d29ec65d" target="_top" xlink:title="Gets the median of the values in the sliding window.">
|
||||
<polygon fill="white" stroke="black" points="227,-277.5 227,-318.5 367,-318.5 367,-277.5 227,-277.5"/>
|
||||
<text text-anchor="start" x="235" y="-306.5" font-family="Helvetica,sans-Serif" font-size="10.00">probability::windowed</text>
|
||||
<text text-anchor="start" x="235" y="-295.5" font-family="Helvetica,sans-Serif" font-size="10.00">_median::WindowedMedian</text>
|
||||
<text text-anchor="middle" x="297" y="-284.5" font-family="Helvetica,sans-Serif" font-size="10.00">::getMedian</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node7->Node8 -->
|
||||
<g id="edge7" class="edge">
|
||||
<title>Node7->Node8</title>
|
||||
<path fill="none" stroke="midnightblue" d="M149.2,-242.94C160.8,-246.65 176.95,-251.94 191,-257 205.5,-262.22 221.01,-268.11 235.55,-273.76"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="234.35,-277.05 244.94,-277.43 236.9,-270.53 234.35,-277.05"/>
|
||||
</g>
|
||||
<!-- Node9 -->
|
||||
<g id="node9" class="node">
|
||||
<title>Node9</title>
|
||||
<g id="a_node9"><a xlink:href="../../df/d34/classprobability_1_1windowed__median_1_1_windowed_median.html#a61804988fcb1a6caf640f8291979aaa6" target="_top" xlink:title="A naive and inefficient method to obtain the median of the sliding window. Used for testing!">
|
||||
<polygon fill="white" stroke="black" points="227,-217.5 227,-258.5 367,-258.5 367,-217.5 227,-217.5"/>
|
||||
<text text-anchor="start" x="235" y="-246.5" font-family="Helvetica,sans-Serif" font-size="10.00">probability::windowed</text>
|
||||
<text text-anchor="start" x="235" y="-235.5" font-family="Helvetica,sans-Serif" font-size="10.00">_median::WindowedMedian</text>
|
||||
<text text-anchor="middle" x="297" y="-224.5" font-family="Helvetica,sans-Serif" font-size="10.00">::getMedianNaive</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node7->Node9 -->
|
||||
<g id="edge8" class="edge">
|
||||
<title>Node7->Node9</title>
|
||||
<path fill="none" stroke="midnightblue" d="M149.08,-238C165,-238 190.97,-238 216.67,-238"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="216.87,-241.5 226.87,-238 216.87,-234.5 216.87,-241.5"/>
|
||||
</g>
|
||||
<!-- Node11 -->
|
||||
<g id="node11" class="node">
|
||||
<title>Node11</title>
|
||||
<g id="a_node11"><a xlink:href="../../df/d34/classprobability_1_1windowed__median_1_1_windowed_median.html#a6b52b7851750f28d53508e63c52a69f7" target="_top" xlink:title="Insert a new value to the stream.">
|
||||
<polygon fill="white" stroke="black" points="227,-114.5 227,-155.5 367,-155.5 367,-114.5 227,-114.5"/>
|
||||
<text text-anchor="start" x="235" y="-143.5" font-family="Helvetica,sans-Serif" font-size="10.00">probability::windowed</text>
|
||||
<text text-anchor="start" x="235" y="-132.5" font-family="Helvetica,sans-Serif" font-size="10.00">_median::WindowedMedian</text>
|
||||
<text text-anchor="middle" x="297" y="-121.5" font-family="Helvetica,sans-Serif" font-size="10.00">::insert</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node7->Node11 -->
|
||||
<g id="edge10" class="edge">
|
||||
<title>Node7->Node11</title>
|
||||
<path fill="none" stroke="midnightblue" d="M149.25,-234.42C161.16,-231.33 177.69,-226.22 191,-219 219.08,-203.77 247.14,-180.82 267.18,-162.76"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="269.71,-165.19 274.72,-155.85 264.98,-160.03 269.71,-165.19"/>
|
||||
</g>
|
||||
<!-- Node10 -->
|
||||
<g id="node10" class="node">
|
||||
<title>Node10</title>
|
||||
<g id="a_node10"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/sort.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="black" points="438,-272.5 438,-291.5 508,-291.5 508,-272.5 438,-272.5"/>
|
||||
<text text-anchor="middle" x="473" y="-279.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::sort</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node9->Node10 -->
|
||||
<g id="edge9" class="edge">
|
||||
<title>Node9->Node10</title>
|
||||
<path fill="none" stroke="midnightblue" d="M367.02,-255.45C387.51,-260.64 409.4,-266.17 427.86,-270.84"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="427.17,-274.27 437.73,-273.33 428.89,-267.49 427.17,-274.27"/>
|
||||
</g>
|
||||
<!-- Node12 -->
|
||||
<g id="node12" class="node">
|
||||
<title>Node12</title>
|
||||
<g id="a_node12"><a xlink:href="../../df/d34/classprobability_1_1windowed__median_1_1_windowed_median.html#af544e271ea19a6fd69a6b3ed6816453e" target="_top" xlink:title="Erases a value from a sorted multi-value BST.">
|
||||
<polygon fill="white" stroke="black" points="403,-212.5 403,-253.5 543,-253.5 543,-212.5 403,-212.5"/>
|
||||
<text text-anchor="start" x="411" y="-241.5" font-family="Helvetica,sans-Serif" font-size="10.00">probability::windowed</text>
|
||||
<text text-anchor="start" x="411" y="-230.5" font-family="Helvetica,sans-Serif" font-size="10.00">_median::WindowedMedian</text>
|
||||
<text text-anchor="middle" x="473" y="-219.5" font-family="Helvetica,sans-Serif" font-size="10.00">::eraseFromSorted</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node11->Node12 -->
|
||||
<g id="edge11" class="edge">
|
||||
<title>Node11->Node12</title>
|
||||
<path fill="none" stroke="midnightblue" d="M327.08,-155.68C347.73,-169.91 376.4,-188.73 403,-203 406.24,-204.74 409.6,-206.46 413.02,-208.14"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="411.62,-211.35 422.16,-212.5 414.64,-205.03 411.62,-211.35"/>
|
||||
</g>
|
||||
<!-- Node13 -->
|
||||
<g id="node13" class="node">
|
||||
<title>Node13</title>
|
||||
<g id="a_node13"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/front.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="black" points="436.5,-174.5 436.5,-193.5 509.5,-193.5 509.5,-174.5 436.5,-174.5"/>
|
||||
<text text-anchor="middle" x="473" y="-181.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::front</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node11->Node13 -->
|
||||
<g id="edge12" class="edge">
|
||||
<title>Node11->Node13</title>
|
||||
<path fill="none" stroke="midnightblue" d="M367.16,-154.86C379.11,-158.26 391.41,-161.75 403,-165 410.91,-167.22 419.34,-169.56 427.49,-171.81"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="426.66,-175.21 437.23,-174.5 428.52,-168.47 426.66,-175.21"/>
|
||||
</g>
|
||||
<!-- Node14 -->
|
||||
<g id="node14" class="node">
|
||||
<title>Node14</title>
|
||||
<g id="a_node14"><a xlink:href="../../df/d34/classprobability_1_1windowed__median_1_1_windowed_median.html#a3a7f57679e9cd6c9f042dfd0612b2b24" target="_top" xlink:title="Inserts a value to a sorted multi-value BST.">
|
||||
<polygon fill="white" stroke="black" points="403,-114.5 403,-155.5 543,-155.5 543,-114.5 403,-114.5"/>
|
||||
<text text-anchor="start" x="411" y="-143.5" font-family="Helvetica,sans-Serif" font-size="10.00">probability::windowed</text>
|
||||
<text text-anchor="start" x="411" y="-132.5" font-family="Helvetica,sans-Serif" font-size="10.00">_median::WindowedMedian</text>
|
||||
<text text-anchor="middle" x="473" y="-121.5" font-family="Helvetica,sans-Serif" font-size="10.00">::insertToSorted</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node11->Node14 -->
|
||||
<g id="edge13" class="edge">
|
||||
<title>Node11->Node14</title>
|
||||
<path fill="none" stroke="midnightblue" d="M367.02,-135C375.48,-135 384.17,-135 392.76,-135"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="392.78,-138.5 402.78,-135 392.78,-131.5 392.78,-138.5"/>
|
||||
</g>
|
||||
<!-- Node15 -->
|
||||
<g id="node15" class="node">
|
||||
<title>Node15</title>
|
||||
<g id="a_node15"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/pop_front.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="black" points="425.5,-76.5 425.5,-95.5 520.5,-95.5 520.5,-76.5 425.5,-76.5"/>
|
||||
<text text-anchor="middle" x="473" y="-83.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::pop_front</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node11->Node15 -->
|
||||
<g id="edge14" class="edge">
|
||||
<title>Node11->Node15</title>
|
||||
<path fill="none" stroke="midnightblue" d="M367.16,-115.14C379.11,-111.74 391.41,-108.25 403,-105 410.91,-102.78 419.34,-100.44 427.49,-98.19"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="428.52,-101.53 437.23,-95.5 426.66,-94.79 428.52,-101.53"/>
|
||||
</g>
|
||||
<!-- Node16 -->
|
||||
<g id="node16" class="node">
|
||||
<title>Node16</title>
|
||||
<g id="a_node16"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/push_back.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="black" points="422,-38.5 422,-57.5 524,-57.5 524,-38.5 422,-38.5"/>
|
||||
<text text-anchor="middle" x="473" y="-45.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::push_back</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node11->Node16 -->
|
||||
<g id="edge15" class="edge">
|
||||
<title>Node11->Node16</title>
|
||||
<path fill="none" stroke="midnightblue" d="M324.75,-114.38C345.22,-99.44 374.66,-79.71 403,-67 408.3,-64.62 413.97,-62.48 419.69,-60.56"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="420.82,-63.88 429.32,-57.55 418.73,-57.2 420.82,-63.88"/>
|
||||
</g>
|
||||
<!-- Node17 -->
|
||||
<g id="node17" class="node">
|
||||
<title>Node17</title>
|
||||
<g id="a_node17"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/size.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="black" points="437.5,-0.5 437.5,-19.5 508.5,-19.5 508.5,-0.5 437.5,-0.5"/>
|
||||
<text text-anchor="middle" x="473" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::size</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node11->Node17 -->
|
||||
<g id="edge16" class="edge">
|
||||
<title>Node11->Node17</title>
|
||||
<path fill="none" stroke="midnightblue" d="M313.05,-114.25C331.56,-90.22 365.22,-51.11 403,-29 410.48,-24.63 419,-21.22 427.44,-18.59"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="428.57,-21.91 437.25,-15.84 426.68,-15.17 428.57,-21.91"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
<g id="navigator" transform="translate(0 0)" fill="#404254">
|
||||
<rect fill="#f2f5e9" fill-opacity="0.5" stroke="#606060" stroke-width=".5" x="0" y="0" width="60" height="60"/>
|
||||
<use id="zoomplus" xlink:href="#zoomPlus" x="17" y="9" onmousedown="handleZoom(evt,'in')"/>
|
||||
<use id="zoomminus" xlink:href="#zoomMin" x="42" y="9" onmousedown="handleZoom(evt,'out')"/>
|
||||
<use id="reset" xlink:href="#resetDef" x="30" y="36" onmousedown="handleReset()"/>
|
||||
<g id="arrowUp" xlink:href="#dirArrow" transform="translate(30 24)" onmousedown="handlePan(0,-1)">
|
||||
<use xlink:href="#rim" fill="#404040">
|
||||
<set attributeName="fill" to="#808080" begin="arrowUp.mouseover" end="arrowUp.mouseout"/>
|
||||
</use>
|
||||
<path fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
|
||||
</g>
|
||||
<g id="arrowRight" xlink:href="#dirArrow" transform="rotate(90) translate(36 -43)" onmousedown="handlePan(1,0)">
|
||||
<use xlink:href="#rim" fill="#404040">
|
||||
<set attributeName="fill" to="#808080" begin="arrowRight.mouseover" end="arrowRight.mouseout"/>
|
||||
</use>
|
||||
<path fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
|
||||
</g>
|
||||
<g id="arrowDown" xlink:href="#dirArrow" transform="rotate(180) translate(-30 -48)" onmousedown="handlePan(0,1)">
|
||||
<use xlink:href="#rim" fill="#404040">
|
||||
<set attributeName="fill" to="#808080" begin="arrowDown.mouseover" end="arrowDown.mouseout"/>
|
||||
</use>
|
||||
<path fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
|
||||
</g>
|
||||
<g id="arrowLeft" xlink:href="#dirArrow" transform="rotate(270) translate(-36 17)" onmousedown="handlePan(-1,0)">
|
||||
<use xlink:href="#rim" fill="#404040">
|
||||
<set attributeName="fill" to="#808080" begin="arrowLeft.mouseover" end="arrowLeft.mouseout"/>
|
||||
</use>
|
||||
<path fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
|
||||
</g>
|
||||
</g>
|
||||
<svg viewBox="0 0 15 15" width="100%" height="30px" preserveAspectRatio="xMaxYMin meet">
|
||||
<g id="arrow_out" transform="scale(0.3 0.3)">
|
||||
<a xlink:href="windowed__median_8cpp_ac0f2228420376f4db7e1274f2b41667c_cgraph_org.svg" target="_base">
|
||||
<rect id="button" ry="5" rx="5" y="6" x="6" height="38" width="38"
|
||||
fill="#f2f5e9" fill-opacity="0.5" stroke="#606060" stroke-width="1.0"/>
|
||||
<path id="arrow"
|
||||
d="M 11.500037,31.436501 C 11.940474,20.09759 22.043105,11.32322 32.158766,21.979434 L 37.068811,17.246167 C 37.068811,17.246167 37.088388,32 37.088388,32 L 22.160133,31.978069 C 22.160133,31.978069 26.997745,27.140456 26.997745,27.140456 C 18.528582,18.264221 13.291696,25.230495 11.500037,31.436501 z"
|
||||
style="fill:#404040;"/>
|
||||
</a>
|
||||
</g>
|
||||
</svg>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 21 KiB |
@@ -0,0 +1,287 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
|
||||
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<!-- Generated by graphviz version 2.49.1 (20210923.0004)
|
||||
-->
|
||||
<!-- Title: main Pages: 1 -->
|
||||
<svg width="551pt" height="446pt"
|
||||
viewBox="0.00 0.00 551.00 446.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 442)">
|
||||
<title>main</title>
|
||||
<polygon fill="white" stroke="transparent" points="-4,4 -4,-442 547,-442 547,4 -4,4"/>
|
||||
<!-- Node1 -->
|
||||
<g id="node1" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_node1"><a xlink:title="Main function.">
|
||||
<polygon fill="#bfbfbf" stroke="black" points="0,-304.5 0,-323.5 38,-323.5 38,-304.5 0,-304.5"/>
|
||||
<text text-anchor="middle" x="19" y="-311.5" font-family="Helvetica,sans-Serif" font-size="10.00">main</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2 -->
|
||||
<g id="node2" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_node2"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/clear.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="black" points="87.5,-418.5 87.5,-437.5 177.5,-437.5 177.5,-418.5 87.5,-418.5"/>
|
||||
<text text-anchor="middle" x="132.5" y="-425.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::clear</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<path fill="none" stroke="midnightblue" d="M22.86,-323.62C29.03,-342.7 45.39,-385.55 74,-409 76.06,-410.69 78.28,-412.23 80.61,-413.64"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="79.48,-417 89.98,-418.42 82.66,-410.76 79.48,-417"/>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="node3" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_node3"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/push_back.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="black" points="74,-380.5 74,-399.5 191,-399.5 191,-380.5 74,-380.5"/>
|
||||
<text text-anchor="middle" x="132.5" y="-387.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::push_back</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node3 -->
|
||||
<g id="edge2" class="edge">
|
||||
<title>Node1->Node3</title>
|
||||
<path fill="none" stroke="midnightblue" d="M26.91,-323.88C36.23,-336.52 53.98,-358.28 74,-371 77.16,-373.01 80.55,-374.82 84.05,-376.46"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="82.9,-379.77 93.48,-380.4 85.6,-373.31 82.9,-379.77"/>
|
||||
</g>
|
||||
<!-- Node4 -->
|
||||
<g id="node4" class="node">
|
||||
<title>Node4</title>
|
||||
<g id="a_node4"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/numeric/random/rand.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="black" points="105,-342.5 105,-361.5 160,-361.5 160,-342.5 105,-342.5"/>
|
||||
<text text-anchor="middle" x="132.5" y="-349.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::rand</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node4 -->
|
||||
<g id="edge3" class="edge">
|
||||
<title>Node1->Node4</title>
|
||||
<path fill="none" stroke="midnightblue" d="M38.46,-320.6C48.88,-324.29 62.15,-328.96 74,-333 80.75,-335.3 87.97,-337.72 94.92,-340.03"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="94.25,-343.49 104.84,-343.31 96.44,-336.85 94.25,-343.49"/>
|
||||
</g>
|
||||
<!-- Node5 -->
|
||||
<g id="node5" class="node">
|
||||
<title>Node5</title>
|
||||
<g id="a_node5"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/reserve.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="black" points="81.5,-304.5 81.5,-323.5 183.5,-323.5 183.5,-304.5 81.5,-304.5"/>
|
||||
<text text-anchor="middle" x="132.5" y="-311.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::reserve</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node5 -->
|
||||
<g id="edge4" class="edge">
|
||||
<title>Node1->Node5</title>
|
||||
<path fill="none" stroke="midnightblue" d="M38.41,-314C47.59,-314 59.28,-314 71.24,-314"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="71.3,-317.5 81.3,-314 71.3,-310.5 71.3,-317.5"/>
|
||||
</g>
|
||||
<!-- Node6 -->
|
||||
<g id="node6" class="node">
|
||||
<title>Node6</title>
|
||||
<g id="a_node6"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/numeric/random/srand.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="black" points="102.5,-266.5 102.5,-285.5 162.5,-285.5 162.5,-266.5 102.5,-266.5"/>
|
||||
<text text-anchor="middle" x="132.5" y="-273.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::srand</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node6 -->
|
||||
<g id="edge5" class="edge">
|
||||
<title>Node1->Node6</title>
|
||||
<path fill="none" stroke="midnightblue" d="M38.46,-307.4C48.88,-303.71 62.15,-299.04 74,-295 80.01,-292.95 86.38,-290.81 92.61,-288.74"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="93.82,-292.02 102.21,-285.56 91.62,-285.38 93.82,-292.02"/>
|
||||
</g>
|
||||
<!-- Node7 -->
|
||||
<g id="node7" class="node">
|
||||
<title>Node7</title>
|
||||
<g id="a_node7"><a xlink:href="../../d1/ded/windowed__median_8cpp.html#a6dc652a36ea42ba262c4e4236e3e6601" target="_top" xlink:title="namespace probability">
|
||||
<polygon fill="white" stroke="black" points="116,-228.5 116,-247.5 149,-247.5 149,-228.5 116,-228.5"/>
|
||||
<text text-anchor="middle" x="132.5" y="-235.5" font-family="Helvetica,sans-Serif" font-size="10.00">test</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node7 -->
|
||||
<g id="edge6" class="edge">
|
||||
<title>Node1->Node7</title>
|
||||
<path fill="none" stroke="midnightblue" d="M26.91,-304.12C36.23,-291.48 53.98,-269.72 74,-257 83.72,-250.83 95.64,-246.46 106.11,-243.48"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="107.14,-246.83 115.95,-240.95 105.4,-240.05 107.14,-246.83"/>
|
||||
</g>
|
||||
<!-- Node18 -->
|
||||
<g id="node18" class="node">
|
||||
<title>Node18</title>
|
||||
<g id="a_node18"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/chrono/c/time.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="black" points="105.5,-190.5 105.5,-209.5 159.5,-209.5 159.5,-190.5 105.5,-190.5"/>
|
||||
<text text-anchor="middle" x="132.5" y="-197.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::time</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node18 -->
|
||||
<g id="edge17" class="edge">
|
||||
<title>Node1->Node18</title>
|
||||
<path fill="none" stroke="midnightblue" d="M22.86,-304.38C29.03,-285.3 45.39,-242.45 74,-219 80.29,-213.85 88.03,-210.07 95.76,-207.31"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="96.92,-210.62 105.45,-204.34 94.87,-203.93 96.92,-210.62"/>
|
||||
</g>
|
||||
<!-- Node8 -->
|
||||
<g id="node8" class="node">
|
||||
<title>Node8</title>
|
||||
<g id="a_node8"><a xlink:href="../../df/d34/classprobability_1_1windowed__median_1_1_windowed_median.html#a938cafbdf70dc01e86e9bb12d29ec65d" target="_top" xlink:title="Gets the median of the values in the sliding window.">
|
||||
<polygon fill="white" stroke="black" points="227,-277.5 227,-318.5 367,-318.5 367,-277.5 227,-277.5"/>
|
||||
<text text-anchor="start" x="235" y="-306.5" font-family="Helvetica,sans-Serif" font-size="10.00">probability::windowed</text>
|
||||
<text text-anchor="start" x="235" y="-295.5" font-family="Helvetica,sans-Serif" font-size="10.00">_median::WindowedMedian</text>
|
||||
<text text-anchor="middle" x="297" y="-284.5" font-family="Helvetica,sans-Serif" font-size="10.00">::getMedian</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node7->Node8 -->
|
||||
<g id="edge7" class="edge">
|
||||
<title>Node7->Node8</title>
|
||||
<path fill="none" stroke="midnightblue" d="M149.2,-242.94C160.8,-246.65 176.95,-251.94 191,-257 205.5,-262.22 221.01,-268.11 235.55,-273.76"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="234.35,-277.05 244.94,-277.43 236.9,-270.53 234.35,-277.05"/>
|
||||
</g>
|
||||
<!-- Node9 -->
|
||||
<g id="node9" class="node">
|
||||
<title>Node9</title>
|
||||
<g id="a_node9"><a xlink:href="../../df/d34/classprobability_1_1windowed__median_1_1_windowed_median.html#a61804988fcb1a6caf640f8291979aaa6" target="_top" xlink:title="A naive and inefficient method to obtain the median of the sliding window. Used for testing!">
|
||||
<polygon fill="white" stroke="black" points="227,-217.5 227,-258.5 367,-258.5 367,-217.5 227,-217.5"/>
|
||||
<text text-anchor="start" x="235" y="-246.5" font-family="Helvetica,sans-Serif" font-size="10.00">probability::windowed</text>
|
||||
<text text-anchor="start" x="235" y="-235.5" font-family="Helvetica,sans-Serif" font-size="10.00">_median::WindowedMedian</text>
|
||||
<text text-anchor="middle" x="297" y="-224.5" font-family="Helvetica,sans-Serif" font-size="10.00">::getMedianNaive</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node7->Node9 -->
|
||||
<g id="edge8" class="edge">
|
||||
<title>Node7->Node9</title>
|
||||
<path fill="none" stroke="midnightblue" d="M149.08,-238C165,-238 190.97,-238 216.67,-238"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="216.87,-241.5 226.87,-238 216.87,-234.5 216.87,-241.5"/>
|
||||
</g>
|
||||
<!-- Node11 -->
|
||||
<g id="node11" class="node">
|
||||
<title>Node11</title>
|
||||
<g id="a_node11"><a xlink:href="../../df/d34/classprobability_1_1windowed__median_1_1_windowed_median.html#a6b52b7851750f28d53508e63c52a69f7" target="_top" xlink:title="Insert a new value to the stream.">
|
||||
<polygon fill="white" stroke="black" points="227,-114.5 227,-155.5 367,-155.5 367,-114.5 227,-114.5"/>
|
||||
<text text-anchor="start" x="235" y="-143.5" font-family="Helvetica,sans-Serif" font-size="10.00">probability::windowed</text>
|
||||
<text text-anchor="start" x="235" y="-132.5" font-family="Helvetica,sans-Serif" font-size="10.00">_median::WindowedMedian</text>
|
||||
<text text-anchor="middle" x="297" y="-121.5" font-family="Helvetica,sans-Serif" font-size="10.00">::insert</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node7->Node11 -->
|
||||
<g id="edge10" class="edge">
|
||||
<title>Node7->Node11</title>
|
||||
<path fill="none" stroke="midnightblue" d="M149.25,-234.42C161.16,-231.33 177.69,-226.22 191,-219 219.08,-203.77 247.14,-180.82 267.18,-162.76"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="269.71,-165.19 274.72,-155.85 264.98,-160.03 269.71,-165.19"/>
|
||||
</g>
|
||||
<!-- Node10 -->
|
||||
<g id="node10" class="node">
|
||||
<title>Node10</title>
|
||||
<g id="a_node10"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/sort.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="black" points="438,-272.5 438,-291.5 508,-291.5 508,-272.5 438,-272.5"/>
|
||||
<text text-anchor="middle" x="473" y="-279.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::sort</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node9->Node10 -->
|
||||
<g id="edge9" class="edge">
|
||||
<title>Node9->Node10</title>
|
||||
<path fill="none" stroke="midnightblue" d="M367.02,-255.45C387.51,-260.64 409.4,-266.17 427.86,-270.84"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="427.17,-274.27 437.73,-273.33 428.89,-267.49 427.17,-274.27"/>
|
||||
</g>
|
||||
<!-- Node12 -->
|
||||
<g id="node12" class="node">
|
||||
<title>Node12</title>
|
||||
<g id="a_node12"><a xlink:href="../../df/d34/classprobability_1_1windowed__median_1_1_windowed_median.html#af544e271ea19a6fd69a6b3ed6816453e" target="_top" xlink:title="Erases a value from a sorted multi-value BST.">
|
||||
<polygon fill="white" stroke="black" points="403,-212.5 403,-253.5 543,-253.5 543,-212.5 403,-212.5"/>
|
||||
<text text-anchor="start" x="411" y="-241.5" font-family="Helvetica,sans-Serif" font-size="10.00">probability::windowed</text>
|
||||
<text text-anchor="start" x="411" y="-230.5" font-family="Helvetica,sans-Serif" font-size="10.00">_median::WindowedMedian</text>
|
||||
<text text-anchor="middle" x="473" y="-219.5" font-family="Helvetica,sans-Serif" font-size="10.00">::eraseFromSorted</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node11->Node12 -->
|
||||
<g id="edge11" class="edge">
|
||||
<title>Node11->Node12</title>
|
||||
<path fill="none" stroke="midnightblue" d="M327.08,-155.68C347.73,-169.91 376.4,-188.73 403,-203 406.24,-204.74 409.6,-206.46 413.02,-208.14"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="411.62,-211.35 422.16,-212.5 414.64,-205.03 411.62,-211.35"/>
|
||||
</g>
|
||||
<!-- Node13 -->
|
||||
<g id="node13" class="node">
|
||||
<title>Node13</title>
|
||||
<g id="a_node13"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/front.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="black" points="436.5,-174.5 436.5,-193.5 509.5,-193.5 509.5,-174.5 436.5,-174.5"/>
|
||||
<text text-anchor="middle" x="473" y="-181.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::front</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node11->Node13 -->
|
||||
<g id="edge12" class="edge">
|
||||
<title>Node11->Node13</title>
|
||||
<path fill="none" stroke="midnightblue" d="M367.16,-154.86C379.11,-158.26 391.41,-161.75 403,-165 410.91,-167.22 419.34,-169.56 427.49,-171.81"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="426.66,-175.21 437.23,-174.5 428.52,-168.47 426.66,-175.21"/>
|
||||
</g>
|
||||
<!-- Node14 -->
|
||||
<g id="node14" class="node">
|
||||
<title>Node14</title>
|
||||
<g id="a_node14"><a xlink:href="../../df/d34/classprobability_1_1windowed__median_1_1_windowed_median.html#a3a7f57679e9cd6c9f042dfd0612b2b24" target="_top" xlink:title="Inserts a value to a sorted multi-value BST.">
|
||||
<polygon fill="white" stroke="black" points="403,-114.5 403,-155.5 543,-155.5 543,-114.5 403,-114.5"/>
|
||||
<text text-anchor="start" x="411" y="-143.5" font-family="Helvetica,sans-Serif" font-size="10.00">probability::windowed</text>
|
||||
<text text-anchor="start" x="411" y="-132.5" font-family="Helvetica,sans-Serif" font-size="10.00">_median::WindowedMedian</text>
|
||||
<text text-anchor="middle" x="473" y="-121.5" font-family="Helvetica,sans-Serif" font-size="10.00">::insertToSorted</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node11->Node14 -->
|
||||
<g id="edge13" class="edge">
|
||||
<title>Node11->Node14</title>
|
||||
<path fill="none" stroke="midnightblue" d="M367.02,-135C375.48,-135 384.17,-135 392.76,-135"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="392.78,-138.5 402.78,-135 392.78,-131.5 392.78,-138.5"/>
|
||||
</g>
|
||||
<!-- Node15 -->
|
||||
<g id="node15" class="node">
|
||||
<title>Node15</title>
|
||||
<g id="a_node15"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/pop_front.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="black" points="425.5,-76.5 425.5,-95.5 520.5,-95.5 520.5,-76.5 425.5,-76.5"/>
|
||||
<text text-anchor="middle" x="473" y="-83.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::pop_front</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node11->Node15 -->
|
||||
<g id="edge14" class="edge">
|
||||
<title>Node11->Node15</title>
|
||||
<path fill="none" stroke="midnightblue" d="M367.16,-115.14C379.11,-111.74 391.41,-108.25 403,-105 410.91,-102.78 419.34,-100.44 427.49,-98.19"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="428.52,-101.53 437.23,-95.5 426.66,-94.79 428.52,-101.53"/>
|
||||
</g>
|
||||
<!-- Node16 -->
|
||||
<g id="node16" class="node">
|
||||
<title>Node16</title>
|
||||
<g id="a_node16"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/push_back.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="black" points="422,-38.5 422,-57.5 524,-57.5 524,-38.5 422,-38.5"/>
|
||||
<text text-anchor="middle" x="473" y="-45.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::push_back</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node11->Node16 -->
|
||||
<g id="edge15" class="edge">
|
||||
<title>Node11->Node16</title>
|
||||
<path fill="none" stroke="midnightblue" d="M324.75,-114.38C345.22,-99.44 374.66,-79.71 403,-67 408.3,-64.62 413.97,-62.48 419.69,-60.56"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="420.82,-63.88 429.32,-57.55 418.73,-57.2 420.82,-63.88"/>
|
||||
</g>
|
||||
<!-- Node17 -->
|
||||
<g id="node17" class="node">
|
||||
<title>Node17</title>
|
||||
<g id="a_node17"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/size.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="black" points="437.5,-0.5 437.5,-19.5 508.5,-19.5 508.5,-0.5 437.5,-0.5"/>
|
||||
<text text-anchor="middle" x="473" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::size</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node11->Node17 -->
|
||||
<g id="edge16" class="edge">
|
||||
<title>Node11->Node17</title>
|
||||
<path fill="none" stroke="midnightblue" d="M313.05,-114.25C331.56,-90.22 365.22,-51.11 403,-29 410.48,-24.63 419,-21.22 427.44,-18.59"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="428.57,-21.91 437.25,-15.84 426.68,-15.17 428.57,-21.91"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 16 KiB |
Reference in New Issue
Block a user