<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.12"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>DFNgen: distributions.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="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</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">DFNgen
   &#160;<span id="projectnumber">2.0</span>
   </div>
   <div id="projectbrief">DFN Model Generator</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.12 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</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">
$(document).ready(function(){initNavTree('distributions_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">distributions.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="distributions_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>&#160;<span class="preprocessor">#ifndef _distributions_h</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#define _distributions_h</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="exp_dist_8h.html">expDist.h</a>&quot;</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &lt;random&gt;</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="structures_8h.html">structures.h</a>&quot;</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;</div><div class="line"><a name="l00015"></a><span class="lineno"><a class="line" href="class_distributions.html">   15</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_distributions.html">Distributions</a> {</div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;</div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;    <a class="code" href="class_distributions.html#a4b4bf0c5a106c56524960cdfc1a6c526">Distributions</a>(std::mt19937_64 &amp;_generator, std::vector&lt;Shape&gt; &amp;shapeFamilies);</div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;    <a class="code" href="class_distributions.html#a3b578f1ba0cb12278029b3590700c394">~Distributions</a>();</div><div class="line"><a name="l00020"></a><span class="lineno"><a class="line" href="class_distributions.html#aa67e69369161d7b2f6c4c94799f12bf4">   20</a></span>&#160;    <a class="code" href="class_exp_dist.html">ExpDist</a> *<a class="code" href="class_distributions.html#aa67e69369161d7b2f6c4c94799f12bf4">expDist</a>;</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;    </div><div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="class_distributions.html#a8b0b60226ccb10242c0430527bfadd8e">   26</a></span>&#160;    <span class="keywordtype">double</span> <a class="code" href="class_distributions.html#a8b0b60226ccb10242c0430527bfadd8e">maxInput</a>;</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;       </div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="keyword">private</span>: </div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="comment">/*  Calculates the maximum precision in number of digits after the </span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="comment">    decimal place for a number between 0 and 1. */</span></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_distributions.html#af713bd4bcd345464c404e6bd4f4371d9">getMaxDigits</a>();</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;    <span class="comment">// Retrns something like 0.99999... to the maximum precision</span></div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;    <span class="comment">// before becomming considered 1 by the computer</span></div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;    <span class="keywordtype">double</span> <a class="code" href="class_distributions.html#a7137b9d02061018a04100001d370eba4">getMaxDecimalForDouble</a>();</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;    <span class="comment">// See distributions.cpp</span></div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_distributions.html#ae843f03925301fb5f0d4d37de36ca49b">checkDistributionUserInput</a>(std::vector&lt;Shape&gt; &amp;shapeFamilies);</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_distributions.html#a3c71954eae4b00621c39676c6110dd5b">quitOrContinue</a>();</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;};</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="class_distributions_html_a7137b9d02061018a04100001d370eba4"><div class="ttname"><a href="class_distributions.html#a7137b9d02061018a04100001d370eba4">Distributions::getMaxDecimalForDouble</a></div><div class="ttdeci">double getMaxDecimalForDouble()</div><div class="ttdef"><b>Definition:</b> <a href="distributions_8cpp_source.html#l00056">distributions.cpp:56</a></div></div>
<div class="ttc" id="exp_dist_8h_html"><div class="ttname"><a href="exp_dist_8h.html">expDist.h</a></div></div>
<div class="ttc" id="class_distributions_html_a3b578f1ba0cb12278029b3590700c394"><div class="ttname"><a href="class_distributions.html#a3b578f1ba0cb12278029b3590700c394">Distributions::~Distributions</a></div><div class="ttdeci">~Distributions()</div><div class="ttdef"><b>Definition:</b> <a href="distributions_8cpp_source.html#l00194">distributions.cpp:194</a></div></div>
<div class="ttc" id="class_distributions_html_af713bd4bcd345464c404e6bd4f4371d9"><div class="ttname"><a href="class_distributions.html#af713bd4bcd345464c404e6bd4f4371d9">Distributions::getMaxDigits</a></div><div class="ttdeci">int getMaxDigits()</div><div class="ttdef"><b>Definition:</b> <a href="distributions_8cpp_source.html#l00046">distributions.cpp:46</a></div></div>
<div class="ttc" id="structures_8h_html"><div class="ttname"><a href="structures_8h.html">structures.h</a></div></div>
<div class="ttc" id="class_distributions_html_a8b0b60226ccb10242c0430527bfadd8e"><div class="ttname"><a href="class_distributions.html#a8b0b60226ccb10242c0430527bfadd8e">Distributions::maxInput</a></div><div class="ttdeci">double maxInput</div><div class="ttdef"><b>Definition:</b> <a href="distributions_8h_source.html#l00026">distributions.h:26</a></div></div>
<div class="ttc" id="class_distributions_html_ae843f03925301fb5f0d4d37de36ca49b"><div class="ttname"><a href="class_distributions.html#ae843f03925301fb5f0d4d37de36ca49b">Distributions::checkDistributionUserInput</a></div><div class="ttdeci">void checkDistributionUserInput(std::vector&lt; Shape &gt; &amp;shapeFamilies)</div><div class="ttdef"><b>Definition:</b> <a href="distributions_8cpp_source.html#l00095">distributions.cpp:95</a></div></div>
<div class="ttc" id="class_distributions_html_a4b4bf0c5a106c56524960cdfc1a6c526"><div class="ttname"><a href="class_distributions.html#a4b4bf0c5a106c56524960cdfc1a6c526">Distributions::Distributions</a></div><div class="ttdeci">Distributions(std::mt19937_64 &amp;_generator, std::vector&lt; Shape &gt; &amp;shapeFamilies)</div><div class="ttdef"><b>Definition:</b> <a href="distributions_8cpp_source.html#l00030">distributions.cpp:30</a></div></div>
<div class="ttc" id="class_distributions_html"><div class="ttname"><a href="class_distributions.html">Distributions</a></div><div class="ttdef"><b>Definition:</b> <a href="distributions_8h_source.html#l00015">distributions.h:15</a></div></div>
<div class="ttc" id="class_distributions_html_aa67e69369161d7b2f6c4c94799f12bf4"><div class="ttname"><a href="class_distributions.html#aa67e69369161d7b2f6c4c94799f12bf4">Distributions::expDist</a></div><div class="ttdeci">ExpDist * expDist</div><div class="ttdef"><b>Definition:</b> <a href="distributions_8h_source.html#l00020">distributions.h:20</a></div></div>
<div class="ttc" id="class_exp_dist_html"><div class="ttname"><a href="class_exp_dist.html">ExpDist</a></div><div class="ttdef"><b>Definition:</b> <a href="exp_dist_8h_source.html#l00012">expDist.h:12</a></div></div>
<div class="ttc" id="class_distributions_html_a3c71954eae4b00621c39676c6110dd5b"><div class="ttname"><a href="class_distributions.html#a3c71954eae4b00621c39676c6110dd5b">Distributions::quitOrContinue</a></div><div class="ttdeci">void quitOrContinue()</div><div class="ttdef"><b>Definition:</b> <a href="distributions_8cpp_source.html#l00172">distributions.cpp:172</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="distributions_8h.html">distributions.h</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.12 </li>
  </ul>
</div>
</body>
</html>
