<!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: mathFunctions.h 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>
<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('math_functions_8h.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="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">mathFunctions.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><div class="dynheader">
This graph shows which files directly or indirectly include this file:</div>
<div class="dyncontent">
<div class="center"><img src="math_functions_8h__dep__incl.png" border="0" usemap="#math_functions_8hdep" alt=""/></div>
<map name="math_functions_8hdep" id="math_functions_8hdep">
<area shape="rect" id="node2" href="cluster_groups_8cpp.html" title="clusterGroups.cpp" alt="" coords="5,80,136,107"/>
<area shape="rect" id="node3" href="computational_geometry_8cpp.html" title="computationalGeometry.cpp" alt="" coords="160,80,349,107"/>
<area shape="rect" id="node4" href="_d_f_nmain_8cpp.html" title="DFNmain.cpp" alt="" coords="373,80,477,107"/>
<area shape="rect" id="node5" href="fracture_estimating_8cpp.html" title="fractureEstimating.cpp" alt="" coords="501,80,656,107"/>
<area shape="rect" id="node6" href="insert_user_ell_8cpp.html" title="insertUserEll.cpp" alt="" coords="680,80,803,107"/>
<area shape="rect" id="node7" href="insert_user_ell_by_coord_8cpp.html" title="insertUserEllByCoord.cpp" alt="" coords="827,80,1001,107"/>
<area shape="rect" id="node8" href="insert_user_rects_8cpp.html" title="insertUserRects.cpp" alt="" coords="1026,80,1168,107"/>
<area shape="rect" id="node9" href="insert_user_rects_by_coord_8cpp.html" title="insertUserRectsByCoord.cpp" alt="" coords="1193,80,1385,107"/>
<area shape="rect" id="node10" href="math_functions_8cpp.html" title="mathFunctions.cpp" alt="" coords="1410,80,1544,107"/>
<area shape="rect" id="node11" href="output_8cpp.html" title="output.cpp" alt="" coords="1569,80,1652,107"/>
</map>
</div>
</div>
<p><a href="math_functions_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a694596931b8abc5c03fcf4aaa8ecc6fc"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="math_functions_8h.html#a694596931b8abc5c03fcf4aaa8ecc6fc">sumDeviation</a> (const double *data, int n)</td></tr>
<tr class="separator:a694596931b8abc5c03fcf4aaa8ecc6fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3f8a93afe66d001b09ae4094cf9a0b53"><td class="memItemLeft" align="right" valign="top">double *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="math_functions_8h.html#a3f8a93afe66d001b09ae4094cf9a0b53">sumDevAry3</a> (double *data)</td></tr>
<tr class="separator:a3f8a93afe66d001b09ae4094cf9a0b53"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a40bb4a04c41d869d8542458fa32d91ac"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="math_functions_8h.html#a40bb4a04c41d869d8542458fa32d91ac">maxElmtIdx</a> (double *data, int n)</td></tr>
<tr class="separator:a40bb4a04c41d869d8542458fa32d91ac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae8a91d328acce433a539c5550cba001d"><td class="memItemLeft" align="right" valign="top">int *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="math_functions_8h.html#ae8a91d328acce433a539c5550cba001d">sortedIndex</a> (const double *arr, int n)</td></tr>
<tr class="separator:ae8a91d328acce433a539c5550cba001d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a78276693aa55fab858a41366e5b4aa73"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="math_functions_8h.html#a78276693aa55fab858a41366e5b4aa73">getArea</a> (struct <a class="el" href="struct_poly.html">Poly</a> &amp;poly)</td></tr>
<tr class="separator:a78276693aa55fab858a41366e5b4aa73"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5eae1db9cbad8e807a0d677bcd805d36"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="math_functions_8h.html#a5eae1db9cbad8e807a0d677bcd805d36">indexFromProb</a> (float *CDF, double roll, int size)</td></tr>
<tr class="separator:a5eae1db9cbad8e807a0d677bcd805d36"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2540d3ded7bd488a924ce2e4c2443261"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="math_functions_8h.html#a2540d3ded7bd488a924ce2e4c2443261">indexFromProb_and_P32Status</a> (float *CDF, double roll, int famSize, int cdfSize, int &amp;cdfIdx)</td></tr>
<tr class="separator:a2540d3ded7bd488a924ce2e4c2443261"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a55646cd87f15106134e9cb832492e1f6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="math_functions_8h.html#a55646cd87f15106134e9cb832492e1f6">adjustCDF_and_famProb</a> (float *&amp;CDF, float *&amp;famProbability, int &amp;cdfSize, int idx2Remove)</td></tr>
<tr class="separator:a55646cd87f15106134e9cb832492e1f6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9422106ad945a110b0cf696050962556"><td class="memItemLeft" align="right" valign="top">float *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="math_functions_8h.html#a9422106ad945a110b0cf696050962556">createCDF</a> (float *<a class="el" href="read_input_8cpp.html#aeb1032cfdc6f748b280a4a0a59375d11">famProb</a>, int size)</td></tr>
<tr class="separator:a9422106ad945a110b0cf696050962556"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a132e593f161b095ca9de50bdc85a3a77"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="math_functions_8h.html#a132e593f161b095ca9de50bdc85a3a77">truncatedPowerLaw</a> (float randomNum, float <a class="el" href="read_input_8cpp.html#ae8063269aec74ddb855e2df228706c4f">emin</a>, float <a class="el" href="read_input_8cpp.html#a672ea0daa9847198dd1ab922ca7106af">emax</a>, float alpha)</td></tr>
<tr class="separator:a132e593f161b095ca9de50bdc85a3a77"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad67ac7ecedfff7a737cd47a2f63b473a"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="math_functions_8h.html#ad67ac7ecedfff7a737cd47a2f63b473a">cdfIdxFromFamNum</a> (float *CDF, bool *<a class="el" href="read_input_8cpp.html#a9d32f63bd011a629cf644c120e07eda8">p32Status</a>, int famIdx)</td></tr>
<tr class="separator:ad67ac7ecedfff7a737cd47a2f63b473a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaf4979ac027751a7358291353a23b387"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="math_functions_8h.html#aaf4979ac027751a7358291353a23b387">OR</a> (bool *dest, bool *src)</td></tr>
<tr class="separator:aaf4979ac027751a7358291353a23b387"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="a55646cd87f15106134e9cb832492e1f6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a55646cd87f15106134e9cb832492e1f6">&sect;&nbsp;</a></span>adjustCDF_and_famProb()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void adjustCDF_and_famProb </td>
          <td>(</td>
          <td class="paramtype">float *&amp;&#160;</td>
          <td class="paramname"><em>CDF</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float *&amp;&#160;</td>
          <td class="paramname"><em>famProbability</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int &amp;&#160;</td>
          <td class="paramname"><em>cdfSize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>idx2Remove</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Adjusts the CDF and the famProb array. Used with P32 stopping contdition (see input file) When a family's P32 requrement is met, the CDF is adjusted to remove that family from the array. The famProb is also adjusted in the same way. Arg 1: Pointer to CDF array Arg 2: Pointer to famProb array Arg 3: Number of elements in CDF array Arg 4: Index to the element in the famProb array which is being removed </p>

<p>Definition at line <a class="el" href="math_functions_8cpp_source.html#l00269">269</a> of file <a class="el" href="math_functions_8cpp_source.html">mathFunctions.cpp</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="math_functions_8h_a55646cd87f15106134e9cb832492e1f6_cgraph.png" border="0" usemap="#math_functions_8h_a55646cd87f15106134e9cb832492e1f6_cgraph" alt=""/></div>
<map name="math_functions_8h_a55646cd87f15106134e9cb832492e1f6_cgraph" id="math_functions_8h_a55646cd87f15106134e9cb832492e1f6_cgraph">
<area shape="rect" id="node2" href="math_functions_8cpp.html#a9422106ad945a110b0cf696050962556" title="createCDF" alt="" coords="227,5,314,32"/>
</map>
</div>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="math_functions_8h_a55646cd87f15106134e9cb832492e1f6_icgraph.png" border="0" usemap="#math_functions_8h_a55646cd87f15106134e9cb832492e1f6_icgraph" alt=""/></div>
<map name="math_functions_8h_a55646cd87f15106134e9cb832492e1f6_icgraph" id="math_functions_8h_a55646cd87f15106134e9cb832492e1f6_icgraph">
<area shape="rect" id="node2" href="_d_f_nmain_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627" title="main" alt="" coords="341,5,392,32"/>
<area shape="rect" id="node3" href="fracture_estimating_8h.html#a7cf21b594fd24b2879af467e23bdac0a" title="dryRun" alt="" coords="227,31,293,57"/>
</map>
</div>

</div>
</div>
<a id="ad67ac7ecedfff7a737cd47a2f63b473a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad67ac7ecedfff7a737cd47a2f63b473a">&sect;&nbsp;</a></span>cdfIdxFromFamNum()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int cdfIdxFromFamNum </td>
          <td>(</td>
          <td class="paramtype">float *&#160;</td>
          <td class="paramname"><em>CDF</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool *&#160;</td>
          <td class="paramname"><em>p32Status</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>famIdx</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Given a family number, return its corresponding CDF array index Arg 1: CDF array Arg 2: p32Status array Arg 3: Family index of family whos CDF index to return Return: Index of CDF which belongs to shapeFamily[famIdx] </p>

<p>Definition at line <a class="el" href="math_functions_8cpp_source.html#l00221">221</a> of file <a class="el" href="math_functions_8cpp_source.html">mathFunctions.cpp</a>.</p>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="math_functions_8h_ad67ac7ecedfff7a737cd47a2f63b473a_icgraph.png" border="0" usemap="#math_functions_8h_ad67ac7ecedfff7a737cd47a2f63b473a_icgraph" alt=""/></div>
<map name="math_functions_8h_ad67ac7ecedfff7a737cd47a2f63b473a_icgraph" id="math_functions_8h_ad67ac7ecedfff7a737cd47a2f63b473a_icgraph">
<area shape="rect" id="node2" href="fracture_estimating_8h.html#a7cf21b594fd24b2879af467e23bdac0a" title="dryRun" alt="" coords="198,5,263,32"/>
<area shape="rect" id="node3" href="_d_f_nmain_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627" title="main" alt="" coords="312,5,363,32"/>
</map>
</div>

</div>
</div>
<a id="a9422106ad945a110b0cf696050962556"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9422106ad945a110b0cf696050962556">&sect;&nbsp;</a></span>createCDF()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float* createCDF </td>
          <td>(</td>
          <td class="paramtype">float *&#160;</td>
          <td class="paramname"><em>famProb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>size</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Creates CDF from famProb[] Arg 1: Pointer to famProb array (see input file, and readInput()) Arg 2: Size of array </p>

<p>Definition at line <a class="el" href="math_functions_8cpp_source.html#l00244">244</a> of file <a class="el" href="math_functions_8cpp_source.html">mathFunctions.cpp</a>.</p>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="math_functions_8h_a9422106ad945a110b0cf696050962556_icgraph.png" border="0" usemap="#math_functions_8h_a9422106ad945a110b0cf696050962556_icgraph" alt=""/></div>
<map name="math_functions_8h_a9422106ad945a110b0cf696050962556_icgraph" id="math_functions_8h_a9422106ad945a110b0cf696050962556_icgraph">
<area shape="rect" id="node2" href="_d_f_nmain_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627" title="main" alt="" coords="477,29,528,56"/>
<area shape="rect" id="node3" href="fracture_estimating_8h.html#a7cf21b594fd24b2879af467e23bdac0a" title="dryRun" alt="" coords="363,29,429,56"/>
<area shape="rect" id="node4" href="math_functions_8h.html#a55646cd87f15106134e9cb832492e1f6" title="adjustCDF_and_famProb" alt="" coords="142,80,314,106"/>
</map>
</div>

</div>
</div>
<a id="a78276693aa55fab858a41366e5b4aa73"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a78276693aa55fab858a41366e5b4aa73">&sect;&nbsp;</a></span>getArea()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double getArea </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="struct_poly.html">Poly</a> &amp;&#160;</td>
          <td class="paramname"><em>poly</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Calculate exact area of polygon (after truncation) Summar of algorithm: 1: Creates a point on the inside of the polygon (insidePt) 2: Uses 'insidePt' to create vectors to all outside vertices, breaking the polygon into triangles 3: Uses .5 * (magnitude of cross product) for each triangle for area calculation 4: Sums the areas for each trianlge for total area of polygon Arg 1: Polygon Return: Area of polygon </p>

<p>Definition at line <a class="el" href="math_functions_8cpp_source.html#l00110">110</a> of file <a class="el" href="math_functions_8cpp_source.html">mathFunctions.cpp</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="math_functions_8h_a78276693aa55fab858a41366e5b4aa73_cgraph.png" border="0" usemap="#math_functions_8h_a78276693aa55fab858a41366e5b4aa73_cgraph" alt=""/></div>
<map name="math_functions_8h_a78276693aa55fab858a41366e5b4aa73_cgraph" id="math_functions_8h_a78276693aa55fab858a41366e5b4aa73_cgraph">
<area shape="rect" id="node2" href="vector_functions_8h.html#a94303b1c8dd36d71e57fd0e4d5d26ae3" title="crossProduct" alt="" coords="123,5,223,32"/>
<area shape="rect" id="node3" href="vector_functions_8h.html#a92da2058f3ed2a6db16d2fe0e445794a" title="magnitude" alt="" coords="131,56,215,83"/>
</map>
</div>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="math_functions_8h_a78276693aa55fab858a41366e5b4aa73_icgraph.png" border="0" usemap="#math_functions_8h_a78276693aa55fab858a41366e5b4aa73_icgraph" alt=""/></div>
<map name="math_functions_8h_a78276693aa55fab858a41366e5b4aa73_icgraph" id="math_functions_8h_a78276693aa55fab858a41366e5b4aa73_icgraph">
<area shape="rect" id="node2" href="_d_f_nmain_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627" title="main" alt="" coords="341,119,392,145"/>
<area shape="rect" id="node3" href="fracture_estimating_8h.html#a7cf21b594fd24b2879af467e23bdac0a" title="dryRun" alt="" coords="175,43,241,69"/>
<area shape="rect" id="node4" href="insert_user_ell_8cpp.html#a9841b356b0460e297748d6648c301558" title="insertUserEll" alt="" coords="159,93,257,120"/>
<area shape="rect" id="node5" href="insert_user_ell_by_coord_8cpp.html#a49e6b0be012ed44c6ef83ea66ed6dd86" title="insertUserEllByCoord" alt="" coords="133,144,283,171"/>
<area shape="rect" id="node6" href="insert_user_rects_8cpp.html#af69365c2e0148366aabe6751ffc54a79" title="insertUserRects" alt="" coords="149,195,267,221"/>
<area shape="rect" id="node7" href="insert_user_rects_by_coord_8cpp.html#a244f461634679dc91d08da3e183f9b8c" title="insertUserRectsByCoord" alt="" coords="123,245,293,272"/>
</map>
</div>

</div>
</div>
<a id="a5eae1db9cbad8e807a0d677bcd805d36"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5eae1db9cbad8e807a0d677bcd805d36">&sect;&nbsp;</a></span>indexFromProb()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int indexFromProb </td>
          <td>(</td>
          <td class="paramtype">float *&#160;</td>
          <td class="paramname"><em>CDF</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>roll</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>size</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>CDF is 1 to 1 and algined with the stochastic family shapes array (std vector). This chooses the family index based on a random roll (random number between 0 and 1) and 'famProb' Arg 1: CDF of shape families based on famProb array in input file Arg 2: Random number between 0 and 1 Arg 3: Number of elements in 'CDF' array Return: Index to family based on the probability famProb </p>

<p>Definition at line <a class="el" href="math_functions_8cpp_source.html#l00166">166</a> of file <a class="el" href="math_functions_8cpp_source.html">mathFunctions.cpp</a>.</p>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="math_functions_8h_a5eae1db9cbad8e807a0d677bcd805d36_icgraph.png" border="0" usemap="#math_functions_8h_a5eae1db9cbad8e807a0d677bcd805d36_icgraph" alt=""/></div>
<map name="math_functions_8h_a5eae1db9cbad8e807a0d677bcd805d36_icgraph" id="math_functions_8h_a5eae1db9cbad8e807a0d677bcd805d36_icgraph">
<area shape="rect" id="node2" href="_d_f_nmain_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627" title="main" alt="" coords="544,31,595,57"/>
<area shape="rect" id="node3" href="math_functions_8h.html#a2540d3ded7bd488a924ce2e4c2443261" title="indexFromProb_and_P32Status" alt="" coords="169,31,381,57"/>
<area shape="rect" id="node4" href="fracture_estimating_8h.html#a7cf21b594fd24b2879af467e23bdac0a" title="dryRun" alt="" coords="430,81,495,108"/>
</map>
</div>

</div>
</div>
<a id="a2540d3ded7bd488a924ce2e4c2443261"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2540d3ded7bd488a924ce2e4c2443261">&sect;&nbsp;</a></span>indexFromProb_and_P32Status()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int indexFromProb_and_P32Status </td>
          <td>(</td>
          <td class="paramtype">float *&#160;</td>
          <td class="paramname"><em>CDF</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>roll</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>famSize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>cdfSize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int &amp;&#160;</td>
          <td class="paramname"><em>cdfIdx</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Use with fracture intensity (p32) stopping option Arg 1: Pointer to CDF array Arg 2: Random variable between 0 and 1 Arg 3: Number of stochastic families Arg 4: Number of elements in CDF array Arg 5: OUTPUT, index of CDF element which was chosen randomly Return: Index of chosen family based on its family probability, and p32Status (avoids inserting a fracture from a family which has already met it's fracture intensity requrement) </p>

<p>Definition at line <a class="el" href="math_functions_8cpp_source.html#l00187">187</a> of file <a class="el" href="math_functions_8cpp_source.html">mathFunctions.cpp</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="math_functions_8h_a2540d3ded7bd488a924ce2e4c2443261_cgraph.png" border="0" usemap="#math_functions_8h_a2540d3ded7bd488a924ce2e4c2443261_cgraph" alt=""/></div>
<map name="math_functions_8h_a2540d3ded7bd488a924ce2e4c2443261_cgraph" id="math_functions_8h_a2540d3ded7bd488a924ce2e4c2443261_cgraph">
<area shape="rect" id="node2" href="math_functions_8cpp.html#a5eae1db9cbad8e807a0d677bcd805d36" title="indexFromProb" alt="" coords="267,5,381,32"/>
</map>
</div>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="math_functions_8h_a2540d3ded7bd488a924ce2e4c2443261_icgraph.png" border="0" usemap="#math_functions_8h_a2540d3ded7bd488a924ce2e4c2443261_icgraph" alt=""/></div>
<map name="math_functions_8h_a2540d3ded7bd488a924ce2e4c2443261_icgraph" id="math_functions_8h_a2540d3ded7bd488a924ce2e4c2443261_icgraph">
<area shape="rect" id="node2" href="_d_f_nmain_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627" title="main" alt="" coords="381,5,432,32"/>
<area shape="rect" id="node3" href="fracture_estimating_8h.html#a7cf21b594fd24b2879af467e23bdac0a" title="dryRun" alt="" coords="267,31,333,57"/>
</map>
</div>

</div>
</div>
<a id="a40bb4a04c41d869d8542458fa32d91ac"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a40bb4a04c41d869d8542458fa32d91ac">&sect;&nbsp;</a></span>maxElmtIdx()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int maxElmtIdx </td>
          <td>(</td>
          <td class="paramtype">double *&#160;</td>
          <td class="paramname"><em>v</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>n</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Used to find index of element with max value from array4 Used in <a class="el" href="computational_geometry_8cpp.html#a38a8c322dba7d8518a4c3206cd55a5f6">intersectionChecking()</a> Arg 1: Array of doubles Arg 2: Size of array Return: Max element's array index</p>
<p>If elements happen to be equal, returns the first one </p>

<p>Definition at line <a class="el" href="math_functions_8cpp_source.html#l00068">68</a> of file <a class="el" href="math_functions_8cpp_source.html">mathFunctions.cpp</a>.</p>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="math_functions_8h_a40bb4a04c41d869d8542458fa32d91ac_icgraph.png" border="0" usemap="#math_functions_8h_a40bb4a04c41d869d8542458fa32d91ac_icgraph" alt=""/></div>
<map name="math_functions_8h_a40bb4a04c41d869d8542458fa32d91ac_icgraph" id="math_functions_8h_a40bb4a04c41d869d8542458fa32d91ac_icgraph">
<area shape="rect" id="node2" href="computational_geometry_8h.html#a415bf8d3cbc3ccbdf9c8f7bbff35bc96" title="findIntersections" alt="" coords="147,117,266,143"/>
<area shape="rect" id="node3" href="computational_geometry_8h.html#aff243280740a51cada5c0dd94021fb66" title="intersectionChecking" alt="" coords="315,117,461,143"/>
<area shape="rect" id="node4" href="_d_f_nmain_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627" title="main" alt="" coords="728,117,779,143"/>
<area shape="rect" id="node5" href="insert_user_ell_8cpp.html#a9841b356b0460e297748d6648c301558" title="insertUserEll" alt="" coords="546,41,643,67"/>
<area shape="rect" id="node6" href="insert_user_ell_by_coord_8cpp.html#a49e6b0be012ed44c6ef83ea66ed6dd86" title="insertUserEllByCoord" alt="" coords="520,91,669,118"/>
<area shape="rect" id="node7" href="insert_user_rects_8cpp.html#af69365c2e0148366aabe6751ffc54a79" title="insertUserRects" alt="" coords="536,142,653,169"/>
<area shape="rect" id="node8" href="insert_user_rects_by_coord_8cpp.html#a244f461634679dc91d08da3e183f9b8c" title="insertUserRectsByCoord" alt="" coords="510,193,679,219"/>
<area shape="rect" id="node9" href="remove_fractures_8h.html#a016a4a3e0104523549279e6f6cf6c6d8" title="removeFractures" alt="" coords="533,243,656,270"/>
</map>
</div>

</div>
</div>
<a id="aaf4979ac027751a7358291353a23b387"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaf4979ac027751a7358291353a23b387">&sect;&nbsp;</a></span>OR()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void OR </td>
          <td>(</td>
          <td class="paramtype">bool *&#160;</td>
          <td class="paramname"><em>dest</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool *&#160;</td>
          <td class="paramname"><em>src</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Used for ORing arrays of bool for boundary face codes Expectes array size is 6. ORs dest with src, then saves to dest. e.g destArray = destArray ^ srcArray</p>
<p>Arg 1: dest array Arg 2: souce array </p>

<p>Definition at line <a class="el" href="math_functions_8h_source.html#l00024">24</a> of file <a class="el" href="math_functions_8h_source.html">mathFunctions.h</a>.</p>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="math_functions_8h_aaf4979ac027751a7358291353a23b387_icgraph.png" border="0" usemap="#math_functions_8h_aaf4979ac027751a7358291353a23b387_icgraph" alt=""/></div>
<map name="math_functions_8h_aaf4979ac027751a7358291353a23b387_icgraph" id="math_functions_8h_aaf4979ac027751a7358291353a23b387_icgraph">
<area shape="rect" id="node2" href="cluster_groups_8h.html#a379930b3782e888c9ccdf5a8106b3434" title="assignGroup" alt="" coords="101,91,198,118"/>
<area shape="rect" id="node10" href="cluster_groups_8h.html#aa67c48c94718510ec7bd5590f09d090c" title="updateGroups" alt="" coords="96,142,203,169"/>
<area shape="rect" id="node3" href="computational_geometry_8h.html#aff243280740a51cada5c0dd94021fb66" title="intersectionChecking" alt="" coords="251,117,397,143"/>
<area shape="rect" id="node4" href="_d_f_nmain_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627" title="main" alt="" coords="664,117,715,143"/>
<area shape="rect" id="node5" href="insert_user_ell_8cpp.html#a9841b356b0460e297748d6648c301558" title="insertUserEll" alt="" coords="482,41,579,67"/>
<area shape="rect" id="node6" href="insert_user_ell_by_coord_8cpp.html#a49e6b0be012ed44c6ef83ea66ed6dd86" title="insertUserEllByCoord" alt="" coords="456,91,605,118"/>
<area shape="rect" id="node7" href="insert_user_rects_8cpp.html#af69365c2e0148366aabe6751ffc54a79" title="insertUserRects" alt="" coords="472,142,589,169"/>
<area shape="rect" id="node8" href="insert_user_rects_by_coord_8cpp.html#a244f461634679dc91d08da3e183f9b8c" title="insertUserRectsByCoord" alt="" coords="446,193,615,219"/>
<area shape="rect" id="node9" href="remove_fractures_8h.html#a016a4a3e0104523549279e6f6cf6c6d8" title="removeFractures" alt="" coords="469,243,592,270"/>
</map>
</div>

</div>
</div>
<a id="ae8a91d328acce433a539c5550cba001d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae8a91d328acce433a539c5550cba001d">&sect;&nbsp;</a></span>sortedIndex()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int* sortedIndex </td>
          <td>(</td>
          <td class="paramtype">const double *&#160;</td>
          <td class="paramname"><em>v</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>n</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Similar to mathematica's Ordering[] funct. Arg 1: Pointer to array of doubles Arg 2: Size of array, number of elements Return: Array of sorted indicies to elements in 'v' sorted smallest to largest </p>

<p>Definition at line <a class="el" href="math_functions_8cpp_source.html#l00088">88</a> of file <a class="el" href="math_functions_8cpp_source.html">mathFunctions.cpp</a>.</p>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="math_functions_8h_ae8a91d328acce433a539c5550cba001d_icgraph.png" border="0" usemap="#math_functions_8h_ae8a91d328acce433a539c5550cba001d_icgraph" alt=""/></div>
<map name="math_functions_8h_ae8a91d328acce433a539c5550cba001d_icgraph" id="math_functions_8h_ae8a91d328acce433a539c5550cba001d_icgraph">
<area shape="rect" id="node2" href="computational_geometry_8h.html#a415bf8d3cbc3ccbdf9c8f7bbff35bc96" title="findIntersections" alt="" coords="161,170,279,197"/>
<area shape="rect" id="node10" href="output_8h.html#a28522d95b2cb41e475acf0136cc6a58e" title="writeIntersectionFiles" alt="" coords="147,271,293,298"/>
<area shape="rect" id="node3" href="computational_geometry_8h.html#aff243280740a51cada5c0dd94021fb66" title="intersectionChecking" alt="" coords="342,145,487,171"/>
<area shape="rect" id="node4" href="_d_f_nmain_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627" title="main" alt="" coords="755,145,805,171"/>
<area shape="rect" id="node5" href="insert_user_ell_8cpp.html#a9841b356b0460e297748d6648c301558" title="insertUserEll" alt="" coords="573,43,670,70"/>
<area shape="rect" id="node6" href="insert_user_ell_by_coord_8cpp.html#a49e6b0be012ed44c6ef83ea66ed6dd86" title="insertUserEllByCoord" alt="" coords="547,94,696,121"/>
<area shape="rect" id="node7" href="insert_user_rects_8cpp.html#af69365c2e0148366aabe6751ffc54a79" title="insertUserRects" alt="" coords="563,145,680,171"/>
<area shape="rect" id="node8" href="insert_user_rects_by_coord_8cpp.html#a244f461634679dc91d08da3e183f9b8c" title="insertUserRectsByCoord" alt="" coords="537,195,706,222"/>
<area shape="rect" id="node9" href="remove_fractures_8h.html#a016a4a3e0104523549279e6f6cf6c6d8" title="removeFractures" alt="" coords="560,246,683,273"/>
<area shape="rect" id="node11" href="output_8h.html#ad84815b625587d2194321694a13f2477" title="writeOutput" alt="" coords="369,285,460,311"/>
</map>
</div>

</div>
</div>
<a id="a3f8a93afe66d001b09ae4094cf9a0b53"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3f8a93afe66d001b09ae4094cf9a0b53">&sect;&nbsp;</a></span>sumDevAry3()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double* sumDevAry3 </td>
          <td>(</td>
          <td class="paramtype">double *&#160;</td>
          <td class="paramname"><em>v</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Used in <a class="el" href="computational_geometry_8cpp.html#a38a8c322dba7d8518a4c3206cd55a5f6">intersectionChecking()</a> How function is used: v is a pointer to an array of 4 points, each point contains x, y, and z coordinates The 4 sumDeviation is computed on all points' x, y, and z coord. An array of three elements is returned containing the sum deviation of all x's, all y's, and all z's</p>
<p>Arg 1: Array of 12 elements: 4 points, {x1, y1, z1, ... , x4, y4, z4} Return: Array of 3 elements x,y,z with each stdDev, respectively </p>

<p>Definition at line <a class="el" href="math_functions_8cpp_source.html#l00046">46</a> of file <a class="el" href="math_functions_8cpp_source.html">mathFunctions.cpp</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="math_functions_8h_a3f8a93afe66d001b09ae4094cf9a0b53_cgraph.png" border="0" usemap="#math_functions_8h_a3f8a93afe66d001b09ae4094cf9a0b53_cgraph" alt=""/></div>
<map name="math_functions_8h_a3f8a93afe66d001b09ae4094cf9a0b53_cgraph" id="math_functions_8h_a3f8a93afe66d001b09ae4094cf9a0b53_cgraph">
<area shape="rect" id="node2" href="math_functions_8cpp.html#a98cde7148e906b892afae204d7bdc6b1" title="sumDeviation" alt="" coords="153,29,255,56"/>
</map>
</div>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="math_functions_8h_a3f8a93afe66d001b09ae4094cf9a0b53_icgraph.png" border="0" usemap="#math_functions_8h_a3f8a93afe66d001b09ae4094cf9a0b53_icgraph" alt=""/></div>
<map name="math_functions_8h_a3f8a93afe66d001b09ae4094cf9a0b53_icgraph" id="math_functions_8h_a3f8a93afe66d001b09ae4094cf9a0b53_icgraph">
<area shape="rect" id="node2" href="computational_geometry_8h.html#a415bf8d3cbc3ccbdf9c8f7bbff35bc96" title="findIntersections" alt="" coords="153,117,271,143"/>
<area shape="rect" id="node3" href="computational_geometry_8h.html#aff243280740a51cada5c0dd94021fb66" title="intersectionChecking" alt="" coords="321,117,466,143"/>
<area shape="rect" id="node4" href="_d_f_nmain_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627" title="main" alt="" coords="733,117,784,143"/>
<area shape="rect" id="node5" href="insert_user_ell_8cpp.html#a9841b356b0460e297748d6648c301558" title="insertUserEll" alt="" coords="551,41,649,67"/>
<area shape="rect" id="node6" href="insert_user_ell_by_coord_8cpp.html#a49e6b0be012ed44c6ef83ea66ed6dd86" title="insertUserEllByCoord" alt="" coords="525,91,675,118"/>
<area shape="rect" id="node7" href="insert_user_rects_8cpp.html#af69365c2e0148366aabe6751ffc54a79" title="insertUserRects" alt="" coords="541,142,659,169"/>
<area shape="rect" id="node8" href="insert_user_rects_by_coord_8cpp.html#a244f461634679dc91d08da3e183f9b8c" title="insertUserRectsByCoord" alt="" coords="515,193,685,219"/>
<area shape="rect" id="node9" href="remove_fractures_8h.html#a016a4a3e0104523549279e6f6cf6c6d8" title="removeFractures" alt="" coords="539,243,661,270"/>
</map>
</div>

</div>
</div>
<a id="a694596931b8abc5c03fcf4aaa8ecc6fc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a694596931b8abc5c03fcf4aaa8ecc6fc">&sect;&nbsp;</a></span>sumDeviation()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double sumDeviation </td>
          <td>(</td>
          <td class="paramtype">const double *&#160;</td>
          <td class="paramname"><em>v</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>n</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>There are several spots in the code which used to use standard deviation to know how to sort a list of points. To increase performance, the standard deviation is now calculated without the square root and division by N elements. Arg 1: Pointer to array which we need the sum deviation of Arg 2: Number of elements in array pointed to by arg 1 Return: The sum-deviation of array 'v' </p>

<p>Definition at line <a class="el" href="math_functions_8cpp_source.html#l00019">19</a> of file <a class="el" href="math_functions_8cpp_source.html">mathFunctions.cpp</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="math_functions_8h_a694596931b8abc5c03fcf4aaa8ecc6fc_cgraph.png" border="0" usemap="#math_functions_8h_a694596931b8abc5c03fcf4aaa8ecc6fc_cgraph" alt=""/></div>
<map name="math_functions_8h_a694596931b8abc5c03fcf4aaa8ecc6fc_cgraph" id="math_functions_8h_a694596931b8abc5c03fcf4aaa8ecc6fc_cgraph">
<area shape="rect" id="node2" href="math_functions_8cpp.html#a98cde7148e906b892afae204d7bdc6b1" title="sumDeviation" alt="" coords="158,29,261,56"/>
</map>
</div>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="math_functions_8h_a694596931b8abc5c03fcf4aaa8ecc6fc_icgraph.png" border="0" usemap="#math_functions_8h_a694596931b8abc5c03fcf4aaa8ecc6fc_icgraph" alt=""/></div>
<map name="math_functions_8h_a694596931b8abc5c03fcf4aaa8ecc6fc_icgraph" id="math_functions_8h_a694596931b8abc5c03fcf4aaa8ecc6fc_icgraph">
<area shape="rect" id="node2" href="math_functions_8h.html#a3f8a93afe66d001b09ae4094cf9a0b53" title="sumDevAry3" alt="" coords="157,117,256,143"/>
<area shape="rect" id="node3" href="computational_geometry_8h.html#a415bf8d3cbc3ccbdf9c8f7bbff35bc96" title="findIntersections" alt="" coords="305,117,423,143"/>
<area shape="rect" id="node4" href="computational_geometry_8h.html#aff243280740a51cada5c0dd94021fb66" title="intersectionChecking" alt="" coords="473,117,618,143"/>
<area shape="rect" id="node5" href="_d_f_nmain_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627" title="main" alt="" coords="885,117,936,143"/>
<area shape="rect" id="node6" href="insert_user_ell_8cpp.html#a9841b356b0460e297748d6648c301558" title="insertUserEll" alt="" coords="703,41,801,67"/>
<area shape="rect" id="node7" href="insert_user_ell_by_coord_8cpp.html#a49e6b0be012ed44c6ef83ea66ed6dd86" title="insertUserEllByCoord" alt="" coords="677,91,827,118"/>
<area shape="rect" id="node8" href="insert_user_rects_8cpp.html#af69365c2e0148366aabe6751ffc54a79" title="insertUserRects" alt="" coords="693,142,811,169"/>
<area shape="rect" id="node9" href="insert_user_rects_by_coord_8cpp.html#a244f461634679dc91d08da3e183f9b8c" title="insertUserRectsByCoord" alt="" coords="667,193,837,219"/>
<area shape="rect" id="node10" href="remove_fractures_8h.html#a016a4a3e0104523549279e6f6cf6c6d8" title="removeFractures" alt="" coords="691,243,813,270"/>
</map>
</div>

</div>
</div>
<a id="a132e593f161b095ca9de50bdc85a3a77"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a132e593f161b095ca9de50bdc85a3a77">&sect;&nbsp;</a></span>truncatedPowerLaw()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float truncatedPowerLaw </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>randomNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>min</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>max</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>alpha</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Distrubution function for truncated power-law randomNum must be between 0 and 1 This distribution should be sampled uniformly between 0 and 1 to produce a truncated power-law distribution Arg 1: Random variable between 0 and 1 Arg 2: Minimum number which can be returned from the distribution Arg 3: Maximum number which can be returned from the distribution Arg 4: Power-law's alpha Return: Random float adhering to the truncated power law distribution </p>

<p>Definition at line <a class="el" href="generating_points_8cpp_source.html#l00208">208</a> of file <a class="el" href="generating_points_8cpp_source.html">generatingPoints.cpp</a>.</p>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="math_functions_8h_a132e593f161b095ca9de50bdc85a3a77_icgraph.png" border="0" usemap="#math_functions_8h_a132e593f161b095ca9de50bdc85a3a77_icgraph" alt=""/></div>
<map name="math_functions_8h_a132e593f161b095ca9de50bdc85a3a77_icgraph" id="math_functions_8h_a132e593f161b095ca9de50bdc85a3a77_icgraph">
<area shape="rect" id="node2" href="fracture_estimating_8h.html#a00c815b95d7e3d0cba9f4342903779e5" title="addRadii" alt="" coords="208,71,283,97"/>
<area shape="rect" id="node6" href="insert_shape_8h.html#a4f91304a14fefba4d4f93f2f3e54dee4" title="generatePoly" alt="" coords="195,121,295,148"/>
<area shape="rect" id="node3" href="fracture_estimating_8h.html#acb37fb0878da2fa7f0648216fb4189e4" title="generateRadiiLists\l_nPolyOption" alt="" coords="345,5,477,46"/>
<area shape="rect" id="node5" href="fracture_estimating_8h.html#a26080c2634b53083b47b763b66bd4911" title="addRadiiToLists" alt="" coords="352,71,469,97"/>
<area shape="rect" id="node4" href="_d_f_nmain_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627" title="main" alt="" coords="525,96,576,123"/>
<area shape="rect" id="node7" href="fracture_estimating_8h.html#a7cf21b594fd24b2879af467e23bdac0a" title="dryRun" alt="" coords="378,172,443,199"/>
</map>
</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="math_functions_8h.html">mathFunctions.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>
