Documentation for 0931d530ae

This commit is contained in:
github-actions
2023-01-22 19:44:10 +00:00
parent a448f64699
commit b48f6e8671
2457 changed files with 9513 additions and 8691 deletions

View File

@@ -3,7 +3,7 @@
<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.5"/>
<meta name="generator" content="Doxygen 1.9.6"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Algorithms_in_C++: probability/bayes_theorem.cpp File Reference</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
@@ -41,7 +41,7 @@ MathJax.Hub.Config({
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.5 -->
<!-- Generated by Doxygen 1.9.6 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
@@ -123,8 +123,8 @@ Functions</h2></td></tr>
<tr class="separator:ae66f6b31b5ad750f1fe042a706a4e3d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p ><a href="https://en.wikipedia.org/wiki/Bayes%27_theorem" target="_blank">Bayes' theorem</a> </p>
<p >Bayes' theorem allows one to find \(P(A|B)\) given \(P(B|A)\) or \(P(B|A)\) given \(P(A|B)\) and \(P(A)\) and \(P(B)\).<br />
<div class="textblock"><p><a href="https://en.wikipedia.org/wiki/Bayes%27_theorem" target="_blank">Bayes' theorem</a> </p>
<p>Bayes' theorem allows one to find \(P(A|B)\) given \(P(B|A)\) or \(P(B|A)\) given \(P(A|B)\) and \(P(A)\) and \(P(B)\).<br />
Note that \(P(A|B)\) is read 'The probability of A given that the event B has occured'. </p>
</div><h2 class="groupheader">Function Documentation</h2>
<a id="a655bfe51252468d232dc639a340656ba" name="a655bfe51252468d232dc639a340656ba"></a>
@@ -158,7 +158,7 @@ Note that \(P(A|B)\) is read 'The probability of A given that the event B has oc
</tr>
</table>
</div><div class="memdoc">
<p >returns P(A|B) </p>
<p>returns P(A|B) </p>
<div class="fragment"><div class="line"><span class="lineno"> 14</span> {</div>
<div class="line"><span class="lineno"> 15</span> <span class="keywordflow">return</span> (BgivenA * A) / B;</div>
<div class="line"><span class="lineno"> 16</span>}</div>
@@ -196,7 +196,7 @@ Note that \(P(A|B)\) is read 'The probability of A given that the event B has oc
</tr>
</table>
</div><div class="memdoc">
<p >returns P(B|A) </p>
<p>returns P(B|A) </p>
<div class="fragment"><div class="line"><span class="lineno"> 20</span> {</div>
<div class="line"><span class="lineno"> 21</span> <span class="keywordflow">return</span> (AgivenB * B) / A;</div>
<div class="line"><span class="lineno"> 22</span>}</div>
@@ -218,7 +218,7 @@ Note that \(P(A|B)\) is read 'The probability of A given that the event B has oc
</tr>
</table>
</div><div class="memdoc">
<p >Main function </p>
<p>Main function </p>
<div class="fragment"><div class="line"><span class="lineno"> 26</span> {</div>
<div class="line"><span class="lineno"> 27</span> <span class="keywordtype">double</span> A = 0.01;</div>
<div class="line"><span class="lineno"> 28</span> <span class="keywordtype">double</span> B = 0.1;</div>
@@ -247,7 +247,7 @@ Here is the call graph for this function:</div>
<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="../../d5/d67/bayes__theorem_8cpp.html">bayes_theorem.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.5 </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.6 </li>
</ul>
</div>
</body>