<!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: generatingPoints.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('generating_points_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">generatingPoints.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="generating_points_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 _generatingPoints_h_</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#define _generatingPoints_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="structures_8h.html">structures.h</a>&quot;</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#include &lt;random&gt;</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="distributions_8h.html">distributions.h</a>&quot;</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;</div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;std::vector&lt;Point&gt; <a class="code" href="generating_points_8h.html#a22991db6b15a6147e875c27a84402d4c">discretizeLineOfIntersection</a>(<span class="keywordtype">double</span> *pt1, <span class="keywordtype">double</span> *pt2, <span class="keywordtype">double</span> dist);</div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="keyword">struct </span><a class="code" href="struct_point.html">Point</a> <a class="code" href="generating_points_8h.html#adb658797956583856890236f9d922f72">lineFunction3D</a>(double *v, <span class="keywordtype">double</span> *point, <span class="keywordtype">double</span> t);</div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="keywordtype">double</span> *<a class="code" href="generating_points_8h.html#a2f7b981bd314f565407a2db0358bf81b">fisherDistribution</a>(<span class="keywordtype">double</span> theta, <span class="keywordtype">double</span> phi, <span class="keywordtype">double</span> kappa, std::mt19937_64 &amp;generator);</div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="keywordtype">double</span> *<a class="code" href="generating_points_8h.html#a152eb5ef32d8e1dd69785a1e05d9c8c0">randomTranslation</a>(std::mt19937_64 &amp;generator, <span class="keywordtype">float</span> xMin, <span class="keywordtype">float</span> xMax, <span class="keywordtype">float</span> yMin, <span class="keywordtype">float</span> yMax, <span class="keywordtype">float</span> zMin, <span class="keywordtype">float</span> zMax);</div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="keywordtype">float</span> <a class="code" href="generating_points_8h.html#a132e593f161b095ca9de50bdc85a3a77">truncatedPowerLaw</a>(<span class="keywordtype">float</span> randomNum, <span class="keywordtype">float</span> <a class="code" href="input_8h.html#ae8063269aec74ddb855e2df228706c4f">emin</a>, <span class="keywordtype">float</span> <a class="code" href="input_8h.html#a672ea0daa9847198dd1ab922ca7106af">emax</a>, <span class="keywordtype">float</span> alpha);</div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="keywordtype">void</span> <a class="code" href="generating_points_8h.html#a15a7dfd1320eb3c7c3cc2c53ed4ba2c1">generateTheta</a>(<span class="keywordtype">float</span> * &amp;thetaArray, <span class="keywordtype">float</span> aspectRatio, <span class="keywordtype">int</span> nPoints);</div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="keywordtype">bool</span> <a class="code" href="generating_points_8h.html#aa3af81bf42f3459e297870e04f2966c0">greaterThan</a>(<span class="keywordtype">float</span> i, <span class="keywordtype">float</span> j);</div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;</div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment">/*****************************/</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment">/* Returns max value from array */</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">/*template &lt;typename T&gt;</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment">T max(T *ary, int size){</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment">    T max = ary[0];</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment">    for (int i = 1; i &lt; size; i++){</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment">        if (max &lt; ary[i]){</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment">            max = ary[i];</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment">        }</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment">    }</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="comment">    return max;</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment">}*/</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="generating_points_8h_html_adb658797956583856890236f9d922f72"><div class="ttname"><a href="generating_points_8h.html#adb658797956583856890236f9d922f72">lineFunction3D</a></div><div class="ttdeci">struct Point lineFunction3D(double *v, double *point, double t)</div><div class="ttdef"><b>Definition:</b> <a href="generating_points_8cpp_source.html#l00072">generatingPoints.cpp:72</a></div></div>
<div class="ttc" id="distributions_8h_html"><div class="ttname"><a href="distributions_8h.html">distributions.h</a></div></div>
<div class="ttc" id="generating_points_8h_html_a15a7dfd1320eb3c7c3cc2c53ed4ba2c1"><div class="ttname"><a href="generating_points_8h.html#a15a7dfd1320eb3c7c3cc2c53ed4ba2c1">generateTheta</a></div><div class="ttdeci">void generateTheta(float *&amp;thetaArray, float aspectRatio, int nPoints)</div><div class="ttdef"><b>Definition:</b> <a href="generating_points_8cpp_source.html#l00224">generatingPoints.cpp:224</a></div></div>
<div class="ttc" id="struct_point_html"><div class="ttname"><a href="struct_point.html">Point</a></div><div class="ttdef"><b>Definition:</b> <a href="structures_8h_source.html#l00111">structures.h:111</a></div></div>
<div class="ttc" id="input_8h_html_ae8063269aec74ddb855e2df228706c4f"><div class="ttname"><a href="input_8h.html#ae8063269aec74ddb855e2df228706c4f">emin</a></div><div class="ttdeci">float * emin</div><div class="ttdef"><b>Definition:</b> <a href="read_input_8cpp_source.html#l00222">readInput.cpp:222</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="generating_points_8h_html_a2f7b981bd314f565407a2db0358bf81b"><div class="ttname"><a href="generating_points_8h.html#a2f7b981bd314f565407a2db0358bf81b">fisherDistribution</a></div><div class="ttdeci">double * fisherDistribution(double theta, double phi, double kappa, std::mt19937_64 &amp;generator)</div><div class="ttdef"><b>Definition:</b> <a href="generating_points_8cpp_source.html#l00093">generatingPoints.cpp:93</a></div></div>
<div class="ttc" id="input_8h_html_a672ea0daa9847198dd1ab922ca7106af"><div class="ttname"><a href="input_8h.html#a672ea0daa9847198dd1ab922ca7106af">emax</a></div><div class="ttdeci">float * emax</div><div class="ttdef"><b>Definition:</b> <a href="read_input_8cpp_source.html#l00225">readInput.cpp:225</a></div></div>
<div class="ttc" id="generating_points_8h_html_a152eb5ef32d8e1dd69785a1e05d9c8c0"><div class="ttname"><a href="generating_points_8h.html#a152eb5ef32d8e1dd69785a1e05d9c8c0">randomTranslation</a></div><div class="ttdeci">double * randomTranslation(std::mt19937_64 &amp;generator, float xMin, float xMax, float yMin, float yMax, float zMin, float zMax)</div><div class="ttdef"><b>Definition:</b> <a href="generating_points_8cpp_source.html#l00177">generatingPoints.cpp:177</a></div></div>
<div class="ttc" id="generating_points_8h_html_a22991db6b15a6147e875c27a84402d4c"><div class="ttname"><a href="generating_points_8h.html#a22991db6b15a6147e875c27a84402d4c">discretizeLineOfIntersection</a></div><div class="ttdeci">std::vector&lt; Point &gt; discretizeLineOfIntersection(double *pt1, double *pt2, double dist)</div><div class="ttdef"><b>Definition:</b> <a href="generating_points_8cpp_source.html#l00018">generatingPoints.cpp:18</a></div></div>
<div class="ttc" id="generating_points_8h_html_a132e593f161b095ca9de50bdc85a3a77"><div class="ttname"><a href="generating_points_8h.html#a132e593f161b095ca9de50bdc85a3a77">truncatedPowerLaw</a></div><div class="ttdeci">float truncatedPowerLaw(float randomNum, float emin, float emax, float alpha)</div><div class="ttdef"><b>Definition:</b> <a href="generating_points_8cpp_source.html#l00208">generatingPoints.cpp:208</a></div></div>
<div class="ttc" id="generating_points_8h_html_aa3af81bf42f3459e297870e04f2966c0"><div class="ttname"><a href="generating_points_8h.html#aa3af81bf42f3459e297870e04f2966c0">greaterThan</a></div><div class="ttdeci">bool greaterThan(float i, float j)</div><div class="ttdef"><b>Definition:</b> <a href="generating_points_8cpp_source.html#l00263">generatingPoints.cpp:263</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="generating_points_8h.html">generatingPoints.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>
