| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871 |
- <!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="X-UA-Compatible" content="IE=Edge" />
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>pypdevsbbl.extra.rngstreams.distributions module — Python(P)DEVS-BBL documentation</title>
- <link rel="stylesheet" href="_static/nature.css" type="text/css" />
- <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
- <link rel="stylesheet" type="text/css" href="_static/custom.css" />
- <script type="text/javascript" id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
- <script type="text/javascript" src="_static/jquery.js"></script>
- <script type="text/javascript" src="_static/underscore.js"></script>
- <script type="text/javascript" src="_static/doctools.js"></script>
- <script type="text/javascript" src="_static/language_data.js"></script>
- <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>
- <link rel="index" title="Index" href="genindex.html" />
- <link rel="search" title="Search" href="search.html" />
- <link rel="next" title="pypdevsbbl.extra.equations module" href="pypdevsbbl.extra.equations.html" />
- <link rel="prev" title="pypdevsbbl.extra.rngstreams package" href="pypdevsbbl.extra.rngstreams.html" />
- </head><body>
- <div class="related" role="navigation" aria-label="related navigation">
- <h3>Navigation</h3>
- <ul>
- <li class="right" style="margin-right: 10px">
- <a href="genindex.html" title="General Index"
- accesskey="I">index</a></li>
- <li class="right" >
- <a href="py-modindex.html" title="Python Module Index"
- >modules</a> |</li>
- <li class="right" >
- <a href="pypdevsbbl.extra.equations.html" title="pypdevsbbl.extra.equations module"
- accesskey="N">next</a> |</li>
- <li class="right" >
- <a href="pypdevsbbl.extra.rngstreams.html" title="pypdevsbbl.extra.rngstreams package"
- accesskey="P">previous</a> |</li>
- <li class="nav-item nav-item-0"><a href="index.html">Python(P)DEVS-BBL documentation</a> »</li>
- <li class="nav-item nav-item-1"><a href="pypdevsbbl.html" >pypdevsbbl package</a> »</li>
- <li class="nav-item nav-item-2"><a href="pypdevsbbl.extra.html" >pypdevsbbl.extra package</a> »</li>
- <li class="nav-item nav-item-3"><a href="pypdevsbbl.extra.rngstreams.html" accesskey="U">pypdevsbbl.extra.rngstreams package</a> »</li>
- </ul>
- </div>
- <div class="document">
- <div class="documentwrapper">
- <div class="bodywrapper">
- <div class="body" role="main">
-
- <div class="section" id="module-pypdevsbbl.extra.rngstreams.distributions">
- <span id="pypdevsbbl-extra-rngstreams-distributions-module"></span><h1>pypdevsbbl.extra.rngstreams.distributions module<a class="headerlink" href="#module-pypdevsbbl.extra.rngstreams.distributions" title="Permalink to this headline">¶</a></h1>
- <p>RNGs do not necessary only apply on the interval (0, 1).</p>
- <p>For this reason, this file also allows numerous different
- distributions from which we can obtain random streams.
- Based on the simple proof of:</p>
- <div class="math notranslate nohighlight">
- \[Pr[X <= x] = Pr[F^{-1}(U) <= x] = Pr[U <= F(x)] = F(x)\]</div>
- <p>we know that all we need is an inverse cumulative distribution
- function for all distributions we like to offer.</p>
- <p>In this module, there are multiple inverse cumulative distribution functions implemented
- in such a way that you can use any RNG in the range (0, 1) for generating the data. It
- is therefore completely standalone from some builtin implementation for a RNG.</p>
- <p>Besides Wikipedia, I refer to the following link when it comes to the actual distributions:
- <a class="reference external" href="http://www2.isikun.edu.tr/mustafahekimoglu/simulation/Lecture5-ProbabilityReview.pdf">http://www2.isikun.edu.tr/mustafahekimoglu/simulation/Lecture5-ProbabilityReview.pdf</a></p>
- <p>Also, all functions return numpy-classes!</p>
- <dl class="function">
- <dt id="pypdevsbbl.extra.rngstreams.distributions.beta">
- <code class="descclassname">pypdevsbbl.extra.rngstreams.distributions.</code><code class="descname">beta</code><span class="sig-paren">(</span><em>y</em>, <em>a</em>, <em>b</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pypdevsbbl/extra/rngstreams/distributions.html#beta"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pypdevsbbl.extra.rngstreams.distributions.beta" title="Permalink to this definition">¶</a></dt>
- <dd><p>Inverse of the beta cdf on the interval [0, 1] with shapes a1 and a2.</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
- <li><strong>y</strong> (<em>numeric</em>) – The y-value of the function.</li>
- <li><strong>a</strong> (<em>numeric</em>) – The first shape parameter.</li>
- <li><strong>b</strong> (<em>numeric</em>) – The second shape parameter.</li>
- </ul>
- </td>
- </tr>
- <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">A numpy.float64</p>
- </td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
- <dl class="function">
- <dt id="pypdevsbbl.extra.rngstreams.distributions.binomial">
- <code class="descclassname">pypdevsbbl.extra.rngstreams.distributions.</code><code class="descname">binomial</code><span class="sig-paren">(</span><em>y</em>, <em>n</em>, <em>p</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pypdevsbbl/extra/rngstreams/distributions.html#binomial"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pypdevsbbl.extra.rngstreams.distributions.binomial" title="Permalink to this definition">¶</a></dt>
- <dd><p>Inverse of the discrete binomial cdf with n experiments that have p chance of success.</p>
- <p>Since a Bernoulli distribution is a special case of the binomial distribution,
- you can also use this function for those usecases.</p>
- <div class="math notranslate nohighlight">
- \[Bernouilli(y, p) = binomial(y, 1, p)\]</div>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
- <li><strong>y</strong> (<em>numeric</em>) – The y-value of the function.</li>
- <li><strong>n</strong> (<em>numeric</em>) – The number of experiments.</li>
- <li><strong>p</strong> (<em>numeric</em>) – The chance for success in an experiment.</li>
- </ul>
- </td>
- </tr>
- <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">A numpy.float64</p>
- </td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
- <dl class="function">
- <dt id="pypdevsbbl.extra.rngstreams.distributions.cauchy">
- <code class="descclassname">pypdevsbbl.extra.rngstreams.distributions.</code><code class="descname">cauchy</code><span class="sig-paren">(</span><em>y</em>, <em>x0=0</em>, <em>scale=1</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pypdevsbbl/extra/rngstreams/distributions.html#cauchy"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pypdevsbbl.extra.rngstreams.distributions.cauchy" title="Permalink to this definition">¶</a></dt>
- <dd><p>The inverse of the cauchy cdf.</p>
- <p>This distribution is also known as the Lorentz distribution or the
- Breit-Wigner distribution. It is often used as the canonical example
- of a pathological distribution.</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
- <li><strong>y</strong> (<em>numeric</em>) – The y-value of the function.</li>
- <li><strong>x0</strong> (<em>numeric</em>) – The location of the distribution. Defaults to 0.</li>
- <li><strong>scale</strong> (<em>numeric</em>) – The scale of the distribution. Defaults to 1.</li>
- </ul>
- </td>
- </tr>
- <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">A numpy.float64</p>
- </td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
- <dl class="function">
- <dt id="pypdevsbbl.extra.rngstreams.distributions.chiSquare">
- <code class="descclassname">pypdevsbbl.extra.rngstreams.distributions.</code><code class="descname">chiSquare</code><span class="sig-paren">(</span><em>y</em>, <em>k</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pypdevsbbl/extra/rngstreams/distributions.html#chiSquare"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pypdevsbbl.extra.rngstreams.distributions.chiSquare" title="Permalink to this definition">¶</a></dt>
- <dd><p>Inverse of the chi square cdf with k degrees of freedom.</p>
- <p>This distribution is a special case of the gamma distribution and occurs
- the most often in inferential statistics.</p>
- <dl class="docutils">
- <dt>Technically, this is a special case of the gamma distribution where:</dt>
- <dd>shape = k / 2
- rate = 1</dd>
- </dl>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
- <li><strong>y</strong> (<em>numeric</em>) – The y-value of the function.</li>
- <li><strong>k</strong> (<em>numeric</em>) – The degrees of freedom to use.</li>
- </ul>
- </td>
- </tr>
- <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">A numpy.float64</p>
- </td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
- <dl class="function">
- <dt id="pypdevsbbl.extra.rngstreams.distributions.exponential">
- <code class="descclassname">pypdevsbbl.extra.rngstreams.distributions.</code><code class="descname">exponential</code><span class="sig-paren">(</span><em>y</em>, <em>l</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pypdevsbbl/extra/rngstreams/distributions.html#exponential"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pypdevsbbl.extra.rngstreams.distributions.exponential" title="Permalink to this definition">¶</a></dt>
- <dd><p>The inverse of the exponential cdf.</p>
- <p>This distribution is often used to predict the wait time until the
- first event.
- The mean of this distribution is 1/l.</p>
- <p>The exponential function is “memoryless”. In other words:
- Pr[X > s+t | X > s] = Pr[X > t]</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
- <li><strong>y</strong> (<em>numeric</em>) – The y-value of the function.</li>
- <li><strong>l</strong> (<em>numeric</em>) – The rate parameter (lambda),
- i.e. mean number of occurrences per time unit.</li>
- </ul>
- </td>
- </tr>
- <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">A numpy.float64</p>
- </td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
- <dl class="function">
- <dt id="pypdevsbbl.extra.rngstreams.distributions.F">
- <code class="descclassname">pypdevsbbl.extra.rngstreams.distributions.</code><code class="descname">F</code><span class="sig-paren">(</span><em>y</em>, <em>d1</em>, <em>d2</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pypdevsbbl/extra/rngstreams/distributions.html#F"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pypdevsbbl.extra.rngstreams.distributions.F" title="Permalink to this definition">¶</a></dt>
- <dd><p>Inverse of the Fisher-Snedecor cdf with d1 and d2 its degrees of freedom.</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
- <li><strong>y</strong> (<em>numeric</em>) – The y-value of the function.</li>
- <li><strong>d1</strong> (<em>numeric</em>) – The degrees of freedom to use.</li>
- <li><strong>d2</strong> (<em>numeric</em>) – The degrees of freedom to use.</li>
- </ul>
- </td>
- </tr>
- <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">A numpy.float64</p>
- </td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
- <dl class="function">
- <dt id="pypdevsbbl.extra.rngstreams.distributions.frechet">
- <code class="descclassname">pypdevsbbl.extra.rngstreams.distributions.</code><code class="descname">frechet</code><span class="sig-paren">(</span><em>y</em>, <em>alpha</em>, <em>m=0</em>, <em>s=1</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pypdevsbbl/extra/rngstreams/distributions.html#frechet"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pypdevsbbl.extra.rngstreams.distributions.frechet" title="Permalink to this definition">¶</a></dt>
- <dd><p>The inverse of the Fréchet cdf.</p>
- <p>This distribution is also known as the Generalized Extreme Value Type B
- distribution or the log-Weibull distribution. It is commonly used in
- hydrology.</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
- <li><strong>y</strong> (<em>numeric</em>) – The y-value of the function.</li>
- <li><strong>alpha</strong> (<em>numeric</em>) – The shape of the distribution.</li>
- <li><strong>m</strong> (<em>numeric</em>) – The location of the distribution. Defaults to 0.</li>
- <li><strong>s</strong> (<em>numeric</em>) – The scale of the distribution. Defaults to 1.</li>
- </ul>
- </td>
- </tr>
- <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">A numpy.float64</p>
- </td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
- <dl class="function">
- <dt id="pypdevsbbl.extra.rngstreams.distributions.gamma">
- <code class="descclassname">pypdevsbbl.extra.rngstreams.distributions.</code><code class="descname">gamma</code><span class="sig-paren">(</span><em>y</em>, <em>a</em>, <em>b</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pypdevsbbl/extra/rngstreams/distributions.html#gamma"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pypdevsbbl.extra.rngstreams.distributions.gamma" title="Permalink to this definition">¶</a></dt>
- <dd><p>Inverse of the gamma cdf with shape a and rate b.</p>
- <p>This distribution is used to predict the wait time until the a-th event.</p>
- <p>This formula is based upon the shape-rate system, so if you want to use
- the shape-scale system, use the property tao = 1/b</p>
- <p>Seeing as the erlang distribution is a special case of the gamma
- distribution (i.e. b is an integer), you can also use this function
- for those purposes.</p>
- <p>This function makes use of the _gamma_cache dictionary for efficiency.</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
- <li><strong>y</strong> (<em>numeric</em>) – The y-value of the function.</li>
- <li><strong>a</strong> (<em>numeric</em>) – The shape of the curve.</li>
- <li><strong>b</strong> (<em>numeric</em>) – The rate parameter.</li>
- </ul>
- </td>
- </tr>
- <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">A numpy.float64</p>
- </td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
- <dl class="function">
- <dt id="pypdevsbbl.extra.rngstreams.distributions.geometric">
- <code class="descclassname">pypdevsbbl.extra.rngstreams.distributions.</code><code class="descname">geometric</code><span class="sig-paren">(</span><em>y</em>, <em>p</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pypdevsbbl/extra/rngstreams/distributions.html#geometric"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pypdevsbbl.extra.rngstreams.distributions.geometric" title="Permalink to this definition">¶</a></dt>
- <dd><p>Inverse of the discrete geometric cdf with p chance for success.</p>
- <p><span class="math notranslate nohighlight">\(x\)</span> would represent the amount of faillures.</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
- <li><strong>y</strong> (<em>numeric</em>) – The y-value of the function.</li>
- <li><strong>p</strong> (<em>numeric</em>) – The chance for success in an experiment.</li>
- </ul>
- </td>
- </tr>
- <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">A numpy.float64</p>
- </td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
- <dl class="function">
- <dt id="pypdevsbbl.extra.rngstreams.distributions.gumbel">
- <code class="descclassname">pypdevsbbl.extra.rngstreams.distributions.</code><code class="descname">gumbel</code><span class="sig-paren">(</span><em>y</em>, <em>mu=0</em>, <em>beta=1</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pypdevsbbl/extra/rngstreams/distributions.html#gumbel"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pypdevsbbl.extra.rngstreams.distributions.gumbel" title="Permalink to this definition">¶</a></dt>
- <dd><p>The inverse of the Gumbel cdf.</p>
- <p>This distribution is also known as the Generalized Extreme Value Type A
- distribution or the log-Weibull distribution. It is commonly used in
- hydrology.</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
- <li><strong>y</strong> (<em>numeric</em>) – The y-value of the function.</li>
- <li><strong>mu</strong> (<em>numeric</em>) – The location of the distribution. Defaults to 0.</li>
- <li><strong>beta</strong> (<em>numeric</em>) – The scale of the distribution. Defaults to 1.</li>
- </ul>
- </td>
- </tr>
- <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">A numpy.float64</p>
- </td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
- <dl class="function">
- <dt id="pypdevsbbl.extra.rngstreams.distributions.JSB">
- <code class="descclassname">pypdevsbbl.extra.rngstreams.distributions.</code><code class="descname">JSB</code><span class="sig-paren">(</span><em>y</em>, <em>a1</em>, <em>a2</em>, <em>a</em>, <em>b</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pypdevsbbl/extra/rngstreams/distributions.html#JSB"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pypdevsbbl.extra.rngstreams.distributions.JSB" title="Permalink to this definition">¶</a></dt>
- <dd><p>Inverse of the Johnson Bounded cdf.</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
- <li><strong>y</strong> (<em>numeric</em>) – The y-value of the function.</li>
- <li><strong>a1</strong> (<em>numeric</em>) – The shape of the distribution.</li>
- <li><strong>a2</strong> (<em>numeric</em>) – The shape of the distribution.</li>
- <li><strong>a</strong> (<em>numeric</em>) – The location of the distribution.</li>
- <li><strong>b</strong> (<em>numeric</em>) – The scale of the distribution.</li>
- </ul>
- </td>
- </tr>
- <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">A numpy.float64</p>
- </td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
- <dl class="function">
- <dt id="pypdevsbbl.extra.rngstreams.distributions.johnsonB">
- <code class="descclassname">pypdevsbbl.extra.rngstreams.distributions.</code><code class="descname">johnsonB</code><span class="sig-paren">(</span><em>y</em>, <em>a1</em>, <em>a2</em>, <em>a</em>, <em>b</em><span class="sig-paren">)</span><a class="headerlink" href="#pypdevsbbl.extra.rngstreams.distributions.johnsonB" title="Permalink to this definition">¶</a></dt>
- <dd><p>Alias for <a class="reference internal" href="#pypdevsbbl.extra.rngstreams.distributions.JSB" title="pypdevsbbl.extra.rngstreams.distributions.JSB"><code class="xref py py-meth docutils literal notranslate"><span class="pre">JSB()</span></code></a> for readability.</p>
- </dd></dl>
- <dl class="function">
- <dt id="pypdevsbbl.extra.rngstreams.distributions.JSU">
- <code class="descclassname">pypdevsbbl.extra.rngstreams.distributions.</code><code class="descname">JSU</code><span class="sig-paren">(</span><em>y</em>, <em>a1</em>, <em>a2</em>, <em>g</em>, <em>b</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pypdevsbbl/extra/rngstreams/distributions.html#JSU"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pypdevsbbl.extra.rngstreams.distributions.JSU" title="Permalink to this definition">¶</a></dt>
- <dd><p>Inverse of the Johnson Unbounded cdf.</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
- <li><strong>y</strong> (<em>numeric</em>) – The y-value of the function.</li>
- <li><strong>a1</strong> (<em>numeric</em>) – The shape of the distribution.</li>
- <li><strong>a2</strong> (<em>numeric</em>) – The shape of the distribution.</li>
- <li><strong>g</strong> (<em>numeric</em>) – The location of the distribution.</li>
- <li><strong>b</strong> (<em>numeric</em>) – The scale of the distribution.</li>
- </ul>
- </td>
- </tr>
- <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">A numpy.float64</p>
- </td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
- <dl class="function">
- <dt id="pypdevsbbl.extra.rngstreams.distributions.johnsonU">
- <code class="descclassname">pypdevsbbl.extra.rngstreams.distributions.</code><code class="descname">johnsonU</code><span class="sig-paren">(</span><em>y</em>, <em>a1</em>, <em>a2</em>, <em>g</em>, <em>b</em><span class="sig-paren">)</span><a class="headerlink" href="#pypdevsbbl.extra.rngstreams.distributions.johnsonU" title="Permalink to this definition">¶</a></dt>
- <dd><p>Alias for <a class="reference internal" href="#pypdevsbbl.extra.rngstreams.distributions.JSU" title="pypdevsbbl.extra.rngstreams.distributions.JSU"><code class="xref py py-meth docutils literal notranslate"><span class="pre">JSU()</span></code></a> for readability.</p>
- </dd></dl>
- <dl class="function">
- <dt id="pypdevsbbl.extra.rngstreams.distributions.laplace">
- <code class="descclassname">pypdevsbbl.extra.rngstreams.distributions.</code><code class="descname">laplace</code><span class="sig-paren">(</span><em>y</em>, <em>mu=0</em>, <em>b=1</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pypdevsbbl/extra/rngstreams/distributions.html#laplace"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pypdevsbbl.extra.rngstreams.distributions.laplace" title="Permalink to this definition">¶</a></dt>
- <dd><p>Inverse of the Laplace cdf.</p>
- <p>The distribution is used in speech recognition and hydrology.</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
- <li><strong>y</strong> (<em>numeric</em>) – The y-value of the function.</li>
- <li><strong>mu</strong> (<em>numeric</em>) – The location of the distribution. Defaults to 0.</li>
- <li><strong>b</strong> (<em>numeric</em>) – The scale of the distribution. Defaults to 1.</li>
- </ul>
- </td>
- </tr>
- <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">A numpy.float64</p>
- </td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
- <dl class="function">
- <dt id="pypdevsbbl.extra.rngstreams.distributions.logistic">
- <code class="descclassname">pypdevsbbl.extra.rngstreams.distributions.</code><code class="descname">logistic</code><span class="sig-paren">(</span><em>y</em>, <em>mu=0</em>, <em>s=1</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pypdevsbbl/extra/rngstreams/distributions.html#logistic"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pypdevsbbl.extra.rngstreams.distributions.logistic" title="Permalink to this definition">¶</a></dt>
- <dd><p>Inverse of the Logistic cdf.</p>
- <p>Also known as the Sech-squared distribution. It appears in logistic
- regression and feedforward neural networks.</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
- <li><strong>y</strong> (<em>numeric</em>) – The y-value of the function.</li>
- <li><strong>mu</strong> (<em>numeric</em>) – The location of the distribution. Defaults to 0.</li>
- <li><strong>s</strong> (<em>numeric</em>) – The scale of the distribution. Defaults to 1.</li>
- </ul>
- </td>
- </tr>
- <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">A numpy.float64</p>
- </td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
- <dl class="function">
- <dt id="pypdevsbbl.extra.rngstreams.distributions.loglogistic">
- <code class="descclassname">pypdevsbbl.extra.rngstreams.distributions.</code><code class="descname">loglogistic</code><span class="sig-paren">(</span><em>y</em>, <em>a</em>, <em>b</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pypdevsbbl/extra/rngstreams/distributions.html#loglogistic"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pypdevsbbl.extra.rngstreams.distributions.loglogistic" title="Permalink to this definition">¶</a></dt>
- <dd><p>Inverse of the Log-Logistic / Fisk cdf.</p>
- <p>In economics, this distribution is known as the Fisk distribution.</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
- <li><strong>y</strong> (<em>numeric</em>) – The y-value of the function.</li>
- <li><strong>a</strong> (<em>numeric</em>) – The shape of the distribution.</li>
- <li><strong>b</strong> (<em>numeric</em>) – The scale of the distribution.</li>
- </ul>
- </td>
- </tr>
- <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">A numpy.float64</p>
- </td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
- <dl class="function">
- <dt id="pypdevsbbl.extra.rngstreams.distributions.lognormal">
- <code class="descclassname">pypdevsbbl.extra.rngstreams.distributions.</code><code class="descname">lognormal</code><span class="sig-paren">(</span><em>y</em>, <em>mu</em>, <em>s</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pypdevsbbl/extra/rngstreams/distributions.html#lognormal"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pypdevsbbl.extra.rngstreams.distributions.lognormal" title="Permalink to this definition">¶</a></dt>
- <dd><p>Inverse of the log-normal cdf with mean mu and standard derivation s.</p>
- <p>Generates a variable whose natural logarithm is normally distributed with
- mean mu and standard derivation s.</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
- <li><strong>y</strong> (<em>numeric</em>) – The y-value of the function.</li>
- <li><strong>mu</strong> (<em>numeric</em>) – The mean of the distribution.</li>
- <li><strong>s</strong> (<em>numeric</em>) – The standard derivation of the distribution.</li>
- </ul>
- </td>
- </tr>
- <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">A numpy.float64</p>
- </td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
- <dl class="function">
- <dt id="pypdevsbbl.extra.rngstreams.distributions.negbinomial">
- <code class="descclassname">pypdevsbbl.extra.rngstreams.distributions.</code><code class="descname">negbinomial</code><span class="sig-paren">(</span><em>y</em>, <em>r</em>, <em>p</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pypdevsbbl/extra/rngstreams/distributions.html#negbinomial"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pypdevsbbl.extra.rngstreams.distributions.negbinomial" title="Permalink to this definition">¶</a></dt>
- <dd><p>Inverse of the discrete negative binomial cdf with p chance of success foreach of s dist.</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
- <li><strong>y</strong> (<em>numeric</em>) – The y-value of the function.</li>
- <li><strong>r</strong> (<em>numeric</em>) – The number of faillures.</li>
- <li><strong>p</strong> (<em>numeric</em>) – The chance for success in an experiment.</li>
- </ul>
- </td>
- </tr>
- <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">A numpy.float64</p>
- </td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
- <dl class="function">
- <dt id="pypdevsbbl.extra.rngstreams.distributions.normal">
- <code class="descclassname">pypdevsbbl.extra.rngstreams.distributions.</code><code class="descname">normal</code><span class="sig-paren">(</span><em>y</em>, <em>mu=0</em>, <em>s=1</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pypdevsbbl/extra/rngstreams/distributions.html#normal"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pypdevsbbl.extra.rngstreams.distributions.normal" title="Permalink to this definition">¶</a></dt>
- <dd><p>Inverse of the normal cdf with mean mu and standard derivation s.</p>
- <p>The implementation of this function is based on the quantile function
- and the properties of the errorfunction erf.</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
- <li><strong>y</strong> (<em>numeric</em>) – The y-value of the function.</li>
- <li><strong>mu</strong> (<em>numeric</em>) – The mean of the distribution.
- Defaults to 0.</li>
- <li><strong>s</strong> (<em>numeric</em>) – The standard derivation of the distribution.
- Defaults to 1.</li>
- </ul>
- </td>
- </tr>
- <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">A numpy.float64</p>
- </td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
- <dl class="function">
- <dt id="pypdevsbbl.extra.rngstreams.distributions.pareto">
- <code class="descclassname">pypdevsbbl.extra.rngstreams.distributions.</code><code class="descname">pareto</code><span class="sig-paren">(</span><em>y</em>, <em>alpha</em>, <em>xm</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pypdevsbbl/extra/rngstreams/distributions.html#pareto"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pypdevsbbl.extra.rngstreams.distributions.pareto" title="Permalink to this definition">¶</a></dt>
- <dd><p>Inverse of the Pareto cdf.</p>
- <p>The distribution is used to describe social, scientifical, geophysical,
- actuatial… phenomena. It originally was used to describe the distribution
- of wealth.</p>
- <p>Colloquially, the distribution is refered to as the <cite>80-20 rule</cite>.</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
- <li><strong>y</strong> (<em>numeric</em>) – The y-value of the function.</li>
- <li><strong>alpha</strong> (<em>numeric</em>) – The shape of the distribution.</li>
- <li><strong>xm</strong> (<em>numeric</em>) – The scale of the distribution. Defaults to 1.</li>
- </ul>
- </td>
- </tr>
- <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">A numpy.float64</p>
- </td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
- <dl class="function">
- <dt id="pypdevsbbl.extra.rngstreams.distributions.poisson">
- <code class="descclassname">pypdevsbbl.extra.rngstreams.distributions.</code><code class="descname">poisson</code><span class="sig-paren">(</span><em>y</em>, <em>l</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pypdevsbbl/extra/rngstreams/distributions.html#poisson"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pypdevsbbl.extra.rngstreams.distributions.poisson" title="Permalink to this definition">¶</a></dt>
- <dd><p>Inverse of the discrete Poisson cdf with lambda l.</p>
- <p>This distribution is a discrete distribution that expresses the probability
- that any given number of intervals occurs in a fixed interval of time.</p>
- <p>The implemented algorithm here is based on the inverse transform sampling algorithm
- on Wikipedia: <a class="reference external" href="https://en.wikipedia.org/wiki/Poisson_distribution">https://en.wikipedia.org/wiki/Poisson_distribution</a></p>
- <p>This has been chosen, because it requires only a single random value for each call.
- Cumulative probabilities are examined in turn until one exceeds the random value.</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
- <li><strong>y</strong> (<em>numeric</em>) – The y-value of the function.</li>
- <li><strong>l</strong> (<em>numeric</em>) – The average number of events that occur (i.e. lambda).</li>
- </ul>
- </td>
- </tr>
- <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">A numpy.int</p>
- </td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
- <dl class="function">
- <dt id="pypdevsbbl.extra.rngstreams.distributions.PT5">
- <code class="descclassname">pypdevsbbl.extra.rngstreams.distributions.</code><code class="descname">PT5</code><span class="sig-paren">(</span><em>y</em>, <em>a</em>, <em>b</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pypdevsbbl/extra/rngstreams/distributions.html#PT5"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pypdevsbbl.extra.rngstreams.distributions.PT5" title="Permalink to this definition">¶</a></dt>
- <dd><p>Inverse of the Pearson Type V cdf.</p>
- <p>This method makes use of the gamma distribution.</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
- <li><strong>y</strong> (<em>numeric</em>) – The y-value of the function.</li>
- <li><strong>a</strong> (<em>numeric</em>) – The shape of the distribution.</li>
- <li><strong>b</strong> (<em>numeric</em>) – The scale of the distribution.</li>
- </ul>
- </td>
- </tr>
- <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">A numpy.float64</p>
- </td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
- <dl class="function">
- <dt id="pypdevsbbl.extra.rngstreams.distributions.pearson5">
- <code class="descclassname">pypdevsbbl.extra.rngstreams.distributions.</code><code class="descname">pearson5</code><span class="sig-paren">(</span><em>y</em>, <em>a</em>, <em>b</em><span class="sig-paren">)</span><a class="headerlink" href="#pypdevsbbl.extra.rngstreams.distributions.pearson5" title="Permalink to this definition">¶</a></dt>
- <dd><p>Alias of <a class="reference internal" href="#pypdevsbbl.extra.rngstreams.distributions.PT5" title="pypdevsbbl.extra.rngstreams.distributions.PT5"><code class="xref py py-meth docutils literal notranslate"><span class="pre">PT5()</span></code></a> for readability.</p>
- </dd></dl>
- <dl class="function">
- <dt id="pypdevsbbl.extra.rngstreams.distributions.PT6">
- <code class="descclassname">pypdevsbbl.extra.rngstreams.distributions.</code><code class="descname">PT6</code><span class="sig-paren">(</span><em>y</em>, <em>a1</em>, <em>a2</em>, <em>b</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pypdevsbbl/extra/rngstreams/distributions.html#PT6"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pypdevsbbl.extra.rngstreams.distributions.PT6" title="Permalink to this definition">¶</a></dt>
- <dd><p>Inverse of the Pearson Type VI cdf.</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
- <li><strong>y</strong> (<em>numeric</em>) – The y-value of the function.</li>
- <li><strong>a1</strong> (<em>numeric</em>) – The shape of the first distribution.</li>
- <li><strong>a2</strong> (<em>numeric</em>) – The shape of the second distribution.</li>
- <li><strong>b</strong> (<em>numeric</em>) – The scale of the distribution.</li>
- </ul>
- </td>
- </tr>
- <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">A numpy.float64</p>
- </td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
- <dl class="function">
- <dt id="pypdevsbbl.extra.rngstreams.distributions.pearson6">
- <code class="descclassname">pypdevsbbl.extra.rngstreams.distributions.</code><code class="descname">pearson6</code><span class="sig-paren">(</span><em>y</em>, <em>a1</em>, <em>a2</em>, <em>b</em><span class="sig-paren">)</span><a class="headerlink" href="#pypdevsbbl.extra.rngstreams.distributions.pearson6" title="Permalink to this definition">¶</a></dt>
- <dd><p>Alias of <a class="reference internal" href="#pypdevsbbl.extra.rngstreams.distributions.PT6" title="pypdevsbbl.extra.rngstreams.distributions.PT6"><code class="xref py py-meth docutils literal notranslate"><span class="pre">PT6()</span></code></a> for readability.</p>
- </dd></dl>
- <dl class="function">
- <dt id="pypdevsbbl.extra.rngstreams.distributions.student">
- <code class="descclassname">pypdevsbbl.extra.rngstreams.distributions.</code><code class="descname">student</code><span class="sig-paren">(</span><em>y</em>, <em>v</em>, <em>step=0.001</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pypdevsbbl/extra/rngstreams/distributions.html#student"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pypdevsbbl.extra.rngstreams.distributions.student" title="Permalink to this definition">¶</a></dt>
- <dd><p>Approximation of the inverse student t-cdf with v degrees of freedom.</p>
- <p>This distribution is used for identifying unknowns in a distribution and occurs
- most often when estimating unknowns. When combined with RNG, these often arise
- in multi-dimensional applications of copula-dependency (dependence between variables).</p>
- <p>This implementation uses a simple sampling method, but requires discretization.
- For this to be accurate, minimize the step size to use.</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
- <li><strong>y</strong> (<em>numeric</em>) – The y-value of the function.</li>
- <li><strong>v</strong> (<em>numeric</em>) – The degrees of freedom to use.</li>
- <li><strong>step</strong> (<em>float</em>) – The stepsize to use when sampling.</li>
- </ul>
- </td>
- </tr>
- <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">A numpy.float64</p>
- </td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
- <dl class="function">
- <dt id="pypdevsbbl.extra.rngstreams.distributions.triangular">
- <code class="descclassname">pypdevsbbl.extra.rngstreams.distributions.</code><code class="descname">triangular</code><span class="sig-paren">(</span><em>y</em>, <em>a</em>, <em>b</em>, <em>c</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pypdevsbbl/extra/rngstreams/distributions.html#triangular"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pypdevsbbl.extra.rngstreams.distributions.triangular" title="Permalink to this definition">¶</a></dt>
- <dd><p>Inverse of the triangular distribution with minimum a, mode b and maximum c.</p>
- <p>This distribution is typically used as a subjective description of
- a population for which there is limited sample data, especially if
- the relationship between variables is known, but the data is scarse.</p>
- <p>Please be aware of the differences between b (mode) and c (maximum). Some sources
- use b and c the other way around (i.e. they use c as mode and b as maximum).</p>
- <p>There are also resources that encode these values in a single number q, which can
- be obtained via (a, b, c w.r.t. the parameters of <em>this</em> function):</p>
- <div class="math notranslate nohighlight">
- \[q = (b - a) / (c - a)\]</div>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
- <li><strong>y</strong> (<em>numeric</em>) – The y-value of the function.</li>
- <li><strong>a</strong> (<em>numeric</em>) – The minimum.</li>
- <li><strong>b</strong> (<em>numeric</em>) – The mode.</li>
- <li><strong>c</strong> (<em>numeric</em>) – The maximum.</li>
- </ul>
- </td>
- </tr>
- <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">A numpy.float64</p>
- </td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
- <dl class="function">
- <dt id="pypdevsbbl.extra.rngstreams.distributions.uniform">
- <code class="descclassname">pypdevsbbl.extra.rngstreams.distributions.</code><code class="descname">uniform</code><span class="sig-paren">(</span><em>y</em>, <em>a</em>, <em>b</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pypdevsbbl/extra/rngstreams/distributions.html#uniform"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pypdevsbbl.extra.rngstreams.distributions.uniform" title="Permalink to this definition">¶</a></dt>
- <dd><p>Inverse of the uniform cdf over the range (a, b).</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
- <li><strong>y</strong> (<em>numeric</em>) – The y-value of the function.</li>
- <li><strong>a</strong> (<em>numeric</em>) – The lower bound of the distribution.</li>
- <li><strong>b</strong> (<em>numeric</em>) – The upper bound of the distribution.</li>
- </ul>
- </td>
- </tr>
- <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">A numpy.float64 in the range (a, b).</p>
- </td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
- <dl class="function">
- <dt id="pypdevsbbl.extra.rngstreams.distributions.uniformInt">
- <code class="descclassname">pypdevsbbl.extra.rngstreams.distributions.</code><code class="descname">uniformInt</code><span class="sig-paren">(</span><em>y</em>, <em>a</em>, <em>b</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pypdevsbbl/extra/rngstreams/distributions.html#uniformInt"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pypdevsbbl.extra.rngstreams.distributions.uniformInt" title="Permalink to this definition">¶</a></dt>
- <dd><p>Inverse of the rounded uniform cdf over the range [a, b].</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
- <li><strong>y</strong> (<em>numeric</em>) – The y-value of the function.</li>
- <li><strong>a</strong> (<em>numeric</em>) – The lower bound of the distribution.</li>
- <li><strong>b</strong> (<em>numeric</em>) – The upper bound of the distribution.</li>
- </ul>
- </td>
- </tr>
- <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">A numpy.float64 in the range [a, b].</p>
- </td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
- <dl class="function">
- <dt id="pypdevsbbl.extra.rngstreams.distributions.wald">
- <code class="descclassname">pypdevsbbl.extra.rngstreams.distributions.</code><code class="descname">wald</code><span class="sig-paren">(</span><em>y</em>, <em>mu</em>, <em>l</em>, <em>step=0.001</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pypdevsbbl/extra/rngstreams/distributions.html#wald"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pypdevsbbl.extra.rngstreams.distributions.wald" title="Permalink to this definition">¶</a></dt>
- <dd><p>Approximation of the inverse Wald cdf.</p>
- <p>Also known as the Inverse Gaussian Distribution, the Wald distribution
- is commonly used to compute the properties of the Brownian Motion.</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
- <li><strong>y</strong> (<em>numeric</em>) – The y-value of the function.</li>
- <li><strong>mu</strong> (<em>numeric</em>) – The mean of the distribution.</li>
- <li><strong>l</strong> (<em>numeric</em>) – The shape of the distribution.</li>
- <li><strong>step</strong> (<em>float</em>) – The stepsize to use when sampling.</li>
- </ul>
- </td>
- </tr>
- <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">A numpy.float64</p>
- </td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
- <dl class="function">
- <dt id="pypdevsbbl.extra.rngstreams.distributions.weibull">
- <code class="descclassname">pypdevsbbl.extra.rngstreams.distributions.</code><code class="descname">weibull</code><span class="sig-paren">(</span><em>y</em>, <em>a</em>, <em>b</em>, <em>v=0</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pypdevsbbl/extra/rngstreams/distributions.html#weibull"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pypdevsbbl.extra.rngstreams.distributions.weibull" title="Permalink to this definition">¶</a></dt>
- <dd><p>Inverse of the weibell cdf with scale a, shape b and location v.</p>
- <p>This distribution is most commonly used to predict the lifetime
- of technical equipment. The location is not often used, in which
- cases it is to be set at 0 (also the default).</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
- <li><strong>y</strong> (<em>numeric</em>) – The y-value of the function.</li>
- <li><strong>a</strong> (<em>numeric</em>) – The scale of the curve.</li>
- <li><strong>b</strong> (<em>numeric</em>) – The shape parameter.</li>
- <li><strong>v</strong> (<em>numeric</em>) – The location parameter.
- Defaults to 0 (not often used).</li>
- </ul>
- </td>
- </tr>
- <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">A numpy.float64</p>
- </td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
- <dl class="function">
- <dt id="pypdevsbbl.extra.rngstreams.distributions.zipf">
- <code class="descclassname">pypdevsbbl.extra.rngstreams.distributions.</code><code class="descname">zipf</code><span class="sig-paren">(</span><em>y</em>, <em>s</em>, <em>N: int</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pypdevsbbl/extra/rngstreams/distributions.html#zipf"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pypdevsbbl.extra.rngstreams.distributions.zipf" title="Permalink to this definition">¶</a></dt>
- <dd><p>Inverse of a discrete cdf w.r.t. Zipf’s law.</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
- <li><strong>y</strong> (<em>numeric</em>) – The y-value of the function.</li>
- <li><strong>s</strong> (<em>numeric</em>) – The degrees of freedom to use.</li>
- <li><strong>N</strong> (<em>int</em>) – The degrees of freedom to use.</li>
- </ul>
- </td>
- </tr>
- <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">A numpy.float64</p>
- </td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
- <dl class="function">
- <dt id="pypdevsbbl.extra.rngstreams.distributions._sample">
- <code class="descclassname">pypdevsbbl.extra.rngstreams.distributions.</code><code class="descname">_sample</code><span class="sig-paren">(</span><em>y</em>, <em>f</em>, <em>step</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pypdevsbbl/extra/rngstreams/distributions.html#_sample"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pypdevsbbl.extra.rngstreams.distributions._sample" title="Permalink to this definition">¶</a></dt>
- <dd><p>Sampling method.</p>
- </dd></dl>
- </div>
- </div>
- </div>
- </div>
- <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
- <div class="sphinxsidebarwrapper">
- <h4>Previous topic</h4>
- <p class="topless"><a href="pypdevsbbl.extra.rngstreams.html"
- title="previous chapter">pypdevsbbl.extra.rngstreams package</a></p>
- <h4>Next topic</h4>
- <p class="topless"><a href="pypdevsbbl.extra.equations.html"
- title="next chapter">pypdevsbbl.extra.equations module</a></p>
- <div id="searchbox" style="display: none" role="search">
- <h3>Quick search</h3>
- <div class="searchformwrapper">
- <form class="search" action="search.html" method="get">
- <input type="text" name="q" />
- <input type="submit" value="Go" />
- <input type="hidden" name="check_keywords" value="yes" />
- <input type="hidden" name="area" value="default" />
- </form>
- </div>
- </div>
- <script type="text/javascript">$('#searchbox').show(0);</script>
- </div>
- </div>
- <div class="clearer"></div>
- </div>
- <div class="related" role="navigation" aria-label="related navigation">
- <h3>Navigation</h3>
- <ul>
- <li class="right" style="margin-right: 10px">
- <a href="genindex.html" title="General Index"
- >index</a></li>
- <li class="right" >
- <a href="py-modindex.html" title="Python Module Index"
- >modules</a> |</li>
- <li class="right" >
- <a href="pypdevsbbl.extra.equations.html" title="pypdevsbbl.extra.equations module"
- >next</a> |</li>
- <li class="right" >
- <a href="pypdevsbbl.extra.rngstreams.html" title="pypdevsbbl.extra.rngstreams package"
- >previous</a> |</li>
- <li class="nav-item nav-item-0"><a href="index.html">Python(P)DEVS-BBL documentation</a> »</li>
- <li class="nav-item nav-item-1"><a href="pypdevsbbl.html" >pypdevsbbl package</a> »</li>
- <li class="nav-item nav-item-2"><a href="pypdevsbbl.extra.html" >pypdevsbbl.extra package</a> »</li>
- <li class="nav-item nav-item-3"><a href="pypdevsbbl.extra.rngstreams.html" >pypdevsbbl.extra.rngstreams package</a> »</li>
- </ul>
- </div>
- <div class="footer" role="contentinfo">
- © Copyright 2020, Randy Paredis.
- Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.8.5.
- </div>
- </body>
- </html>
|