test.extra.test_distributions.html 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
  6. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7. <title>test.extra.test_distributions module &#8212; Python(P)DEVS-BBL documentation</title>
  8. <link rel="stylesheet" href="_static/nature.css" type="text/css" />
  9. <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
  10. <link rel="stylesheet" type="text/css" href="_static/custom.css" />
  11. <script type="text/javascript" id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
  12. <script type="text/javascript" src="_static/jquery.js"></script>
  13. <script type="text/javascript" src="_static/underscore.js"></script>
  14. <script type="text/javascript" src="_static/doctools.js"></script>
  15. <script type="text/javascript" src="_static/language_data.js"></script>
  16. <script async="async" type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.js?config=TeX-AMS-MML_HTMLorMML"></script>
  17. <link rel="index" title="Index" href="genindex.html" />
  18. <link rel="search" title="Search" href="search.html" />
  19. <link rel="next" title="test.extra.test_fileutils module" href="test.extra.test_fileutils.html" />
  20. <link rel="prev" title="test.extra package" href="test.extra.html" />
  21. </head><body>
  22. <div class="related" role="navigation" aria-label="related navigation">
  23. <h3>Navigation</h3>
  24. <ul>
  25. <li class="right" style="margin-right: 10px">
  26. <a href="genindex.html" title="General Index"
  27. accesskey="I">index</a></li>
  28. <li class="right" >
  29. <a href="py-modindex.html" title="Python Module Index"
  30. >modules</a> |</li>
  31. <li class="right" >
  32. <a href="test.extra.test_fileutils.html" title="test.extra.test_fileutils module"
  33. accesskey="N">next</a> |</li>
  34. <li class="right" >
  35. <a href="test.extra.html" title="test.extra package"
  36. accesskey="P">previous</a> |</li>
  37. <li class="nav-item nav-item-0"><a href="index.html">Python(P)DEVS-BBL documentation</a> &#187;</li>
  38. <li class="nav-item nav-item-1"><a href="test.html" >test package</a> &#187;</li>
  39. <li class="nav-item nav-item-2"><a href="test.extra.html" accesskey="U">test.extra package</a> &#187;</li>
  40. </ul>
  41. </div>
  42. <div class="document">
  43. <div class="documentwrapper">
  44. <div class="bodywrapper">
  45. <div class="body" role="main">
  46. <div class="section" id="module-test.extra.test_distributions">
  47. <span id="test-extra-test-distributions-module"></span><h1>test.extra.test_distributions module<a class="headerlink" href="#module-test.extra.test_distributions" title="Permalink to this headline">¶</a></h1>
  48. <p>Test all the distributions, making sure they do what they say they do.</p>
  49. <p>Based on the Kolmogorov-Smirnov goodness-of-fit test for continuous
  50. distributions, the TestDistributions will actually test the goodness of
  51. all generators listed in <a class="reference internal" href="pypdevsbbl.extra.rngstreams.distributions.html#module-pypdevsbbl.extra.rngstreams.distributions" title="pypdevsbbl.extra.rngstreams.distributions"><code class="xref py py-mod docutils literal notranslate"><span class="pre">pypdevsbbl.extra.rngstreams.distributions</span></code></a>.</p>
  52. <div class="admonition seealso">
  53. <p class="first admonition-title">See also</p>
  54. <p class="last"><a class="reference internal" href="pypdevsbbl.extra.rngstreams.distributions.html#module-pypdevsbbl.extra.rngstreams.distributions" title="pypdevsbbl.extra.rngstreams.distributions"><code class="xref py py-mod docutils literal notranslate"><span class="pre">pypdevsbbl.extra.rngstreams.distributions</span></code></a></p>
  55. </div>
  56. <dl class="class">
  57. <dt id="test.extra.test_distributions.TestDistributions">
  58. <em class="property">class </em><code class="descclassname">test.extra.test_distributions.</code><code class="descname">TestDistributions</code><span class="sig-paren">(</span><em>methodName='runTest'</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/test/extra/test_distributions.html#TestDistributions"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#test.extra.test_distributions.TestDistributions" title="Permalink to this definition">¶</a></dt>
  59. <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">unittest.case.TestCase</span></code></p>
  60. <dl class="method">
  61. <dt id="test.extra.test_distributions.TestDistributions.setUp">
  62. <code class="descname">setUp</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/test/extra/test_distributions.html#TestDistributions.setUp"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#test.extra.test_distributions.TestDistributions.setUp" title="Permalink to this definition">¶</a></dt>
  63. <dd></dd></dl>
  64. <dl class="method">
  65. <dt id="test.extra.test_distributions.TestDistributions.test_beta">
  66. <code class="descname">test_beta</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/test/extra/test_distributions.html#TestDistributions.test_beta"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#test.extra.test_distributions.TestDistributions.test_beta" title="Permalink to this definition">¶</a></dt>
  67. <dd></dd></dl>
  68. <dl class="method">
  69. <dt id="test.extra.test_distributions.TestDistributions.test_binomial">
  70. <code class="descname">test_binomial</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/test/extra/test_distributions.html#TestDistributions.test_binomial"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#test.extra.test_distributions.TestDistributions.test_binomial" title="Permalink to this definition">¶</a></dt>
  71. <dd></dd></dl>
  72. <dl class="method">
  73. <dt id="test.extra.test_distributions.TestDistributions.test_cauchy">
  74. <code class="descname">test_cauchy</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/test/extra/test_distributions.html#TestDistributions.test_cauchy"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#test.extra.test_distributions.TestDistributions.test_cauchy" title="Permalink to this definition">¶</a></dt>
  75. <dd></dd></dl>
  76. <dl class="method">
  77. <dt id="test.extra.test_distributions.TestDistributions.test_chiSquare">
  78. <code class="descname">test_chiSquare</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/test/extra/test_distributions.html#TestDistributions.test_chiSquare"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#test.extra.test_distributions.TestDistributions.test_chiSquare" title="Permalink to this definition">¶</a></dt>
  79. <dd></dd></dl>
  80. <dl class="method">
  81. <dt id="test.extra.test_distributions.TestDistributions.test_exponential">
  82. <code class="descname">test_exponential</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/test/extra/test_distributions.html#TestDistributions.test_exponential"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#test.extra.test_distributions.TestDistributions.test_exponential" title="Permalink to this definition">¶</a></dt>
  83. <dd></dd></dl>
  84. <dl class="method">
  85. <dt id="test.extra.test_distributions.TestDistributions.test_F">
  86. <code class="descname">test_F</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/test/extra/test_distributions.html#TestDistributions.test_F"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#test.extra.test_distributions.TestDistributions.test_F" title="Permalink to this definition">¶</a></dt>
  87. <dd></dd></dl>
  88. <dl class="method">
  89. <dt id="test.extra.test_distributions.TestDistributions.test_frechet">
  90. <code class="descname">test_frechet</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/test/extra/test_distributions.html#TestDistributions.test_frechet"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#test.extra.test_distributions.TestDistributions.test_frechet" title="Permalink to this definition">¶</a></dt>
  91. <dd></dd></dl>
  92. <dl class="method">
  93. <dt id="test.extra.test_distributions.TestDistributions.test_gamma">
  94. <code class="descname">test_gamma</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/test/extra/test_distributions.html#TestDistributions.test_gamma"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#test.extra.test_distributions.TestDistributions.test_gamma" title="Permalink to this definition">¶</a></dt>
  95. <dd></dd></dl>
  96. <dl class="method">
  97. <dt id="test.extra.test_distributions.TestDistributions.test_geometric">
  98. <code class="descname">test_geometric</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/test/extra/test_distributions.html#TestDistributions.test_geometric"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#test.extra.test_distributions.TestDistributions.test_geometric" title="Permalink to this definition">¶</a></dt>
  99. <dd></dd></dl>
  100. <dl class="method">
  101. <dt id="test.extra.test_distributions.TestDistributions.test_gumbel">
  102. <code class="descname">test_gumbel</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/test/extra/test_distributions.html#TestDistributions.test_gumbel"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#test.extra.test_distributions.TestDistributions.test_gumbel" title="Permalink to this definition">¶</a></dt>
  103. <dd></dd></dl>
  104. <dl class="method">
  105. <dt id="test.extra.test_distributions.TestDistributions.test_JSB">
  106. <code class="descname">test_JSB</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/test/extra/test_distributions.html#TestDistributions.test_JSB"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#test.extra.test_distributions.TestDistributions.test_JSB" title="Permalink to this definition">¶</a></dt>
  107. <dd></dd></dl>
  108. <dl class="method">
  109. <dt id="test.extra.test_distributions.TestDistributions.test_JSU">
  110. <code class="descname">test_JSU</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/test/extra/test_distributions.html#TestDistributions.test_JSU"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#test.extra.test_distributions.TestDistributions.test_JSU" title="Permalink to this definition">¶</a></dt>
  111. <dd></dd></dl>
  112. <dl class="method">
  113. <dt id="test.extra.test_distributions.TestDistributions.test_laplace">
  114. <code class="descname">test_laplace</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/test/extra/test_distributions.html#TestDistributions.test_laplace"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#test.extra.test_distributions.TestDistributions.test_laplace" title="Permalink to this definition">¶</a></dt>
  115. <dd></dd></dl>
  116. <dl class="method">
  117. <dt id="test.extra.test_distributions.TestDistributions.test_logistic">
  118. <code class="descname">test_logistic</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/test/extra/test_distributions.html#TestDistributions.test_logistic"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#test.extra.test_distributions.TestDistributions.test_logistic" title="Permalink to this definition">¶</a></dt>
  119. <dd></dd></dl>
  120. <dl class="method">
  121. <dt id="test.extra.test_distributions.TestDistributions.test_loglogistic">
  122. <code class="descname">test_loglogistic</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/test/extra/test_distributions.html#TestDistributions.test_loglogistic"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#test.extra.test_distributions.TestDistributions.test_loglogistic" title="Permalink to this definition">¶</a></dt>
  123. <dd></dd></dl>
  124. <dl class="method">
  125. <dt id="test.extra.test_distributions.TestDistributions.test_lognormal">
  126. <code class="descname">test_lognormal</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/test/extra/test_distributions.html#TestDistributions.test_lognormal"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#test.extra.test_distributions.TestDistributions.test_lognormal" title="Permalink to this definition">¶</a></dt>
  127. <dd></dd></dl>
  128. <dl class="method">
  129. <dt id="test.extra.test_distributions.TestDistributions.test_negbinomial">
  130. <code class="descname">test_negbinomial</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/test/extra/test_distributions.html#TestDistributions.test_negbinomial"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#test.extra.test_distributions.TestDistributions.test_negbinomial" title="Permalink to this definition">¶</a></dt>
  131. <dd></dd></dl>
  132. <dl class="method">
  133. <dt id="test.extra.test_distributions.TestDistributions.test_normal">
  134. <code class="descname">test_normal</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/test/extra/test_distributions.html#TestDistributions.test_normal"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#test.extra.test_distributions.TestDistributions.test_normal" title="Permalink to this definition">¶</a></dt>
  135. <dd></dd></dl>
  136. <dl class="method">
  137. <dt id="test.extra.test_distributions.TestDistributions.test_pareto">
  138. <code class="descname">test_pareto</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/test/extra/test_distributions.html#TestDistributions.test_pareto"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#test.extra.test_distributions.TestDistributions.test_pareto" title="Permalink to this definition">¶</a></dt>
  139. <dd></dd></dl>
  140. <dl class="method">
  141. <dt id="test.extra.test_distributions.TestDistributions.test_poisson">
  142. <code class="descname">test_poisson</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/test/extra/test_distributions.html#TestDistributions.test_poisson"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#test.extra.test_distributions.TestDistributions.test_poisson" title="Permalink to this definition">¶</a></dt>
  143. <dd></dd></dl>
  144. <dl class="method">
  145. <dt id="test.extra.test_distributions.TestDistributions.test_PT5">
  146. <code class="descname">test_PT5</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/test/extra/test_distributions.html#TestDistributions.test_PT5"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#test.extra.test_distributions.TestDistributions.test_PT5" title="Permalink to this definition">¶</a></dt>
  147. <dd></dd></dl>
  148. <dl class="method">
  149. <dt id="test.extra.test_distributions.TestDistributions.test_PT6">
  150. <code class="descname">test_PT6</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/test/extra/test_distributions.html#TestDistributions.test_PT6"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#test.extra.test_distributions.TestDistributions.test_PT6" title="Permalink to this definition">¶</a></dt>
  151. <dd></dd></dl>
  152. <dl class="method">
  153. <dt id="test.extra.test_distributions.TestDistributions.test_student">
  154. <code class="descname">test_student</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/test/extra/test_distributions.html#TestDistributions.test_student"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#test.extra.test_distributions.TestDistributions.test_student" title="Permalink to this definition">¶</a></dt>
  155. <dd></dd></dl>
  156. <dl class="method">
  157. <dt id="test.extra.test_distributions.TestDistributions.test_triangular">
  158. <code class="descname">test_triangular</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/test/extra/test_distributions.html#TestDistributions.test_triangular"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#test.extra.test_distributions.TestDistributions.test_triangular" title="Permalink to this definition">¶</a></dt>
  159. <dd></dd></dl>
  160. <dl class="method">
  161. <dt id="test.extra.test_distributions.TestDistributions.test_uniform">
  162. <code class="descname">test_uniform</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/test/extra/test_distributions.html#TestDistributions.test_uniform"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#test.extra.test_distributions.TestDistributions.test_uniform" title="Permalink to this definition">¶</a></dt>
  163. <dd></dd></dl>
  164. <dl class="method">
  165. <dt id="test.extra.test_distributions.TestDistributions.test_uniformInt">
  166. <code class="descname">test_uniformInt</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/test/extra/test_distributions.html#TestDistributions.test_uniformInt"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#test.extra.test_distributions.TestDistributions.test_uniformInt" title="Permalink to this definition">¶</a></dt>
  167. <dd></dd></dl>
  168. <dl class="method">
  169. <dt id="test.extra.test_distributions.TestDistributions.test_wald">
  170. <code class="descname">test_wald</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/test/extra/test_distributions.html#TestDistributions.test_wald"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#test.extra.test_distributions.TestDistributions.test_wald" title="Permalink to this definition">¶</a></dt>
  171. <dd></dd></dl>
  172. <dl class="method">
  173. <dt id="test.extra.test_distributions.TestDistributions.test_weibull">
  174. <code class="descname">test_weibull</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/test/extra/test_distributions.html#TestDistributions.test_weibull"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#test.extra.test_distributions.TestDistributions.test_weibull" title="Permalink to this definition">¶</a></dt>
  175. <dd></dd></dl>
  176. <dl class="method">
  177. <dt id="test.extra.test_distributions.TestDistributions.test_zipf">
  178. <code class="descname">test_zipf</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/test/extra/test_distributions.html#TestDistributions.test_zipf"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#test.extra.test_distributions.TestDistributions.test_zipf" title="Permalink to this definition">¶</a></dt>
  179. <dd></dd></dl>
  180. </dd></dl>
  181. </div>
  182. </div>
  183. </div>
  184. </div>
  185. <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
  186. <div class="sphinxsidebarwrapper">
  187. <h4>Previous topic</h4>
  188. <p class="topless"><a href="test.extra.html"
  189. title="previous chapter">test.extra package</a></p>
  190. <h4>Next topic</h4>
  191. <p class="topless"><a href="test.extra.test_fileutils.html"
  192. title="next chapter">test.extra.test_fileutils module</a></p>
  193. <div id="searchbox" style="display: none" role="search">
  194. <h3>Quick search</h3>
  195. <div class="searchformwrapper">
  196. <form class="search" action="search.html" method="get">
  197. <input type="text" name="q" />
  198. <input type="submit" value="Go" />
  199. <input type="hidden" name="check_keywords" value="yes" />
  200. <input type="hidden" name="area" value="default" />
  201. </form>
  202. </div>
  203. </div>
  204. <script type="text/javascript">$('#searchbox').show(0);</script>
  205. </div>
  206. </div>
  207. <div class="clearer"></div>
  208. </div>
  209. <div class="related" role="navigation" aria-label="related navigation">
  210. <h3>Navigation</h3>
  211. <ul>
  212. <li class="right" style="margin-right: 10px">
  213. <a href="genindex.html" title="General Index"
  214. >index</a></li>
  215. <li class="right" >
  216. <a href="py-modindex.html" title="Python Module Index"
  217. >modules</a> |</li>
  218. <li class="right" >
  219. <a href="test.extra.test_fileutils.html" title="test.extra.test_fileutils module"
  220. >next</a> |</li>
  221. <li class="right" >
  222. <a href="test.extra.html" title="test.extra package"
  223. >previous</a> |</li>
  224. <li class="nav-item nav-item-0"><a href="index.html">Python(P)DEVS-BBL documentation</a> &#187;</li>
  225. <li class="nav-item nav-item-1"><a href="test.html" >test package</a> &#187;</li>
  226. <li class="nav-item nav-item-2"><a href="test.extra.html" >test.extra package</a> &#187;</li>
  227. </ul>
  228. </div>
  229. <div class="footer" role="contentinfo">
  230. &#169; Copyright 2020, Randy Paredis.
  231. Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.8.5.
  232. </div>
  233. </body>
  234. </html>