This file is indexed.

/usr/share/doc/libghc-statistics-doc/html/Statistics-Distribution.html is in libghc-statistics-doc 0.13.3.0-3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<!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/html; charset=UTF-8" /><title>Statistics.Distribution</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script src="file:///usr/share/javascript/mathjax/MathJax.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Statistics-Distribution.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Statistics-Distribution.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">statistics-0.13.3.0: A library of statistical types, data, and functions</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Copyright</th><td>(c) 2009 Bryan O'Sullivan</td></tr><tr><th>License</th><td>BSD3</td></tr><tr><th>Maintainer</th><td>bos@serpentine.com</td></tr><tr><th>Stability</th><td>experimental</td></tr><tr><th>Portability</th><td>portable</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">Statistics.Distribution</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Type classes</a><ul><li><a href="#g:2">Distribution statistics</a></li><li><a href="#g:3">Random number generation</a></li></ul></li><li><a href="#g:4">Helper functions</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Type classes for probability distributions</p></div></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><span class="keyword">class</span> <a href="#t:Distribution">Distribution</a> d <span class="keyword">where</span><ul class="subs"></ul></li><li class="src short"><span class="keyword">class</span> <a href="Statistics-Distribution.html#t:Distribution">Distribution</a> d =&gt; <a href="#t:DiscreteDistr">DiscreteDistr</a> d <span class="keyword">where</span><ul class="subs"></ul></li><li class="src short"><span class="keyword">class</span> <a href="Statistics-Distribution.html#t:Distribution">Distribution</a> d =&gt; <a href="#t:ContDistr">ContDistr</a> d <span class="keyword">where</span><ul class="subs"></ul></li><li class="src short"><span class="keyword">class</span> <a href="Statistics-Distribution.html#t:Distribution">Distribution</a> d =&gt; <a href="#t:MaybeMean">MaybeMean</a> d <span class="keyword">where</span><ul class="subs"></ul></li><li class="src short"><span class="keyword">class</span> <a href="Statistics-Distribution.html#t:MaybeMean">MaybeMean</a> d =&gt; <a href="#t:Mean">Mean</a> d <span class="keyword">where</span><ul class="subs"></ul></li><li class="src short"><span class="keyword">class</span> <a href="Statistics-Distribution.html#t:MaybeMean">MaybeMean</a> d =&gt; <a href="#t:MaybeVariance">MaybeVariance</a> d <span class="keyword">where</span><ul class="subs"></ul></li><li class="src short"><span class="keyword">class</span> (<a href="Statistics-Distribution.html#t:Mean">Mean</a> d, <a href="Statistics-Distribution.html#t:MaybeVariance">MaybeVariance</a> d) =&gt; <a href="#t:Variance">Variance</a> d <span class="keyword">where</span><ul class="subs"></ul></li><li class="src short"><span class="keyword">class</span> <a href="Statistics-Distribution.html#t:Distribution">Distribution</a> d =&gt; <a href="#t:MaybeEntropy">MaybeEntropy</a> d <span class="keyword">where</span><ul class="subs"></ul></li><li class="src short"><span class="keyword">class</span> <a href="Statistics-Distribution.html#t:MaybeEntropy">MaybeEntropy</a> d =&gt; <a href="#t:Entropy">Entropy</a> d <span class="keyword">where</span><ul class="subs"></ul></li><li class="src short"><span class="keyword">class</span> <a href="Statistics-Distribution.html#t:Distribution">Distribution</a> d =&gt; <a href="#t:ContGen">ContGen</a> d <span class="keyword">where</span><ul class="subs"></ul></li><li class="src short"><span class="keyword">class</span> (<a href="Statistics-Distribution.html#t:DiscreteDistr">DiscreteDistr</a> d, <a href="Statistics-Distribution.html#t:ContGen">ContGen</a> d) =&gt; <a href="#t:DiscreteGen">DiscreteGen</a> d <span class="keyword">where</span><ul class="subs"></ul></li><li class="src short"><a href="#v:genContinous">genContinous</a> :: (<a href="Statistics-Distribution.html#t:ContDistr">ContDistr</a> d, <a href="file:///usr/share/doc/libghc-primitive-doc/html/Control-Monad-Primitive.html#t:PrimMonad">PrimMonad</a> m) =&gt; d -&gt; <a href="file:///usr/share/doc/libghc-mwc-random-doc/html/System-Random-MWC.html#t:Gen">Gen</a> (<a href="file:///usr/share/doc/libghc-primitive-doc/html/Control-Monad-Primitive.html#t:PrimState">PrimState</a> m) -&gt; m <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a></li><li class="src short"><a href="#v:findRoot">findRoot</a> :: <a href="Statistics-Distribution.html#t:ContDistr">ContDistr</a> d =&gt; d -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a></li><li class="src short"><a href="#v:sumProbabilities">sumProbabilities</a> :: <a href="Statistics-Distribution.html#t:DiscreteDistr">DiscreteDistr</a> d =&gt; d -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a></li></ul></div><div id="interface"><h1 id="g:1">Type classes</h1><div class="top"><p class="src"><span class="keyword">class</span> <a id="t:Distribution" class="def">Distribution</a> d <span class="keyword">where</span> <a href="src/Statistics-Distribution.html#Distribution" class="link">Source</a> <a href="#t:Distribution" class="selflink">#</a></p><div class="doc"><p>Type class common to all distributions. Only c.d.f. could be
 defined for both discrete and continous distributions.</p></div><div class="subs minimal"><p class="caption">Minimal complete definition</p><p class="src"><a href="Statistics-Distribution.html#v:cumulative">cumulative</a></p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a id="v:cumulative" class="def">cumulative</a> :: d -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#cumulative" class="link">Source</a> <a href="#v:cumulative" class="selflink">#</a></p><div class="doc"><p>Cumulative distribution function.  The probability that a
 random variable <em>X</em> is less or equal than <em>x</em>,
 i.e. P(<em>X</em>&#8804;<em>x</em>). Cumulative should be defined for
 infinities as well:</p><pre>cumulative d +&#8734; = 1
cumulative d -&#8734; = 0</pre></div><p class="src"><a id="v:complCumulative" class="def">complCumulative</a> :: d -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#complCumulative" class="link">Source</a> <a href="#v:complCumulative" class="selflink">#</a></p><div class="doc"><p>One's complement of cumulative distibution:</p><pre>complCumulative d x = 1 - cumulative d x</pre><p>It's useful when one is interested in P(<em>X</em>&gt;<em>x</em>) and
 expression on the right side begin to lose precision. This
 function have default implementation but implementors are
 encouraged to provide more precise implementation.</p></div></div><div class="subs instances"><p id="control.i:Distribution" class="caption collapser" onclick="toggleSection('i:Distribution')">Instances</p><div id="section.i:Distribution" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Distribution:Distribution:1" class="instance expander" onclick="toggleSection('i:ic:Distribution:Distribution:1')"></span> <a href="Statistics-Distribution.html#t:Distribution">Distribution</a> <a href="Statistics-Distribution-Beta.html#t:BetaDistribution">BetaDistribution</a></span> <a href="src/Statistics-Distribution.html#line-68" class="link">Source</a> <a href="#t:Distribution" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Distribution:Distribution:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:cumulative">cumulative</a> :: <a href="Statistics-Distribution-Beta.html#t:BetaDistribution">BetaDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#cumulative" class="link">Source</a> <a href="#v:cumulative" class="selflink">#</a></p><p class="src"><a href="#v:complCumulative">complCumulative</a> :: <a href="Statistics-Distribution-Beta.html#t:BetaDistribution">BetaDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#complCumulative" class="link">Source</a> <a href="#v:complCumulative" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Distribution:Distribution:2" class="instance expander" onclick="toggleSection('i:ic:Distribution:Distribution:2')"></span> <a href="Statistics-Distribution.html#t:Distribution">Distribution</a> <a href="Statistics-Distribution-Binomial.html#t:BinomialDistribution">BinomialDistribution</a></span> <a href="src/Statistics-Distribution.html#line-53" class="link">Source</a> <a href="#t:Distribution" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Distribution:Distribution:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:cumulative">cumulative</a> :: <a href="Statistics-Distribution-Binomial.html#t:BinomialDistribution">BinomialDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#cumulative" class="link">Source</a> <a href="#v:cumulative" class="selflink">#</a></p><p class="src"><a href="#v:complCumulative">complCumulative</a> :: <a href="Statistics-Distribution-Binomial.html#t:BinomialDistribution">BinomialDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#complCumulative" class="link">Source</a> <a href="#v:complCumulative" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Distribution:Distribution:3" class="instance expander" onclick="toggleSection('i:ic:Distribution:Distribution:3')"></span> <a href="Statistics-Distribution.html#t:Distribution">Distribution</a> <a href="Statistics-Distribution-Poisson.html#t:PoissonDistribution">PoissonDistribution</a></span> <a href="src/Statistics-Distribution.html#line-49" class="link">Source</a> <a href="#t:Distribution" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Distribution:Distribution:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:cumulative">cumulative</a> :: <a href="Statistics-Distribution-Poisson.html#t:PoissonDistribution">PoissonDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#cumulative" class="link">Source</a> <a href="#v:cumulative" class="selflink">#</a></p><p class="src"><a href="#v:complCumulative">complCumulative</a> :: <a href="Statistics-Distribution-Poisson.html#t:PoissonDistribution">PoissonDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#complCumulative" class="link">Source</a> <a href="#v:complCumulative" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Distribution:Distribution:4" class="instance expander" onclick="toggleSection('i:ic:Distribution:Distribution:4')"></span> <a href="Statistics-Distribution.html#t:Distribution">Distribution</a> <a href="Statistics-Distribution-CauchyLorentz.html#t:CauchyDistribution">CauchyDistribution</a></span> <a href="src/Statistics-Distribution.html#line-65" class="link">Source</a> <a href="#t:Distribution" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Distribution:Distribution:4" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:cumulative">cumulative</a> :: <a href="Statistics-Distribution-CauchyLorentz.html#t:CauchyDistribution">CauchyDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#cumulative" class="link">Source</a> <a href="#v:cumulative" class="selflink">#</a></p><p class="src"><a href="#v:complCumulative">complCumulative</a> :: <a href="Statistics-Distribution-CauchyLorentz.html#t:CauchyDistribution">CauchyDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#complCumulative" class="link">Source</a> <a href="#v:complCumulative" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Distribution:Distribution:5" class="instance expander" onclick="toggleSection('i:ic:Distribution:Distribution:5')"></span> <a href="Statistics-Distribution.html#t:Distribution">Distribution</a> <a href="Statistics-Distribution-ChiSquared.html#t:ChiSquared">ChiSquared</a></span> <a href="src/Statistics-Distribution.html#line-56" class="link">Source</a> <a href="#t:Distribution" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Distribution:Distribution:5" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:cumulative">cumulative</a> :: <a href="Statistics-Distribution-ChiSquared.html#t:ChiSquared">ChiSquared</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#cumulative" class="link">Source</a> <a href="#v:cumulative" class="selflink">#</a></p><p class="src"><a href="#v:complCumulative">complCumulative</a> :: <a href="Statistics-Distribution-ChiSquared.html#t:ChiSquared">ChiSquared</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#complCumulative" class="link">Source</a> <a href="#v:complCumulative" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Distribution:Distribution:6" class="instance expander" onclick="toggleSection('i:ic:Distribution:Distribution:6')"></span> <a href="Statistics-Distribution.html#t:Distribution">Distribution</a> <a href="Statistics-Distribution-Exponential.html#t:ExponentialDistribution">ExponentialDistribution</a></span> <a href="src/Statistics-Distribution.html#line-49" class="link">Source</a> <a href="#t:Distribution" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Distribution:Distribution:6" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:cumulative">cumulative</a> :: <a href="Statistics-Distribution-Exponential.html#t:ExponentialDistribution">ExponentialDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#cumulative" class="link">Source</a> <a href="#v:cumulative" class="selflink">#</a></p><p class="src"><a href="#v:complCumulative">complCumulative</a> :: <a href="Statistics-Distribution-Exponential.html#t:ExponentialDistribution">ExponentialDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#complCumulative" class="link">Source</a> <a href="#v:complCumulative" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Distribution:Distribution:7" class="instance expander" onclick="toggleSection('i:ic:Distribution:Distribution:7')"></span> <a href="Statistics-Distribution.html#t:Distribution">Distribution</a> <a href="Statistics-Distribution-Gamma.html#t:GammaDistribution">GammaDistribution</a></span> <a href="src/Statistics-Distribution.html#line-71" class="link">Source</a> <a href="#t:Distribution" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Distribution:Distribution:7" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:cumulative">cumulative</a> :: <a href="Statistics-Distribution-Gamma.html#t:GammaDistribution">GammaDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#cumulative" class="link">Source</a> <a href="#v:cumulative" class="selflink">#</a></p><p class="src"><a href="#v:complCumulative">complCumulative</a> :: <a href="Statistics-Distribution-Gamma.html#t:GammaDistribution">GammaDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#complCumulative" class="link">Source</a> <a href="#v:complCumulative" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Distribution:Distribution:8" class="instance expander" onclick="toggleSection('i:ic:Distribution:Distribution:8')"></span> <a href="Statistics-Distribution.html#t:Distribution">Distribution</a> <a href="Statistics-Distribution-Geometric.html#t:GeometricDistribution0">GeometricDistribution0</a></span> <a href="src/Statistics-Distribution.html#line-128" class="link">Source</a> <a href="#t:Distribution" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Distribution:Distribution:8" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:cumulative">cumulative</a> :: <a href="Statistics-Distribution-Geometric.html#t:GeometricDistribution0">GeometricDistribution0</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#cumulative" class="link">Source</a> <a href="#v:cumulative" class="selflink">#</a></p><p class="src"><a href="#v:complCumulative">complCumulative</a> :: <a href="Statistics-Distribution-Geometric.html#t:GeometricDistribution0">GeometricDistribution0</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#complCumulative" class="link">Source</a> <a href="#v:complCumulative" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Distribution:Distribution:9" class="instance expander" onclick="toggleSection('i:ic:Distribution:Distribution:9')"></span> <a href="Statistics-Distribution.html#t:Distribution">Distribution</a> <a href="Statistics-Distribution-Geometric.html#t:GeometricDistribution">GeometricDistribution</a></span> <a href="src/Statistics-Distribution.html#line-58" class="link">Source</a> <a href="#t:Distribution" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Distribution:Distribution:9" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:cumulative">cumulative</a> :: <a href="Statistics-Distribution-Geometric.html#t:GeometricDistribution">GeometricDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#cumulative" class="link">Source</a> <a href="#v:cumulative" class="selflink">#</a></p><p class="src"><a href="#v:complCumulative">complCumulative</a> :: <a href="Statistics-Distribution-Geometric.html#t:GeometricDistribution">GeometricDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#complCumulative" class="link">Source</a> <a href="#v:complCumulative" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Distribution:Distribution:10" class="instance expander" onclick="toggleSection('i:ic:Distribution:Distribution:10')"></span> <a href="Statistics-Distribution.html#t:Distribution">Distribution</a> <a href="Statistics-Distribution-Hypergeometric.html#t:HypergeometricDistribution">HypergeometricDistribution</a></span> <a href="src/Statistics-Distribution.html#line-53" class="link">Source</a> <a href="#t:Distribution" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Distribution:Distribution:10" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:cumulative">cumulative</a> :: <a href="Statistics-Distribution-Hypergeometric.html#t:HypergeometricDistribution">HypergeometricDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#cumulative" class="link">Source</a> <a href="#v:cumulative" class="selflink">#</a></p><p class="src"><a href="#v:complCumulative">complCumulative</a> :: <a href="Statistics-Distribution-Hypergeometric.html#t:HypergeometricDistribution">HypergeometricDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#complCumulative" class="link">Source</a> <a href="#v:complCumulative" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Distribution:Distribution:11" class="instance expander" onclick="toggleSection('i:ic:Distribution:Distribution:11')"></span> <a href="Statistics-Distribution.html#t:Distribution">Distribution</a> <a href="Statistics-Distribution-Normal.html#t:NormalDistribution">NormalDistribution</a></span> <a href="src/Statistics-Distribution.html#line-50" class="link">Source</a> <a href="#t:Distribution" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Distribution:Distribution:11" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:cumulative">cumulative</a> :: <a href="Statistics-Distribution-Normal.html#t:NormalDistribution">NormalDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#cumulative" class="link">Source</a> <a href="#v:cumulative" class="selflink">#</a></p><p class="src"><a href="#v:complCumulative">complCumulative</a> :: <a href="Statistics-Distribution-Normal.html#t:NormalDistribution">NormalDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#complCumulative" class="link">Source</a> <a href="#v:complCumulative" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Distribution:Distribution:12" class="instance expander" onclick="toggleSection('i:ic:Distribution:Distribution:12')"></span> <a href="Statistics-Distribution.html#t:Distribution">Distribution</a> <a href="Statistics-Distribution-StudentT.html#t:StudentT">StudentT</a></span> <a href="src/Statistics-Distribution.html#line-46" class="link">Source</a> <a href="#t:Distribution" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Distribution:Distribution:12" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:cumulative">cumulative</a> :: <a href="Statistics-Distribution-StudentT.html#t:StudentT">StudentT</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#cumulative" class="link">Source</a> <a href="#v:cumulative" class="selflink">#</a></p><p class="src"><a href="#v:complCumulative">complCumulative</a> :: <a href="Statistics-Distribution-StudentT.html#t:StudentT">StudentT</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#complCumulative" class="link">Source</a> <a href="#v:complCumulative" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Distribution:Distribution:13" class="instance expander" onclick="toggleSection('i:ic:Distribution:Distribution:13')"></span> <a href="Statistics-Distribution.html#t:Distribution">Distribution</a> <a href="Statistics-Distribution-Uniform.html#t:UniformDistribution">UniformDistribution</a></span> <a href="src/Statistics-Distribution.html#line-53" class="link">Source</a> <a href="#t:Distribution" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Distribution:Distribution:13" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:cumulative">cumulative</a> :: <a href="Statistics-Distribution-Uniform.html#t:UniformDistribution">UniformDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#cumulative" class="link">Source</a> <a href="#v:cumulative" class="selflink">#</a></p><p class="src"><a href="#v:complCumulative">complCumulative</a> :: <a href="Statistics-Distribution-Uniform.html#t:UniformDistribution">UniformDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#complCumulative" class="link">Source</a> <a href="#v:complCumulative" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Distribution:Distribution:14" class="instance expander" onclick="toggleSection('i:ic:Distribution:Distribution:14')"></span> <a href="Statistics-Distribution.html#t:Distribution">Distribution</a> <a href="Statistics-Distribution-FDistribution.html#t:FDistribution">FDistribution</a></span> <a href="src/Statistics-Distribution.html#line-55" class="link">Source</a> <a href="#t:Distribution" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Distribution:Distribution:14" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:cumulative">cumulative</a> :: <a href="Statistics-Distribution-FDistribution.html#t:FDistribution">FDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#cumulative" class="link">Source</a> <a href="#v:cumulative" class="selflink">#</a></p><p class="src"><a href="#v:complCumulative">complCumulative</a> :: <a href="Statistics-Distribution-FDistribution.html#t:FDistribution">FDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#complCumulative" class="link">Source</a> <a href="#v:complCumulative" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Distribution:Distribution:15" class="instance expander" onclick="toggleSection('i:ic:Distribution:Distribution:15')"></span> <a href="Statistics-Distribution.html#t:Distribution">Distribution</a> <a href="Statistics-Distribution-Laplace.html#t:LaplaceDistribution">LaplaceDistribution</a></span> <a href="src/Statistics-Distribution.html#line-56" class="link">Source</a> <a href="#t:Distribution" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Distribution:Distribution:15" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:cumulative">cumulative</a> :: <a href="Statistics-Distribution-Laplace.html#t:LaplaceDistribution">LaplaceDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#cumulative" class="link">Source</a> <a href="#v:cumulative" class="selflink">#</a></p><p class="src"><a href="#v:complCumulative">complCumulative</a> :: <a href="Statistics-Distribution-Laplace.html#t:LaplaceDistribution">LaplaceDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#complCumulative" class="link">Source</a> <a href="#v:complCumulative" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Distribution:Distribution:16" class="instance expander" onclick="toggleSection('i:ic:Distribution:Distribution:16')"></span> <a href="Statistics-Distribution.html#t:Distribution">Distribution</a> d =&gt; <a href="Statistics-Distribution.html#t:Distribution">Distribution</a> (<a href="Statistics-Distribution-Transform.html#t:LinearTransform">LinearTransform</a> d)</span> <a href="src/Statistics-Distribution.html#line-63" class="link">Source</a> <a href="#t:Distribution" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Distribution:Distribution:16" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:cumulative">cumulative</a> :: <a href="Statistics-Distribution-Transform.html#t:LinearTransform">LinearTransform</a> d -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#cumulative" class="link">Source</a> <a href="#v:cumulative" class="selflink">#</a></p><p class="src"><a href="#v:complCumulative">complCumulative</a> :: <a href="Statistics-Distribution-Transform.html#t:LinearTransform">LinearTransform</a> d -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#complCumulative" class="link">Source</a> <a href="#v:complCumulative" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">class</span> <a href="Statistics-Distribution.html#t:Distribution">Distribution</a> d =&gt; <a id="t:DiscreteDistr" class="def">DiscreteDistr</a> d <span class="keyword">where</span> <a href="src/Statistics-Distribution.html#DiscreteDistr" class="link">Source</a> <a href="#t:DiscreteDistr" class="selflink">#</a></p><div class="doc"><p>Discrete probability distribution.</p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a id="v:probability" class="def">probability</a> :: d -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#probability" class="link">Source</a> <a href="#v:probability" class="selflink">#</a></p><div class="doc"><p>Probability of n-th outcome.</p></div><p class="src"><a id="v:logProbability" class="def">logProbability</a> :: d -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#logProbability" class="link">Source</a> <a href="#v:logProbability" class="selflink">#</a></p><div class="doc"><p>Logarithm of probability of n-th outcome</p></div></div><div class="subs instances"><p id="control.i:DiscreteDistr" class="caption collapser" onclick="toggleSection('i:DiscreteDistr')">Instances</p><div id="section.i:DiscreteDistr" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:DiscreteDistr:DiscreteDistr:1" class="instance expander" onclick="toggleSection('i:ic:DiscreteDistr:DiscreteDistr:1')"></span> <a href="Statistics-Distribution.html#t:DiscreteDistr">DiscreteDistr</a> <a href="Statistics-Distribution-Binomial.html#t:BinomialDistribution">BinomialDistribution</a></span> <a href="src/Statistics-Distribution.html#line-56" class="link">Source</a> <a href="#t:DiscreteDistr" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:DiscreteDistr:DiscreteDistr:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:probability">probability</a> :: <a href="Statistics-Distribution-Binomial.html#t:BinomialDistribution">BinomialDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#probability" class="link">Source</a> <a href="#v:probability" class="selflink">#</a></p><p class="src"><a href="#v:logProbability">logProbability</a> :: <a href="Statistics-Distribution-Binomial.html#t:BinomialDistribution">BinomialDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#logProbability" class="link">Source</a> <a href="#v:logProbability" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:DiscreteDistr:DiscreteDistr:2" class="instance expander" onclick="toggleSection('i:ic:DiscreteDistr:DiscreteDistr:2')"></span> <a href="Statistics-Distribution.html#t:DiscreteDistr">DiscreteDistr</a> <a href="Statistics-Distribution-Poisson.html#t:PoissonDistribution">PoissonDistribution</a></span> <a href="src/Statistics-Distribution.html#line-56" class="link">Source</a> <a href="#t:DiscreteDistr" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:DiscreteDistr:DiscreteDistr:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:probability">probability</a> :: <a href="Statistics-Distribution-Poisson.html#t:PoissonDistribution">PoissonDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#probability" class="link">Source</a> <a href="#v:probability" class="selflink">#</a></p><p class="src"><a href="#v:logProbability">logProbability</a> :: <a href="Statistics-Distribution-Poisson.html#t:PoissonDistribution">PoissonDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#logProbability" class="link">Source</a> <a href="#v:logProbability" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:DiscreteDistr:DiscreteDistr:3" class="instance expander" onclick="toggleSection('i:ic:DiscreteDistr:DiscreteDistr:3')"></span> <a href="Statistics-Distribution.html#t:DiscreteDistr">DiscreteDistr</a> <a href="Statistics-Distribution-Geometric.html#t:GeometricDistribution0">GeometricDistribution0</a></span> <a href="src/Statistics-Distribution.html#line-131" class="link">Source</a> <a href="#t:DiscreteDistr" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:DiscreteDistr:DiscreteDistr:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:probability">probability</a> :: <a href="Statistics-Distribution-Geometric.html#t:GeometricDistribution0">GeometricDistribution0</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#probability" class="link">Source</a> <a href="#v:probability" class="selflink">#</a></p><p class="src"><a href="#v:logProbability">logProbability</a> :: <a href="Statistics-Distribution-Geometric.html#t:GeometricDistribution0">GeometricDistribution0</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#logProbability" class="link">Source</a> <a href="#v:logProbability" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:DiscreteDistr:DiscreteDistr:4" class="instance expander" onclick="toggleSection('i:ic:DiscreteDistr:DiscreteDistr:4')"></span> <a href="Statistics-Distribution.html#t:DiscreteDistr">DiscreteDistr</a> <a href="Statistics-Distribution-Geometric.html#t:GeometricDistribution">GeometricDistribution</a></span> <a href="src/Statistics-Distribution.html#line-61" class="link">Source</a> <a href="#t:DiscreteDistr" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:DiscreteDistr:DiscreteDistr:4" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:probability">probability</a> :: <a href="Statistics-Distribution-Geometric.html#t:GeometricDistribution">GeometricDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#probability" class="link">Source</a> <a href="#v:probability" class="selflink">#</a></p><p class="src"><a href="#v:logProbability">logProbability</a> :: <a href="Statistics-Distribution-Geometric.html#t:GeometricDistribution">GeometricDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#logProbability" class="link">Source</a> <a href="#v:logProbability" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:DiscreteDistr:DiscreteDistr:5" class="instance expander" onclick="toggleSection('i:ic:DiscreteDistr:DiscreteDistr:5')"></span> <a href="Statistics-Distribution.html#t:DiscreteDistr">DiscreteDistr</a> <a href="Statistics-Distribution-Hypergeometric.html#t:HypergeometricDistribution">HypergeometricDistribution</a></span> <a href="src/Statistics-Distribution.html#line-56" class="link">Source</a> <a href="#t:DiscreteDistr" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:DiscreteDistr:DiscreteDistr:5" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:probability">probability</a> :: <a href="Statistics-Distribution-Hypergeometric.html#t:HypergeometricDistribution">HypergeometricDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#probability" class="link">Source</a> <a href="#v:probability" class="selflink">#</a></p><p class="src"><a href="#v:logProbability">logProbability</a> :: <a href="Statistics-Distribution-Hypergeometric.html#t:HypergeometricDistribution">HypergeometricDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#logProbability" class="link">Source</a> <a href="#v:logProbability" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">class</span> <a href="Statistics-Distribution.html#t:Distribution">Distribution</a> d =&gt; <a id="t:ContDistr" class="def">ContDistr</a> d <span class="keyword">where</span> <a href="src/Statistics-Distribution.html#ContDistr" class="link">Source</a> <a href="#t:ContDistr" class="selflink">#</a></p><div class="doc"><p>Continuous probability distributuion.</p><p>Minimal complete definition is <code><a href="Statistics-Distribution.html#v:quantile">quantile</a></code> and either <code><a href="Statistics-Distribution.html#v:density">density</a></code> or
   <code><a href="Statistics-Distribution.html#v:logDensity">logDensity</a></code>.</p></div><div class="subs minimal"><p class="caption">Minimal complete definition</p><p class="src"><a href="Statistics-Distribution.html#v:quantile">quantile</a></p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a id="v:density" class="def">density</a> :: d -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#density" class="link">Source</a> <a href="#v:density" class="selflink">#</a></p><div class="doc"><p>Probability density function. Probability that random
 variable <em>X</em> lies in the infinitesimal interval
 [<em>x</em>,<em>x+</em>&#948;<em>x</em>) equal to <em>density(x)</em>&#8901;&#948;<em>x</em></p></div><p class="src"><a id="v:quantile" class="def">quantile</a> :: d -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#quantile" class="link">Source</a> <a href="#v:quantile" class="selflink">#</a></p><div class="doc"><p>Inverse of the cumulative distribution function. The value
 <em>x</em> for which P(<em>X</em>&#8804;<em>x</em>) = <em>p</em>. If probability is outside
 of [0,1] range function should call <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#v:error">error</a></code></p></div><p class="src"><a id="v:logDensity" class="def">logDensity</a> :: d -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#logDensity" class="link">Source</a> <a href="#v:logDensity" class="selflink">#</a></p><div class="doc"><p>Natural logarithm of density.</p></div></div><div class="subs instances"><p id="control.i:ContDistr" class="caption collapser" onclick="toggleSection('i:ContDistr')">Instances</p><div id="section.i:ContDistr" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ContDistr:ContDistr:1" class="instance expander" onclick="toggleSection('i:ic:ContDistr:ContDistr:1')"></span> <a href="Statistics-Distribution.html#t:ContDistr">ContDistr</a> <a href="Statistics-Distribution-Beta.html#t:BetaDistribution">BetaDistribution</a></span> <a href="src/Statistics-Distribution.html#line-97" class="link">Source</a> <a href="#t:ContDistr" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:ContDistr:ContDistr:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:density">density</a> :: <a href="Statistics-Distribution-Beta.html#t:BetaDistribution">BetaDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#density" class="link">Source</a> <a href="#v:density" class="selflink">#</a></p><p class="src"><a href="#v:quantile">quantile</a> :: <a href="Statistics-Distribution-Beta.html#t:BetaDistribution">BetaDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#quantile" class="link">Source</a> <a href="#v:quantile" class="selflink">#</a></p><p class="src"><a href="#v:logDensity">logDensity</a> :: <a href="Statistics-Distribution-Beta.html#t:BetaDistribution">BetaDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#logDensity" class="link">Source</a> <a href="#v:logDensity" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ContDistr:ContDistr:2" class="instance expander" onclick="toggleSection('i:ic:ContDistr:ContDistr:2')"></span> <a href="Statistics-Distribution.html#t:ContDistr">ContDistr</a> <a href="Statistics-Distribution-CauchyLorentz.html#t:CauchyDistribution">CauchyDistribution</a></span> <a href="src/Statistics-Distribution.html#line-68" class="link">Source</a> <a href="#t:ContDistr" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:ContDistr:ContDistr:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:density">density</a> :: <a href="Statistics-Distribution-CauchyLorentz.html#t:CauchyDistribution">CauchyDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#density" class="link">Source</a> <a href="#v:density" class="selflink">#</a></p><p class="src"><a href="#v:quantile">quantile</a> :: <a href="Statistics-Distribution-CauchyLorentz.html#t:CauchyDistribution">CauchyDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#quantile" class="link">Source</a> <a href="#v:quantile" class="selflink">#</a></p><p class="src"><a href="#v:logDensity">logDensity</a> :: <a href="Statistics-Distribution-CauchyLorentz.html#t:CauchyDistribution">CauchyDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#logDensity" class="link">Source</a> <a href="#v:logDensity" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ContDistr:ContDistr:3" class="instance expander" onclick="toggleSection('i:ic:ContDistr:ContDistr:3')"></span> <a href="Statistics-Distribution.html#t:ContDistr">ContDistr</a> <a href="Statistics-Distribution-ChiSquared.html#t:ChiSquared">ChiSquared</a></span> <a href="src/Statistics-Distribution.html#line-59" class="link">Source</a> <a href="#t:ContDistr" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:ContDistr:ContDistr:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:density">density</a> :: <a href="Statistics-Distribution-ChiSquared.html#t:ChiSquared">ChiSquared</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#density" class="link">Source</a> <a href="#v:density" class="selflink">#</a></p><p class="src"><a href="#v:quantile">quantile</a> :: <a href="Statistics-Distribution-ChiSquared.html#t:ChiSquared">ChiSquared</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#quantile" class="link">Source</a> <a href="#v:quantile" class="selflink">#</a></p><p class="src"><a href="#v:logDensity">logDensity</a> :: <a href="Statistics-Distribution-ChiSquared.html#t:ChiSquared">ChiSquared</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#logDensity" class="link">Source</a> <a href="#v:logDensity" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ContDistr:ContDistr:4" class="instance expander" onclick="toggleSection('i:ic:ContDistr:ContDistr:4')"></span> <a href="Statistics-Distribution.html#t:ContDistr">ContDistr</a> <a href="Statistics-Distribution-Exponential.html#t:ExponentialDistribution">ExponentialDistribution</a></span> <a href="src/Statistics-Distribution.html#line-53" class="link">Source</a> <a href="#t:ContDistr" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:ContDistr:ContDistr:4" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:density">density</a> :: <a href="Statistics-Distribution-Exponential.html#t:ExponentialDistribution">ExponentialDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#density" class="link">Source</a> <a href="#v:density" class="selflink">#</a></p><p class="src"><a href="#v:quantile">quantile</a> :: <a href="Statistics-Distribution-Exponential.html#t:ExponentialDistribution">ExponentialDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#quantile" class="link">Source</a> <a href="#v:quantile" class="selflink">#</a></p><p class="src"><a href="#v:logDensity">logDensity</a> :: <a href="Statistics-Distribution-Exponential.html#t:ExponentialDistribution">ExponentialDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#logDensity" class="link">Source</a> <a href="#v:logDensity" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ContDistr:ContDistr:5" class="instance expander" onclick="toggleSection('i:ic:ContDistr:ContDistr:5')"></span> <a href="Statistics-Distribution.html#t:ContDistr">ContDistr</a> <a href="Statistics-Distribution-Gamma.html#t:GammaDistribution">GammaDistribution</a></span> <a href="src/Statistics-Distribution.html#line-74" class="link">Source</a> <a href="#t:ContDistr" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:ContDistr:ContDistr:5" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:density">density</a> :: <a href="Statistics-Distribution-Gamma.html#t:GammaDistribution">GammaDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#density" class="link">Source</a> <a href="#v:density" class="selflink">#</a></p><p class="src"><a href="#v:quantile">quantile</a> :: <a href="Statistics-Distribution-Gamma.html#t:GammaDistribution">GammaDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#quantile" class="link">Source</a> <a href="#v:quantile" class="selflink">#</a></p><p class="src"><a href="#v:logDensity">logDensity</a> :: <a href="Statistics-Distribution-Gamma.html#t:GammaDistribution">GammaDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#logDensity" class="link">Source</a> <a href="#v:logDensity" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ContDistr:ContDistr:6" class="instance expander" onclick="toggleSection('i:ic:ContDistr:ContDistr:6')"></span> <a href="Statistics-Distribution.html#t:ContDistr">ContDistr</a> <a href="Statistics-Distribution-Normal.html#t:NormalDistribution">NormalDistribution</a></span> <a href="src/Statistics-Distribution.html#line-54" class="link">Source</a> <a href="#t:ContDistr" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:ContDistr:ContDistr:6" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:density">density</a> :: <a href="Statistics-Distribution-Normal.html#t:NormalDistribution">NormalDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#density" class="link">Source</a> <a href="#v:density" class="selflink">#</a></p><p class="src"><a href="#v:quantile">quantile</a> :: <a href="Statistics-Distribution-Normal.html#t:NormalDistribution">NormalDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#quantile" class="link">Source</a> <a href="#v:quantile" class="selflink">#</a></p><p class="src"><a href="#v:logDensity">logDensity</a> :: <a href="Statistics-Distribution-Normal.html#t:NormalDistribution">NormalDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#logDensity" class="link">Source</a> <a href="#v:logDensity" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ContDistr:ContDistr:7" class="instance expander" onclick="toggleSection('i:ic:ContDistr:ContDistr:7')"></span> <a href="Statistics-Distribution.html#t:ContDistr">ContDistr</a> <a href="Statistics-Distribution-StudentT.html#t:StudentT">StudentT</a></span> <a href="src/Statistics-Distribution.html#line-49" class="link">Source</a> <a href="#t:ContDistr" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:ContDistr:ContDistr:7" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:density">density</a> :: <a href="Statistics-Distribution-StudentT.html#t:StudentT">StudentT</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#density" class="link">Source</a> <a href="#v:density" class="selflink">#</a></p><p class="src"><a href="#v:quantile">quantile</a> :: <a href="Statistics-Distribution-StudentT.html#t:StudentT">StudentT</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#quantile" class="link">Source</a> <a href="#v:quantile" class="selflink">#</a></p><p class="src"><a href="#v:logDensity">logDensity</a> :: <a href="Statistics-Distribution-StudentT.html#t:StudentT">StudentT</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#logDensity" class="link">Source</a> <a href="#v:logDensity" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ContDistr:ContDistr:8" class="instance expander" onclick="toggleSection('i:ic:ContDistr:ContDistr:8')"></span> <a href="Statistics-Distribution.html#t:ContDistr">ContDistr</a> <a href="Statistics-Distribution-Uniform.html#t:UniformDistribution">UniformDistribution</a></span> <a href="src/Statistics-Distribution.html#line-59" class="link">Source</a> <a href="#t:ContDistr" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:ContDistr:ContDistr:8" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:density">density</a> :: <a href="Statistics-Distribution-Uniform.html#t:UniformDistribution">UniformDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#density" class="link">Source</a> <a href="#v:density" class="selflink">#</a></p><p class="src"><a href="#v:quantile">quantile</a> :: <a href="Statistics-Distribution-Uniform.html#t:UniformDistribution">UniformDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#quantile" class="link">Source</a> <a href="#v:quantile" class="selflink">#</a></p><p class="src"><a href="#v:logDensity">logDensity</a> :: <a href="Statistics-Distribution-Uniform.html#t:UniformDistribution">UniformDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#logDensity" class="link">Source</a> <a href="#v:logDensity" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ContDistr:ContDistr:9" class="instance expander" onclick="toggleSection('i:ic:ContDistr:ContDistr:9')"></span> <a href="Statistics-Distribution.html#t:ContDistr">ContDistr</a> <a href="Statistics-Distribution-FDistribution.html#t:FDistribution">FDistribution</a></span> <a href="src/Statistics-Distribution.html#line-58" class="link">Source</a> <a href="#t:ContDistr" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:ContDistr:ContDistr:9" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:density">density</a> :: <a href="Statistics-Distribution-FDistribution.html#t:FDistribution">FDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#density" class="link">Source</a> <a href="#v:density" class="selflink">#</a></p><p class="src"><a href="#v:quantile">quantile</a> :: <a href="Statistics-Distribution-FDistribution.html#t:FDistribution">FDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#quantile" class="link">Source</a> <a href="#v:quantile" class="selflink">#</a></p><p class="src"><a href="#v:logDensity">logDensity</a> :: <a href="Statistics-Distribution-FDistribution.html#t:FDistribution">FDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#logDensity" class="link">Source</a> <a href="#v:logDensity" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ContDistr:ContDistr:10" class="instance expander" onclick="toggleSection('i:ic:ContDistr:ContDistr:10')"></span> <a href="Statistics-Distribution.html#t:ContDistr">ContDistr</a> <a href="Statistics-Distribution-Laplace.html#t:LaplaceDistribution">LaplaceDistribution</a></span> <a href="src/Statistics-Distribution.html#line-60" class="link">Source</a> <a href="#t:ContDistr" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:ContDistr:ContDistr:10" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:density">density</a> :: <a href="Statistics-Distribution-Laplace.html#t:LaplaceDistribution">LaplaceDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#density" class="link">Source</a> <a href="#v:density" class="selflink">#</a></p><p class="src"><a href="#v:quantile">quantile</a> :: <a href="Statistics-Distribution-Laplace.html#t:LaplaceDistribution">LaplaceDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#quantile" class="link">Source</a> <a href="#v:quantile" class="selflink">#</a></p><p class="src"><a href="#v:logDensity">logDensity</a> :: <a href="Statistics-Distribution-Laplace.html#t:LaplaceDistribution">LaplaceDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#logDensity" class="link">Source</a> <a href="#v:logDensity" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ContDistr:ContDistr:11" class="instance expander" onclick="toggleSection('i:ic:ContDistr:ContDistr:11')"></span> <a href="Statistics-Distribution.html#t:ContDistr">ContDistr</a> d =&gt; <a href="Statistics-Distribution.html#t:ContDistr">ContDistr</a> (<a href="Statistics-Distribution-Transform.html#t:LinearTransform">LinearTransform</a> d)</span> <a href="src/Statistics-Distribution.html#line-66" class="link">Source</a> <a href="#t:ContDistr" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:ContDistr:ContDistr:11" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:density">density</a> :: <a href="Statistics-Distribution-Transform.html#t:LinearTransform">LinearTransform</a> d -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#density" class="link">Source</a> <a href="#v:density" class="selflink">#</a></p><p class="src"><a href="#v:quantile">quantile</a> :: <a href="Statistics-Distribution-Transform.html#t:LinearTransform">LinearTransform</a> d -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#quantile" class="link">Source</a> <a href="#v:quantile" class="selflink">#</a></p><p class="src"><a href="#v:logDensity">logDensity</a> :: <a href="Statistics-Distribution-Transform.html#t:LinearTransform">LinearTransform</a> d -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#logDensity" class="link">Source</a> <a href="#v:logDensity" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><h2 id="g:2">Distribution statistics</h2><div class="top"><p class="src"><span class="keyword">class</span> <a href="Statistics-Distribution.html#t:Distribution">Distribution</a> d =&gt; <a id="t:MaybeMean" class="def">MaybeMean</a> d <span class="keyword">where</span> <a href="src/Statistics-Distribution.html#MaybeMean" class="link">Source</a> <a href="#t:MaybeMean" class="selflink">#</a></p><div class="doc"><p>Type class for distributions with mean. <code><a href="Statistics-Distribution.html#v:maybeMean">maybeMean</a></code> should return
   <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#v:Nothing">Nothing</a></code> if it's undefined for current value of data</p></div><div class="subs minimal"><p class="caption">Minimal complete definition</p><p class="src"><a href="Statistics-Distribution.html#v:maybeMean">maybeMean</a></p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a id="v:maybeMean" class="def">maybeMean</a> :: d -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#maybeMean" class="link">Source</a> <a href="#v:maybeMean" class="selflink">#</a></p></div><div class="subs instances"><p id="control.i:MaybeMean" class="caption collapser" onclick="toggleSection('i:MaybeMean')">Instances</p><div id="section.i:MaybeMean" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MaybeMean:MaybeMean:1" class="instance expander" onclick="toggleSection('i:ic:MaybeMean:MaybeMean:1')"></span> <a href="Statistics-Distribution.html#t:MaybeMean">MaybeMean</a> <a href="Statistics-Distribution-Beta.html#t:BetaDistribution">BetaDistribution</a></span> <a href="src/Statistics-Distribution.html#line-77" class="link">Source</a> <a href="#t:MaybeMean" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MaybeMean:MaybeMean:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:maybeMean">maybeMean</a> :: <a href="Statistics-Distribution-Beta.html#t:BetaDistribution">BetaDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#maybeMean" class="link">Source</a> <a href="#v:maybeMean" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MaybeMean:MaybeMean:2" class="instance expander" onclick="toggleSection('i:ic:MaybeMean:MaybeMean:2')"></span> <a href="Statistics-Distribution.html#t:MaybeMean">MaybeMean</a> <a href="Statistics-Distribution-Binomial.html#t:BinomialDistribution">BinomialDistribution</a></span> <a href="src/Statistics-Distribution.html#line-65" class="link">Source</a> <a href="#t:MaybeMean" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MaybeMean:MaybeMean:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:maybeMean">maybeMean</a> :: <a href="Statistics-Distribution-Binomial.html#t:BinomialDistribution">BinomialDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#maybeMean" class="link">Source</a> <a href="#v:maybeMean" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MaybeMean:MaybeMean:3" class="instance expander" onclick="toggleSection('i:ic:MaybeMean:MaybeMean:3')"></span> <a href="Statistics-Distribution.html#t:MaybeMean">MaybeMean</a> <a href="Statistics-Distribution-Poisson.html#t:PoissonDistribution">PoissonDistribution</a></span> <a href="src/Statistics-Distribution.html#line-68" class="link">Source</a> <a href="#t:MaybeMean" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MaybeMean:MaybeMean:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:maybeMean">maybeMean</a> :: <a href="Statistics-Distribution-Poisson.html#t:PoissonDistribution">PoissonDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#maybeMean" class="link">Source</a> <a href="#v:maybeMean" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MaybeMean:MaybeMean:4" class="instance expander" onclick="toggleSection('i:ic:MaybeMean:MaybeMean:4')"></span> <a href="Statistics-Distribution.html#t:MaybeMean">MaybeMean</a> <a href="Statistics-Distribution-ChiSquared.html#t:ChiSquared">ChiSquared</a></span> <a href="src/Statistics-Distribution.html#line-69" class="link">Source</a> <a href="#t:MaybeMean" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MaybeMean:MaybeMean:4" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:maybeMean">maybeMean</a> :: <a href="Statistics-Distribution-ChiSquared.html#t:ChiSquared">ChiSquared</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#maybeMean" class="link">Source</a> <a href="#v:maybeMean" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MaybeMean:MaybeMean:5" class="instance expander" onclick="toggleSection('i:ic:MaybeMean:MaybeMean:5')"></span> <a href="Statistics-Distribution.html#t:MaybeMean">MaybeMean</a> <a href="Statistics-Distribution-Exponential.html#t:ExponentialDistribution">ExponentialDistribution</a></span> <a href="src/Statistics-Distribution.html#line-68" class="link">Source</a> <a href="#t:MaybeMean" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MaybeMean:MaybeMean:5" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:maybeMean">maybeMean</a> :: <a href="Statistics-Distribution-Exponential.html#t:ExponentialDistribution">ExponentialDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#maybeMean" class="link">Source</a> <a href="#v:maybeMean" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MaybeMean:MaybeMean:6" class="instance expander" onclick="toggleSection('i:ic:MaybeMean:MaybeMean:6')"></span> <a href="Statistics-Distribution.html#t:MaybeMean">MaybeMean</a> <a href="Statistics-Distribution-Gamma.html#t:GammaDistribution">GammaDistribution</a></span> <a href="src/Statistics-Distribution.html#line-87" class="link">Source</a> <a href="#t:MaybeMean" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MaybeMean:MaybeMean:6" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:maybeMean">maybeMean</a> :: <a href="Statistics-Distribution-Gamma.html#t:GammaDistribution">GammaDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#maybeMean" class="link">Source</a> <a href="#v:maybeMean" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MaybeMean:MaybeMean:7" class="instance expander" onclick="toggleSection('i:ic:MaybeMean:MaybeMean:7')"></span> <a href="Statistics-Distribution.html#t:MaybeMean">MaybeMean</a> <a href="Statistics-Distribution-Geometric.html#t:GeometricDistribution0">GeometricDistribution0</a></span> <a href="src/Statistics-Distribution.html#line-141" class="link">Source</a> <a href="#t:MaybeMean" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MaybeMean:MaybeMean:7" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:maybeMean">maybeMean</a> :: <a href="Statistics-Distribution-Geometric.html#t:GeometricDistribution0">GeometricDistribution0</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#maybeMean" class="link">Source</a> <a href="#v:maybeMean" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MaybeMean:MaybeMean:8" class="instance expander" onclick="toggleSection('i:ic:MaybeMean:MaybeMean:8')"></span> <a href="Statistics-Distribution.html#t:MaybeMean">MaybeMean</a> <a href="Statistics-Distribution-Geometric.html#t:GeometricDistribution">GeometricDistribution</a></span> <a href="src/Statistics-Distribution.html#line-76" class="link">Source</a> <a href="#t:MaybeMean" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MaybeMean:MaybeMean:8" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:maybeMean">maybeMean</a> :: <a href="Statistics-Distribution-Geometric.html#t:GeometricDistribution">GeometricDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#maybeMean" class="link">Source</a> <a href="#v:maybeMean" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MaybeMean:MaybeMean:9" class="instance expander" onclick="toggleSection('i:ic:MaybeMean:MaybeMean:9')"></span> <a href="Statistics-Distribution.html#t:MaybeMean">MaybeMean</a> <a href="Statistics-Distribution-Hypergeometric.html#t:HypergeometricDistribution">HypergeometricDistribution</a></span> <a href="src/Statistics-Distribution.html#line-65" class="link">Source</a> <a href="#t:MaybeMean" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MaybeMean:MaybeMean:9" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:maybeMean">maybeMean</a> :: <a href="Statistics-Distribution-Hypergeometric.html#t:HypergeometricDistribution">HypergeometricDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#maybeMean" class="link">Source</a> <a href="#v:maybeMean" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MaybeMean:MaybeMean:10" class="instance expander" onclick="toggleSection('i:ic:MaybeMean:MaybeMean:10')"></span> <a href="Statistics-Distribution.html#t:MaybeMean">MaybeMean</a> <a href="Statistics-Distribution-Normal.html#t:NormalDistribution">NormalDistribution</a></span> <a href="src/Statistics-Distribution.html#line-58" class="link">Source</a> <a href="#t:MaybeMean" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MaybeMean:MaybeMean:10" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:maybeMean">maybeMean</a> :: <a href="Statistics-Distribution-Normal.html#t:NormalDistribution">NormalDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#maybeMean" class="link">Source</a> <a href="#v:maybeMean" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MaybeMean:MaybeMean:11" class="instance expander" onclick="toggleSection('i:ic:MaybeMean:MaybeMean:11')"></span> <a href="Statistics-Distribution.html#t:MaybeMean">MaybeMean</a> <a href="Statistics-Distribution-StudentT.html#t:StudentT">StudentT</a></span> <a href="src/Statistics-Distribution.html#line-75" class="link">Source</a> <a href="#t:MaybeMean" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MaybeMean:MaybeMean:11" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:maybeMean">maybeMean</a> :: <a href="Statistics-Distribution-StudentT.html#t:StudentT">StudentT</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#maybeMean" class="link">Source</a> <a href="#v:maybeMean" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MaybeMean:MaybeMean:12" class="instance expander" onclick="toggleSection('i:ic:MaybeMean:MaybeMean:12')"></span> <a href="Statistics-Distribution.html#t:MaybeMean">MaybeMean</a> <a href="Statistics-Distribution-Uniform.html#t:UniformDistribution">UniformDistribution</a></span> <a href="src/Statistics-Distribution.html#line-78" class="link">Source</a> <a href="#t:MaybeMean" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MaybeMean:MaybeMean:12" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:maybeMean">maybeMean</a> :: <a href="Statistics-Distribution-Uniform.html#t:UniformDistribution">UniformDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#maybeMean" class="link">Source</a> <a href="#v:maybeMean" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MaybeMean:MaybeMean:13" class="instance expander" onclick="toggleSection('i:ic:MaybeMean:MaybeMean:13')"></span> <a href="Statistics-Distribution.html#t:MaybeMean">MaybeMean</a> <a href="Statistics-Distribution-FDistribution.html#t:FDistribution">FDistribution</a></span> <a href="src/Statistics-Distribution.html#line-86" class="link">Source</a> <a href="#t:MaybeMean" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MaybeMean:MaybeMean:13" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:maybeMean">maybeMean</a> :: <a href="Statistics-Distribution-FDistribution.html#t:FDistribution">FDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#maybeMean" class="link">Source</a> <a href="#v:maybeMean" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MaybeMean:MaybeMean:14" class="instance expander" onclick="toggleSection('i:ic:MaybeMean:MaybeMean:14')"></span> <a href="Statistics-Distribution.html#t:MaybeMean">MaybeMean</a> <a href="Statistics-Distribution-Laplace.html#t:LaplaceDistribution">LaplaceDistribution</a></span> <a href="src/Statistics-Distribution.html#line-71" class="link">Source</a> <a href="#t:MaybeMean" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MaybeMean:MaybeMean:14" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:maybeMean">maybeMean</a> :: <a href="Statistics-Distribution-Laplace.html#t:LaplaceDistribution">LaplaceDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#maybeMean" class="link">Source</a> <a href="#v:maybeMean" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MaybeMean:MaybeMean:15" class="instance expander" onclick="toggleSection('i:ic:MaybeMean:MaybeMean:15')"></span> <a href="Statistics-Distribution.html#t:MaybeMean">MaybeMean</a> d =&gt; <a href="Statistics-Distribution.html#t:MaybeMean">MaybeMean</a> (<a href="Statistics-Distribution-Transform.html#t:LinearTransform">LinearTransform</a> d)</span> <a href="src/Statistics-Distribution.html#line-71" class="link">Source</a> <a href="#t:MaybeMean" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MaybeMean:MaybeMean:15" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:maybeMean">maybeMean</a> :: <a href="Statistics-Distribution-Transform.html#t:LinearTransform">LinearTransform</a> d -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#maybeMean" class="link">Source</a> <a href="#v:maybeMean" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">class</span> <a href="Statistics-Distribution.html#t:MaybeMean">MaybeMean</a> d =&gt; <a id="t:Mean" class="def">Mean</a> d <span class="keyword">where</span> <a href="src/Statistics-Distribution.html#Mean" class="link">Source</a> <a href="#t:Mean" class="selflink">#</a></p><div class="doc"><p>Type class for distributions with mean. If distribution have
   finite mean for all valid values of parameters it should be
   instance of this type class.</p></div><div class="subs minimal"><p class="caption">Minimal complete definition</p><p class="src"><a href="Statistics-Distribution.html#v:mean">mean</a></p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a id="v:mean" class="def">mean</a> :: d -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#mean" class="link">Source</a> <a href="#v:mean" class="selflink">#</a></p></div><div class="subs instances"><p id="control.i:Mean" class="caption collapser" onclick="toggleSection('i:Mean')">Instances</p><div id="section.i:Mean" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Mean:Mean:1" class="instance expander" onclick="toggleSection('i:ic:Mean:Mean:1')"></span> <a href="Statistics-Distribution.html#t:Mean">Mean</a> <a href="Statistics-Distribution-Beta.html#t:BetaDistribution">BetaDistribution</a></span> <a href="src/Statistics-Distribution.html#line-74" class="link">Source</a> <a href="#t:Mean" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Mean:Mean:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:mean">mean</a> :: <a href="Statistics-Distribution-Beta.html#t:BetaDistribution">BetaDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#mean" class="link">Source</a> <a href="#v:mean" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Mean:Mean:2" class="instance expander" onclick="toggleSection('i:ic:Mean:Mean:2')"></span> <a href="Statistics-Distribution.html#t:Mean">Mean</a> <a href="Statistics-Distribution-Binomial.html#t:BinomialDistribution">BinomialDistribution</a></span> <a href="src/Statistics-Distribution.html#line-59" class="link">Source</a> <a href="#t:Mean" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Mean:Mean:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:mean">mean</a> :: <a href="Statistics-Distribution-Binomial.html#t:BinomialDistribution">BinomialDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#mean" class="link">Source</a> <a href="#v:mean" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Mean:Mean:3" class="instance expander" onclick="toggleSection('i:ic:Mean:Mean:3')"></span> <a href="Statistics-Distribution.html#t:Mean">Mean</a> <a href="Statistics-Distribution-Poisson.html#t:PoissonDistribution">PoissonDistribution</a></span> <a href="src/Statistics-Distribution.html#line-65" class="link">Source</a> <a href="#t:Mean" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Mean:Mean:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:mean">mean</a> :: <a href="Statistics-Distribution-Poisson.html#t:PoissonDistribution">PoissonDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#mean" class="link">Source</a> <a href="#v:mean" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Mean:Mean:4" class="instance expander" onclick="toggleSection('i:ic:Mean:Mean:4')"></span> <a href="Statistics-Distribution.html#t:Mean">Mean</a> <a href="Statistics-Distribution-ChiSquared.html#t:ChiSquared">ChiSquared</a></span> <a href="src/Statistics-Distribution.html#line-63" class="link">Source</a> <a href="#t:Mean" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Mean:Mean:4" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:mean">mean</a> :: <a href="Statistics-Distribution-ChiSquared.html#t:ChiSquared">ChiSquared</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#mean" class="link">Source</a> <a href="#v:mean" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Mean:Mean:5" class="instance expander" onclick="toggleSection('i:ic:Mean:Mean:5')"></span> <a href="Statistics-Distribution.html#t:Mean">Mean</a> <a href="Statistics-Distribution-Exponential.html#t:ExponentialDistribution">ExponentialDistribution</a></span> <a href="src/Statistics-Distribution.html#line-62" class="link">Source</a> <a href="#t:Mean" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Mean:Mean:5" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:mean">mean</a> :: <a href="Statistics-Distribution-Exponential.html#t:ExponentialDistribution">ExponentialDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#mean" class="link">Source</a> <a href="#v:mean" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Mean:Mean:6" class="instance expander" onclick="toggleSection('i:ic:Mean:Mean:6')"></span> <a href="Statistics-Distribution.html#t:Mean">Mean</a> <a href="Statistics-Distribution-Gamma.html#t:GammaDistribution">GammaDistribution</a></span> <a href="src/Statistics-Distribution.html#line-84" class="link">Source</a> <a href="#t:Mean" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Mean:Mean:6" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:mean">mean</a> :: <a href="Statistics-Distribution-Gamma.html#t:GammaDistribution">GammaDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#mean" class="link">Source</a> <a href="#v:mean" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Mean:Mean:7" class="instance expander" onclick="toggleSection('i:ic:Mean:Mean:7')"></span> <a href="Statistics-Distribution.html#t:Mean">Mean</a> <a href="Statistics-Distribution-Geometric.html#t:GeometricDistribution0">GeometricDistribution0</a></span> <a href="src/Statistics-Distribution.html#line-135" class="link">Source</a> <a href="#t:Mean" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Mean:Mean:7" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:mean">mean</a> :: <a href="Statistics-Distribution-Geometric.html#t:GeometricDistribution0">GeometricDistribution0</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#mean" class="link">Source</a> <a href="#v:mean" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Mean:Mean:8" class="instance expander" onclick="toggleSection('i:ic:Mean:Mean:8')"></span> <a href="Statistics-Distribution.html#t:Mean">Mean</a> <a href="Statistics-Distribution-Geometric.html#t:GeometricDistribution">GeometricDistribution</a></span> <a href="src/Statistics-Distribution.html#line-70" class="link">Source</a> <a href="#t:Mean" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Mean:Mean:8" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:mean">mean</a> :: <a href="Statistics-Distribution-Geometric.html#t:GeometricDistribution">GeometricDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#mean" class="link">Source</a> <a href="#v:mean" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Mean:Mean:9" class="instance expander" onclick="toggleSection('i:ic:Mean:Mean:9')"></span> <a href="Statistics-Distribution.html#t:Mean">Mean</a> <a href="Statistics-Distribution-Hypergeometric.html#t:HypergeometricDistribution">HypergeometricDistribution</a></span> <a href="src/Statistics-Distribution.html#line-59" class="link">Source</a> <a href="#t:Mean" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Mean:Mean:9" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:mean">mean</a> :: <a href="Statistics-Distribution-Hypergeometric.html#t:HypergeometricDistribution">HypergeometricDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#mean" class="link">Source</a> <a href="#v:mean" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Mean:Mean:10" class="instance expander" onclick="toggleSection('i:ic:Mean:Mean:10')"></span> <a href="Statistics-Distribution.html#t:Mean">Mean</a> <a href="Statistics-Distribution-Normal.html#t:NormalDistribution">NormalDistribution</a></span> <a href="src/Statistics-Distribution.html#line-61" class="link">Source</a> <a href="#t:Mean" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Mean:Mean:10" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:mean">mean</a> :: <a href="Statistics-Distribution-Normal.html#t:NormalDistribution">NormalDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#mean" class="link">Source</a> <a href="#v:mean" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Mean:Mean:11" class="instance expander" onclick="toggleSection('i:ic:Mean:Mean:11')"></span> <a href="Statistics-Distribution.html#t:Mean">Mean</a> <a href="Statistics-Distribution-Uniform.html#t:UniformDistribution">UniformDistribution</a></span> <a href="src/Statistics-Distribution.html#line-69" class="link">Source</a> <a href="#t:Mean" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Mean:Mean:11" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:mean">mean</a> :: <a href="Statistics-Distribution-Uniform.html#t:UniformDistribution">UniformDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#mean" class="link">Source</a> <a href="#v:mean" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Mean:Mean:12" class="instance expander" onclick="toggleSection('i:ic:Mean:Mean:12')"></span> <a href="Statistics-Distribution.html#t:Mean">Mean</a> <a href="Statistics-Distribution-Laplace.html#t:LaplaceDistribution">LaplaceDistribution</a></span> <a href="src/Statistics-Distribution.html#line-65" class="link">Source</a> <a href="#t:Mean" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Mean:Mean:12" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:mean">mean</a> :: <a href="Statistics-Distribution-Laplace.html#t:LaplaceDistribution">LaplaceDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#mean" class="link">Source</a> <a href="#v:mean" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Mean:Mean:13" class="instance expander" onclick="toggleSection('i:ic:Mean:Mean:13')"></span> <a href="Statistics-Distribution.html#t:Mean">Mean</a> d =&gt; <a href="Statistics-Distribution.html#t:Mean">Mean</a> (<a href="Statistics-Distribution-Transform.html#t:LinearTransform">LinearTransform</a> d)</span> <a href="src/Statistics-Distribution.html#line-74" class="link">Source</a> <a href="#t:Mean" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Mean:Mean:13" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:mean">mean</a> :: <a href="Statistics-Distribution-Transform.html#t:LinearTransform">LinearTransform</a> d -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#mean" class="link">Source</a> <a href="#v:mean" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">class</span> <a href="Statistics-Distribution.html#t:MaybeMean">MaybeMean</a> d =&gt; <a id="t:MaybeVariance" class="def">MaybeVariance</a> d <span class="keyword">where</span> <a href="src/Statistics-Distribution.html#MaybeVariance" class="link">Source</a> <a href="#t:MaybeVariance" class="selflink">#</a></p><div class="doc"><p>Type class for distributions with variance. If variance is
   undefined for some parameter values both <code><a href="Statistics-Distribution.html#v:maybeVariance">maybeVariance</a></code> and
   <code><a href="Statistics-Distribution.html#v:maybeStdDev">maybeStdDev</a></code> should return Nothing.</p><p>Minimal complete definition is <code><a href="Statistics-Distribution.html#v:maybeVariance">maybeVariance</a></code> or <code><a href="Statistics-Distribution.html#v:maybeStdDev">maybeStdDev</a></code></p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a id="v:maybeVariance" class="def">maybeVariance</a> :: d -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#maybeVariance" class="link">Source</a> <a href="#v:maybeVariance" class="selflink">#</a></p><p class="src"><a id="v:maybeStdDev" class="def">maybeStdDev</a> :: d -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#maybeStdDev" class="link">Source</a> <a href="#v:maybeStdDev" class="selflink">#</a></p></div><div class="subs instances"><p id="control.i:MaybeVariance" class="caption collapser" onclick="toggleSection('i:MaybeVariance')">Instances</p><div id="section.i:MaybeVariance" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MaybeVariance:MaybeVariance:1" class="instance expander" onclick="toggleSection('i:ic:MaybeVariance:MaybeVariance:1')"></span> <a href="Statistics-Distribution.html#t:MaybeVariance">MaybeVariance</a> <a href="Statistics-Distribution-Beta.html#t:BetaDistribution">BetaDistribution</a></span> <a href="src/Statistics-Distribution.html#line-84" class="link">Source</a> <a href="#t:MaybeVariance" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MaybeVariance:MaybeVariance:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:maybeVariance">maybeVariance</a> :: <a href="Statistics-Distribution-Beta.html#t:BetaDistribution">BetaDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#maybeVariance" class="link">Source</a> <a href="#v:maybeVariance" class="selflink">#</a></p><p class="src"><a href="#v:maybeStdDev">maybeStdDev</a> :: <a href="Statistics-Distribution-Beta.html#t:BetaDistribution">BetaDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#maybeStdDev" class="link">Source</a> <a href="#v:maybeStdDev" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MaybeVariance:MaybeVariance:2" class="instance expander" onclick="toggleSection('i:ic:MaybeVariance:MaybeVariance:2')"></span> <a href="Statistics-Distribution.html#t:MaybeVariance">MaybeVariance</a> <a href="Statistics-Distribution-Binomial.html#t:BinomialDistribution">BinomialDistribution</a></span> <a href="src/Statistics-Distribution.html#line-68" class="link">Source</a> <a href="#t:MaybeVariance" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MaybeVariance:MaybeVariance:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:maybeVariance">maybeVariance</a> :: <a href="Statistics-Distribution-Binomial.html#t:BinomialDistribution">BinomialDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#maybeVariance" class="link">Source</a> <a href="#v:maybeVariance" class="selflink">#</a></p><p class="src"><a href="#v:maybeStdDev">maybeStdDev</a> :: <a href="Statistics-Distribution-Binomial.html#t:BinomialDistribution">BinomialDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#maybeStdDev" class="link">Source</a> <a href="#v:maybeStdDev" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MaybeVariance:MaybeVariance:3" class="instance expander" onclick="toggleSection('i:ic:MaybeVariance:MaybeVariance:3')"></span> <a href="Statistics-Distribution.html#t:MaybeVariance">MaybeVariance</a> <a href="Statistics-Distribution-Poisson.html#t:PoissonDistribution">PoissonDistribution</a></span> <a href="src/Statistics-Distribution.html#line-71" class="link">Source</a> <a href="#t:MaybeVariance" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MaybeVariance:MaybeVariance:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:maybeVariance">maybeVariance</a> :: <a href="Statistics-Distribution-Poisson.html#t:PoissonDistribution">PoissonDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#maybeVariance" class="link">Source</a> <a href="#v:maybeVariance" class="selflink">#</a></p><p class="src"><a href="#v:maybeStdDev">maybeStdDev</a> :: <a href="Statistics-Distribution-Poisson.html#t:PoissonDistribution">PoissonDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#maybeStdDev" class="link">Source</a> <a href="#v:maybeStdDev" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MaybeVariance:MaybeVariance:4" class="instance expander" onclick="toggleSection('i:ic:MaybeVariance:MaybeVariance:4')"></span> <a href="Statistics-Distribution.html#t:MaybeVariance">MaybeVariance</a> <a href="Statistics-Distribution-ChiSquared.html#t:ChiSquared">ChiSquared</a></span> <a href="src/Statistics-Distribution.html#line-72" class="link">Source</a> <a href="#t:MaybeVariance" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MaybeVariance:MaybeVariance:4" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:maybeVariance">maybeVariance</a> :: <a href="Statistics-Distribution-ChiSquared.html#t:ChiSquared">ChiSquared</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#maybeVariance" class="link">Source</a> <a href="#v:maybeVariance" class="selflink">#</a></p><p class="src"><a href="#v:maybeStdDev">maybeStdDev</a> :: <a href="Statistics-Distribution-ChiSquared.html#t:ChiSquared">ChiSquared</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#maybeStdDev" class="link">Source</a> <a href="#v:maybeStdDev" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MaybeVariance:MaybeVariance:5" class="instance expander" onclick="toggleSection('i:ic:MaybeVariance:MaybeVariance:5')"></span> <a href="Statistics-Distribution.html#t:MaybeVariance">MaybeVariance</a> <a href="Statistics-Distribution-Exponential.html#t:ExponentialDistribution">ExponentialDistribution</a></span> <a href="src/Statistics-Distribution.html#line-71" class="link">Source</a> <a href="#t:MaybeVariance" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MaybeVariance:MaybeVariance:5" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:maybeVariance">maybeVariance</a> :: <a href="Statistics-Distribution-Exponential.html#t:ExponentialDistribution">ExponentialDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#maybeVariance" class="link">Source</a> <a href="#v:maybeVariance" class="selflink">#</a></p><p class="src"><a href="#v:maybeStdDev">maybeStdDev</a> :: <a href="Statistics-Distribution-Exponential.html#t:ExponentialDistribution">ExponentialDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#maybeStdDev" class="link">Source</a> <a href="#v:maybeStdDev" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MaybeVariance:MaybeVariance:6" class="instance expander" onclick="toggleSection('i:ic:MaybeVariance:MaybeVariance:6')"></span> <a href="Statistics-Distribution.html#t:MaybeVariance">MaybeVariance</a> <a href="Statistics-Distribution-Gamma.html#t:GammaDistribution">GammaDistribution</a></span> <a href="src/Statistics-Distribution.html#line-90" class="link">Source</a> <a href="#t:MaybeVariance" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MaybeVariance:MaybeVariance:6" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:maybeVariance">maybeVariance</a> :: <a href="Statistics-Distribution-Gamma.html#t:GammaDistribution">GammaDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#maybeVariance" class="link">Source</a> <a href="#v:maybeVariance" class="selflink">#</a></p><p class="src"><a href="#v:maybeStdDev">maybeStdDev</a> :: <a href="Statistics-Distribution-Gamma.html#t:GammaDistribution">GammaDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#maybeStdDev" class="link">Source</a> <a href="#v:maybeStdDev" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MaybeVariance:MaybeVariance:7" class="instance expander" onclick="toggleSection('i:ic:MaybeVariance:MaybeVariance:7')"></span> <a href="Statistics-Distribution.html#t:MaybeVariance">MaybeVariance</a> <a href="Statistics-Distribution-Geometric.html#t:GeometricDistribution0">GeometricDistribution0</a></span> <a href="src/Statistics-Distribution.html#line-144" class="link">Source</a> <a href="#t:MaybeVariance" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MaybeVariance:MaybeVariance:7" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:maybeVariance">maybeVariance</a> :: <a href="Statistics-Distribution-Geometric.html#t:GeometricDistribution0">GeometricDistribution0</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#maybeVariance" class="link">Source</a> <a href="#v:maybeVariance" class="selflink">#</a></p><p class="src"><a href="#v:maybeStdDev">maybeStdDev</a> :: <a href="Statistics-Distribution-Geometric.html#t:GeometricDistribution0">GeometricDistribution0</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#maybeStdDev" class="link">Source</a> <a href="#v:maybeStdDev" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MaybeVariance:MaybeVariance:8" class="instance expander" onclick="toggleSection('i:ic:MaybeVariance:MaybeVariance:8')"></span> <a href="Statistics-Distribution.html#t:MaybeVariance">MaybeVariance</a> <a href="Statistics-Distribution-Geometric.html#t:GeometricDistribution">GeometricDistribution</a></span> <a href="src/Statistics-Distribution.html#line-79" class="link">Source</a> <a href="#t:MaybeVariance" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MaybeVariance:MaybeVariance:8" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:maybeVariance">maybeVariance</a> :: <a href="Statistics-Distribution-Geometric.html#t:GeometricDistribution">GeometricDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#maybeVariance" class="link">Source</a> <a href="#v:maybeVariance" class="selflink">#</a></p><p class="src"><a href="#v:maybeStdDev">maybeStdDev</a> :: <a href="Statistics-Distribution-Geometric.html#t:GeometricDistribution">GeometricDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#maybeStdDev" class="link">Source</a> <a href="#v:maybeStdDev" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MaybeVariance:MaybeVariance:9" class="instance expander" onclick="toggleSection('i:ic:MaybeVariance:MaybeVariance:9')"></span> <a href="Statistics-Distribution.html#t:MaybeVariance">MaybeVariance</a> <a href="Statistics-Distribution-Hypergeometric.html#t:HypergeometricDistribution">HypergeometricDistribution</a></span> <a href="src/Statistics-Distribution.html#line-68" class="link">Source</a> <a href="#t:MaybeVariance" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MaybeVariance:MaybeVariance:9" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:maybeVariance">maybeVariance</a> :: <a href="Statistics-Distribution-Hypergeometric.html#t:HypergeometricDistribution">HypergeometricDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#maybeVariance" class="link">Source</a> <a href="#v:maybeVariance" class="selflink">#</a></p><p class="src"><a href="#v:maybeStdDev">maybeStdDev</a> :: <a href="Statistics-Distribution-Hypergeometric.html#t:HypergeometricDistribution">HypergeometricDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#maybeStdDev" class="link">Source</a> <a href="#v:maybeStdDev" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MaybeVariance:MaybeVariance:10" class="instance expander" onclick="toggleSection('i:ic:MaybeVariance:MaybeVariance:10')"></span> <a href="Statistics-Distribution.html#t:MaybeVariance">MaybeVariance</a> <a href="Statistics-Distribution-Normal.html#t:NormalDistribution">NormalDistribution</a></span> <a href="src/Statistics-Distribution.html#line-64" class="link">Source</a> <a href="#t:MaybeVariance" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MaybeVariance:MaybeVariance:10" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:maybeVariance">maybeVariance</a> :: <a href="Statistics-Distribution-Normal.html#t:NormalDistribution">NormalDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#maybeVariance" class="link">Source</a> <a href="#v:maybeVariance" class="selflink">#</a></p><p class="src"><a href="#v:maybeStdDev">maybeStdDev</a> :: <a href="Statistics-Distribution-Normal.html#t:NormalDistribution">NormalDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#maybeStdDev" class="link">Source</a> <a href="#v:maybeStdDev" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MaybeVariance:MaybeVariance:11" class="instance expander" onclick="toggleSection('i:ic:MaybeVariance:MaybeVariance:11')"></span> <a href="Statistics-Distribution.html#t:MaybeVariance">MaybeVariance</a> <a href="Statistics-Distribution-StudentT.html#t:StudentT">StudentT</a></span> <a href="src/Statistics-Distribution.html#line-79" class="link">Source</a> <a href="#t:MaybeVariance" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MaybeVariance:MaybeVariance:11" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:maybeVariance">maybeVariance</a> :: <a href="Statistics-Distribution-StudentT.html#t:StudentT">StudentT</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#maybeVariance" class="link">Source</a> <a href="#v:maybeVariance" class="selflink">#</a></p><p class="src"><a href="#v:maybeStdDev">maybeStdDev</a> :: <a href="Statistics-Distribution-StudentT.html#t:StudentT">StudentT</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#maybeStdDev" class="link">Source</a> <a href="#v:maybeStdDev" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MaybeVariance:MaybeVariance:12" class="instance expander" onclick="toggleSection('i:ic:MaybeVariance:MaybeVariance:12')"></span> <a href="Statistics-Distribution.html#t:MaybeVariance">MaybeVariance</a> <a href="Statistics-Distribution-Uniform.html#t:UniformDistribution">UniformDistribution</a></span> <a href="src/Statistics-Distribution.html#line-81" class="link">Source</a> <a href="#t:MaybeVariance" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MaybeVariance:MaybeVariance:12" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:maybeVariance">maybeVariance</a> :: <a href="Statistics-Distribution-Uniform.html#t:UniformDistribution">UniformDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#maybeVariance" class="link">Source</a> <a href="#v:maybeVariance" class="selflink">#</a></p><p class="src"><a href="#v:maybeStdDev">maybeStdDev</a> :: <a href="Statistics-Distribution-Uniform.html#t:UniformDistribution">UniformDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#maybeStdDev" class="link">Source</a> <a href="#v:maybeStdDev" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MaybeVariance:MaybeVariance:13" class="instance expander" onclick="toggleSection('i:ic:MaybeVariance:MaybeVariance:13')"></span> <a href="Statistics-Distribution.html#t:MaybeVariance">MaybeVariance</a> <a href="Statistics-Distribution-FDistribution.html#t:FDistribution">FDistribution</a></span> <a href="src/Statistics-Distribution.html#line-90" class="link">Source</a> <a href="#t:MaybeVariance" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MaybeVariance:MaybeVariance:13" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:maybeVariance">maybeVariance</a> :: <a href="Statistics-Distribution-FDistribution.html#t:FDistribution">FDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#maybeVariance" class="link">Source</a> <a href="#v:maybeVariance" class="selflink">#</a></p><p class="src"><a href="#v:maybeStdDev">maybeStdDev</a> :: <a href="Statistics-Distribution-FDistribution.html#t:FDistribution">FDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#maybeStdDev" class="link">Source</a> <a href="#v:maybeStdDev" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MaybeVariance:MaybeVariance:14" class="instance expander" onclick="toggleSection('i:ic:MaybeVariance:MaybeVariance:14')"></span> <a href="Statistics-Distribution.html#t:MaybeVariance">MaybeVariance</a> <a href="Statistics-Distribution-Laplace.html#t:LaplaceDistribution">LaplaceDistribution</a></span> <a href="src/Statistics-Distribution.html#line-74" class="link">Source</a> <a href="#t:MaybeVariance" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MaybeVariance:MaybeVariance:14" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:maybeVariance">maybeVariance</a> :: <a href="Statistics-Distribution-Laplace.html#t:LaplaceDistribution">LaplaceDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#maybeVariance" class="link">Source</a> <a href="#v:maybeVariance" class="selflink">#</a></p><p class="src"><a href="#v:maybeStdDev">maybeStdDev</a> :: <a href="Statistics-Distribution-Laplace.html#t:LaplaceDistribution">LaplaceDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#maybeStdDev" class="link">Source</a> <a href="#v:maybeStdDev" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MaybeVariance:MaybeVariance:15" class="instance expander" onclick="toggleSection('i:ic:MaybeVariance:MaybeVariance:15')"></span> <a href="Statistics-Distribution.html#t:MaybeVariance">MaybeVariance</a> d =&gt; <a href="Statistics-Distribution.html#t:MaybeVariance">MaybeVariance</a> (<a href="Statistics-Distribution-Transform.html#t:LinearTransform">LinearTransform</a> d)</span> <a href="src/Statistics-Distribution.html#line-77" class="link">Source</a> <a href="#t:MaybeVariance" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MaybeVariance:MaybeVariance:15" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:maybeVariance">maybeVariance</a> :: <a href="Statistics-Distribution-Transform.html#t:LinearTransform">LinearTransform</a> d -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#maybeVariance" class="link">Source</a> <a href="#v:maybeVariance" class="selflink">#</a></p><p class="src"><a href="#v:maybeStdDev">maybeStdDev</a> :: <a href="Statistics-Distribution-Transform.html#t:LinearTransform">LinearTransform</a> d -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#maybeStdDev" class="link">Source</a> <a href="#v:maybeStdDev" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">class</span> (<a href="Statistics-Distribution.html#t:Mean">Mean</a> d, <a href="Statistics-Distribution.html#t:MaybeVariance">MaybeVariance</a> d) =&gt; <a id="t:Variance" class="def">Variance</a> d <span class="keyword">where</span> <a href="src/Statistics-Distribution.html#Variance" class="link">Source</a> <a href="#t:Variance" class="selflink">#</a></p><div class="doc"><p>Type class for distributions with variance. If distibution have
   finite variance for all valid parameter values it should be
   instance of this type class.</p><p>Minimal complete definition is <code><a href="Statistics-Distribution.html#v:variance">variance</a></code> or <code><a href="Statistics-Distribution.html#v:stdDev">stdDev</a></code></p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a id="v:variance" class="def">variance</a> :: d -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#variance" class="link">Source</a> <a href="#v:variance" class="selflink">#</a></p><p class="src"><a id="v:stdDev" class="def">stdDev</a> :: d -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#stdDev" class="link">Source</a> <a href="#v:stdDev" class="selflink">#</a></p></div><div class="subs instances"><p id="control.i:Variance" class="caption collapser" onclick="toggleSection('i:Variance')">Instances</p><div id="section.i:Variance" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Variance:Variance:1" class="instance expander" onclick="toggleSection('i:ic:Variance:Variance:1')"></span> <a href="Statistics-Distribution.html#t:Variance">Variance</a> <a href="Statistics-Distribution-Beta.html#t:BetaDistribution">BetaDistribution</a></span> <a href="src/Statistics-Distribution.html#line-80" class="link">Source</a> <a href="#t:Variance" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Variance:Variance:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:variance">variance</a> :: <a href="Statistics-Distribution-Beta.html#t:BetaDistribution">BetaDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#variance" class="link">Source</a> <a href="#v:variance" class="selflink">#</a></p><p class="src"><a href="#v:stdDev">stdDev</a> :: <a href="Statistics-Distribution-Beta.html#t:BetaDistribution">BetaDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#stdDev" class="link">Source</a> <a href="#v:stdDev" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Variance:Variance:2" class="instance expander" onclick="toggleSection('i:ic:Variance:Variance:2')"></span> <a href="Statistics-Distribution.html#t:Variance">Variance</a> <a href="Statistics-Distribution-Binomial.html#t:BinomialDistribution">BinomialDistribution</a></span> <a href="src/Statistics-Distribution.html#line-62" class="link">Source</a> <a href="#t:Variance" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Variance:Variance:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:variance">variance</a> :: <a href="Statistics-Distribution-Binomial.html#t:BinomialDistribution">BinomialDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#variance" class="link">Source</a> <a href="#v:variance" class="selflink">#</a></p><p class="src"><a href="#v:stdDev">stdDev</a> :: <a href="Statistics-Distribution-Binomial.html#t:BinomialDistribution">BinomialDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#stdDev" class="link">Source</a> <a href="#v:stdDev" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Variance:Variance:3" class="instance expander" onclick="toggleSection('i:ic:Variance:Variance:3')"></span> <a href="Statistics-Distribution.html#t:Variance">Variance</a> <a href="Statistics-Distribution-Poisson.html#t:PoissonDistribution">PoissonDistribution</a></span> <a href="src/Statistics-Distribution.html#line-62" class="link">Source</a> <a href="#t:Variance" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Variance:Variance:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:variance">variance</a> :: <a href="Statistics-Distribution-Poisson.html#t:PoissonDistribution">PoissonDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#variance" class="link">Source</a> <a href="#v:variance" class="selflink">#</a></p><p class="src"><a href="#v:stdDev">stdDev</a> :: <a href="Statistics-Distribution-Poisson.html#t:PoissonDistribution">PoissonDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#stdDev" class="link">Source</a> <a href="#v:stdDev" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Variance:Variance:4" class="instance expander" onclick="toggleSection('i:ic:Variance:Variance:4')"></span> <a href="Statistics-Distribution.html#t:Variance">Variance</a> <a href="Statistics-Distribution-ChiSquared.html#t:ChiSquared">ChiSquared</a></span> <a href="src/Statistics-Distribution.html#line-66" class="link">Source</a> <a href="#t:Variance" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Variance:Variance:4" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:variance">variance</a> :: <a href="Statistics-Distribution-ChiSquared.html#t:ChiSquared">ChiSquared</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#variance" class="link">Source</a> <a href="#v:variance" class="selflink">#</a></p><p class="src"><a href="#v:stdDev">stdDev</a> :: <a href="Statistics-Distribution-ChiSquared.html#t:ChiSquared">ChiSquared</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#stdDev" class="link">Source</a> <a href="#v:stdDev" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Variance:Variance:5" class="instance expander" onclick="toggleSection('i:ic:Variance:Variance:5')"></span> <a href="Statistics-Distribution.html#t:Variance">Variance</a> <a href="Statistics-Distribution-Exponential.html#t:ExponentialDistribution">ExponentialDistribution</a></span> <a href="src/Statistics-Distribution.html#line-65" class="link">Source</a> <a href="#t:Variance" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Variance:Variance:5" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:variance">variance</a> :: <a href="Statistics-Distribution-Exponential.html#t:ExponentialDistribution">ExponentialDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#variance" class="link">Source</a> <a href="#v:variance" class="selflink">#</a></p><p class="src"><a href="#v:stdDev">stdDev</a> :: <a href="Statistics-Distribution-Exponential.html#t:ExponentialDistribution">ExponentialDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#stdDev" class="link">Source</a> <a href="#v:stdDev" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Variance:Variance:6" class="instance expander" onclick="toggleSection('i:ic:Variance:Variance:6')"></span> <a href="Statistics-Distribution.html#t:Variance">Variance</a> <a href="Statistics-Distribution-Gamma.html#t:GammaDistribution">GammaDistribution</a></span> <a href="src/Statistics-Distribution.html#line-81" class="link">Source</a> <a href="#t:Variance" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Variance:Variance:6" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:variance">variance</a> :: <a href="Statistics-Distribution-Gamma.html#t:GammaDistribution">GammaDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#variance" class="link">Source</a> <a href="#v:variance" class="selflink">#</a></p><p class="src"><a href="#v:stdDev">stdDev</a> :: <a href="Statistics-Distribution-Gamma.html#t:GammaDistribution">GammaDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#stdDev" class="link">Source</a> <a href="#v:stdDev" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Variance:Variance:7" class="instance expander" onclick="toggleSection('i:ic:Variance:Variance:7')"></span> <a href="Statistics-Distribution.html#t:Variance">Variance</a> <a href="Statistics-Distribution-Geometric.html#t:GeometricDistribution0">GeometricDistribution0</a></span> <a href="src/Statistics-Distribution.html#line-138" class="link">Source</a> <a href="#t:Variance" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Variance:Variance:7" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:variance">variance</a> :: <a href="Statistics-Distribution-Geometric.html#t:GeometricDistribution0">GeometricDistribution0</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#variance" class="link">Source</a> <a href="#v:variance" class="selflink">#</a></p><p class="src"><a href="#v:stdDev">stdDev</a> :: <a href="Statistics-Distribution-Geometric.html#t:GeometricDistribution0">GeometricDistribution0</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#stdDev" class="link">Source</a> <a href="#v:stdDev" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Variance:Variance:8" class="instance expander" onclick="toggleSection('i:ic:Variance:Variance:8')"></span> <a href="Statistics-Distribution.html#t:Variance">Variance</a> <a href="Statistics-Distribution-Geometric.html#t:GeometricDistribution">GeometricDistribution</a></span> <a href="src/Statistics-Distribution.html#line-73" class="link">Source</a> <a href="#t:Variance" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Variance:Variance:8" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:variance">variance</a> :: <a href="Statistics-Distribution-Geometric.html#t:GeometricDistribution">GeometricDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#variance" class="link">Source</a> <a href="#v:variance" class="selflink">#</a></p><p class="src"><a href="#v:stdDev">stdDev</a> :: <a href="Statistics-Distribution-Geometric.html#t:GeometricDistribution">GeometricDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#stdDev" class="link">Source</a> <a href="#v:stdDev" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Variance:Variance:9" class="instance expander" onclick="toggleSection('i:ic:Variance:Variance:9')"></span> <a href="Statistics-Distribution.html#t:Variance">Variance</a> <a href="Statistics-Distribution-Hypergeometric.html#t:HypergeometricDistribution">HypergeometricDistribution</a></span> <a href="src/Statistics-Distribution.html#line-62" class="link">Source</a> <a href="#t:Variance" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Variance:Variance:9" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:variance">variance</a> :: <a href="Statistics-Distribution-Hypergeometric.html#t:HypergeometricDistribution">HypergeometricDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#variance" class="link">Source</a> <a href="#v:variance" class="selflink">#</a></p><p class="src"><a href="#v:stdDev">stdDev</a> :: <a href="Statistics-Distribution-Hypergeometric.html#t:HypergeometricDistribution">HypergeometricDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#stdDev" class="link">Source</a> <a href="#v:stdDev" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Variance:Variance:10" class="instance expander" onclick="toggleSection('i:ic:Variance:Variance:10')"></span> <a href="Statistics-Distribution.html#t:Variance">Variance</a> <a href="Statistics-Distribution-Normal.html#t:NormalDistribution">NormalDistribution</a></span> <a href="src/Statistics-Distribution.html#line-68" class="link">Source</a> <a href="#t:Variance" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Variance:Variance:10" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:variance">variance</a> :: <a href="Statistics-Distribution-Normal.html#t:NormalDistribution">NormalDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#variance" class="link">Source</a> <a href="#v:variance" class="selflink">#</a></p><p class="src"><a href="#v:stdDev">stdDev</a> :: <a href="Statistics-Distribution-Normal.html#t:NormalDistribution">NormalDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#stdDev" class="link">Source</a> <a href="#v:stdDev" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Variance:Variance:11" class="instance expander" onclick="toggleSection('i:ic:Variance:Variance:11')"></span> <a href="Statistics-Distribution.html#t:Variance">Variance</a> <a href="Statistics-Distribution-Uniform.html#t:UniformDistribution">UniformDistribution</a></span> <a href="src/Statistics-Distribution.html#line-72" class="link">Source</a> <a href="#t:Variance" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Variance:Variance:11" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:variance">variance</a> :: <a href="Statistics-Distribution-Uniform.html#t:UniformDistribution">UniformDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#variance" class="link">Source</a> <a href="#v:variance" class="selflink">#</a></p><p class="src"><a href="#v:stdDev">stdDev</a> :: <a href="Statistics-Distribution-Uniform.html#t:UniformDistribution">UniformDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#stdDev" class="link">Source</a> <a href="#v:stdDev" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Variance:Variance:12" class="instance expander" onclick="toggleSection('i:ic:Variance:Variance:12')"></span> <a href="Statistics-Distribution.html#t:Variance">Variance</a> <a href="Statistics-Distribution-Laplace.html#t:LaplaceDistribution">LaplaceDistribution</a></span> <a href="src/Statistics-Distribution.html#line-68" class="link">Source</a> <a href="#t:Variance" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Variance:Variance:12" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:variance">variance</a> :: <a href="Statistics-Distribution-Laplace.html#t:LaplaceDistribution">LaplaceDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#variance" class="link">Source</a> <a href="#v:variance" class="selflink">#</a></p><p class="src"><a href="#v:stdDev">stdDev</a> :: <a href="Statistics-Distribution-Laplace.html#t:LaplaceDistribution">LaplaceDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#stdDev" class="link">Source</a> <a href="#v:stdDev" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Variance:Variance:13" class="instance expander" onclick="toggleSection('i:ic:Variance:Variance:13')"></span> <a href="Statistics-Distribution.html#t:Variance">Variance</a> d =&gt; <a href="Statistics-Distribution.html#t:Variance">Variance</a> (<a href="Statistics-Distribution-Transform.html#t:LinearTransform">LinearTransform</a> d)</span> <a href="src/Statistics-Distribution.html#line-81" class="link">Source</a> <a href="#t:Variance" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Variance:Variance:13" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:variance">variance</a> :: <a href="Statistics-Distribution-Transform.html#t:LinearTransform">LinearTransform</a> d -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#variance" class="link">Source</a> <a href="#v:variance" class="selflink">#</a></p><p class="src"><a href="#v:stdDev">stdDev</a> :: <a href="Statistics-Distribution-Transform.html#t:LinearTransform">LinearTransform</a> d -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#stdDev" class="link">Source</a> <a href="#v:stdDev" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">class</span> <a href="Statistics-Distribution.html#t:Distribution">Distribution</a> d =&gt; <a id="t:MaybeEntropy" class="def">MaybeEntropy</a> d <span class="keyword">where</span> <a href="src/Statistics-Distribution.html#MaybeEntropy" class="link">Source</a> <a href="#t:MaybeEntropy" class="selflink">#</a></p><div class="doc"><p>Type class for distributions with entropy, meaning Shannon entropy
   in the case of a discrete distribution, or differential entropy in the
   case of a continuous one.  <code><a href="Statistics-Distribution.html#v:maybeEntropy">maybeEntropy</a></code> should return <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#v:Nothing">Nothing</a></code> if
   entropy is undefined for the chosen parameter values.</p></div><div class="subs minimal"><p class="caption">Minimal complete definition</p><p class="src"><a href="Statistics-Distribution.html#v:maybeEntropy">maybeEntropy</a></p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a id="v:maybeEntropy" class="def">maybeEntropy</a> :: d -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#maybeEntropy" class="link">Source</a> <a href="#v:maybeEntropy" class="selflink">#</a></p><div class="doc"><p>Returns the entropy of a distribution, in nats, if such is defined.</p></div></div><div class="subs instances"><p id="control.i:MaybeEntropy" class="caption collapser" onclick="toggleSection('i:MaybeEntropy')">Instances</p><div id="section.i:MaybeEntropy" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MaybeEntropy:MaybeEntropy:1" class="instance expander" onclick="toggleSection('i:ic:MaybeEntropy:MaybeEntropy:1')"></span> <a href="Statistics-Distribution.html#t:MaybeEntropy">MaybeEntropy</a> <a href="Statistics-Distribution-Beta.html#t:BetaDistribution">BetaDistribution</a></span> <a href="src/Statistics-Distribution.html#line-94" class="link">Source</a> <a href="#t:MaybeEntropy" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MaybeEntropy:MaybeEntropy:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:maybeEntropy">maybeEntropy</a> :: <a href="Statistics-Distribution-Beta.html#t:BetaDistribution">BetaDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#maybeEntropy" class="link">Source</a> <a href="#v:maybeEntropy" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MaybeEntropy:MaybeEntropy:2" class="instance expander" onclick="toggleSection('i:ic:MaybeEntropy:MaybeEntropy:2')"></span> <a href="Statistics-Distribution.html#t:MaybeEntropy">MaybeEntropy</a> <a href="Statistics-Distribution-Binomial.html#t:BinomialDistribution">BinomialDistribution</a></span> <a href="src/Statistics-Distribution.html#line-78" class="link">Source</a> <a href="#t:MaybeEntropy" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MaybeEntropy:MaybeEntropy:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:maybeEntropy">maybeEntropy</a> :: <a href="Statistics-Distribution-Binomial.html#t:BinomialDistribution">BinomialDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#maybeEntropy" class="link">Source</a> <a href="#v:maybeEntropy" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MaybeEntropy:MaybeEntropy:3" class="instance expander" onclick="toggleSection('i:ic:MaybeEntropy:MaybeEntropy:3')"></span> <a href="Statistics-Distribution.html#t:MaybeEntropy">MaybeEntropy</a> <a href="Statistics-Distribution-Poisson.html#t:PoissonDistribution">PoissonDistribution</a></span> <a href="src/Statistics-Distribution.html#line-77" class="link">Source</a> <a href="#t:MaybeEntropy" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MaybeEntropy:MaybeEntropy:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:maybeEntropy">maybeEntropy</a> :: <a href="Statistics-Distribution-Poisson.html#t:PoissonDistribution">PoissonDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#maybeEntropy" class="link">Source</a> <a href="#v:maybeEntropy" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MaybeEntropy:MaybeEntropy:4" class="instance expander" onclick="toggleSection('i:ic:MaybeEntropy:MaybeEntropy:4')"></span> <a href="Statistics-Distribution.html#t:MaybeEntropy">MaybeEntropy</a> <a href="Statistics-Distribution-CauchyLorentz.html#t:CauchyDistribution">CauchyDistribution</a></span> <a href="src/Statistics-Distribution.html#line-84" class="link">Source</a> <a href="#t:MaybeEntropy" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MaybeEntropy:MaybeEntropy:4" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:maybeEntropy">maybeEntropy</a> :: <a href="Statistics-Distribution-CauchyLorentz.html#t:CauchyDistribution">CauchyDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#maybeEntropy" class="link">Source</a> <a href="#v:maybeEntropy" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MaybeEntropy:MaybeEntropy:5" class="instance expander" onclick="toggleSection('i:ic:MaybeEntropy:MaybeEntropy:5')"></span> <a href="Statistics-Distribution.html#t:MaybeEntropy">MaybeEntropy</a> <a href="Statistics-Distribution-ChiSquared.html#t:ChiSquared">ChiSquared</a></span> <a href="src/Statistics-Distribution.html#line-84" class="link">Source</a> <a href="#t:MaybeEntropy" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MaybeEntropy:MaybeEntropy:5" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:maybeEntropy">maybeEntropy</a> :: <a href="Statistics-Distribution-ChiSquared.html#t:ChiSquared">ChiSquared</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#maybeEntropy" class="link">Source</a> <a href="#v:maybeEntropy" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MaybeEntropy:MaybeEntropy:6" class="instance expander" onclick="toggleSection('i:ic:MaybeEntropy:MaybeEntropy:6')"></span> <a href="Statistics-Distribution.html#t:MaybeEntropy">MaybeEntropy</a> <a href="Statistics-Distribution-Exponential.html#t:ExponentialDistribution">ExponentialDistribution</a></span> <a href="src/Statistics-Distribution.html#line-78" class="link">Source</a> <a href="#t:MaybeEntropy" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MaybeEntropy:MaybeEntropy:6" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:maybeEntropy">maybeEntropy</a> :: <a href="Statistics-Distribution-Exponential.html#t:ExponentialDistribution">ExponentialDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#maybeEntropy" class="link">Source</a> <a href="#v:maybeEntropy" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MaybeEntropy:MaybeEntropy:7" class="instance expander" onclick="toggleSection('i:ic:MaybeEntropy:MaybeEntropy:7')"></span> <a href="Statistics-Distribution.html#t:MaybeEntropy">MaybeEntropy</a> <a href="Statistics-Distribution-Gamma.html#t:GammaDistribution">GammaDistribution</a></span> <a href="src/Statistics-Distribution.html#line-94" class="link">Source</a> <a href="#t:MaybeEntropy" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MaybeEntropy:MaybeEntropy:7" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:maybeEntropy">maybeEntropy</a> :: <a href="Statistics-Distribution-Gamma.html#t:GammaDistribution">GammaDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#maybeEntropy" class="link">Source</a> <a href="#v:maybeEntropy" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MaybeEntropy:MaybeEntropy:8" class="instance expander" onclick="toggleSection('i:ic:MaybeEntropy:MaybeEntropy:8')"></span> <a href="Statistics-Distribution.html#t:MaybeEntropy">MaybeEntropy</a> <a href="Statistics-Distribution-Geometric.html#t:GeometricDistribution0">GeometricDistribution0</a></span> <a href="src/Statistics-Distribution.html#line-151" class="link">Source</a> <a href="#t:MaybeEntropy" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MaybeEntropy:MaybeEntropy:8" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:maybeEntropy">maybeEntropy</a> :: <a href="Statistics-Distribution-Geometric.html#t:GeometricDistribution0">GeometricDistribution0</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#maybeEntropy" class="link">Source</a> <a href="#v:maybeEntropy" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MaybeEntropy:MaybeEntropy:9" class="instance expander" onclick="toggleSection('i:ic:MaybeEntropy:MaybeEntropy:9')"></span> <a href="Statistics-Distribution.html#t:MaybeEntropy">MaybeEntropy</a> <a href="Statistics-Distribution-Geometric.html#t:GeometricDistribution">GeometricDistribution</a></span> <a href="src/Statistics-Distribution.html#line-89" class="link">Source</a> <a href="#t:MaybeEntropy" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MaybeEntropy:MaybeEntropy:9" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:maybeEntropy">maybeEntropy</a> :: <a href="Statistics-Distribution-Geometric.html#t:GeometricDistribution">GeometricDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#maybeEntropy" class="link">Source</a> <a href="#v:maybeEntropy" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MaybeEntropy:MaybeEntropy:10" class="instance expander" onclick="toggleSection('i:ic:MaybeEntropy:MaybeEntropy:10')"></span> <a href="Statistics-Distribution.html#t:MaybeEntropy">MaybeEntropy</a> <a href="Statistics-Distribution-Hypergeometric.html#t:HypergeometricDistribution">HypergeometricDistribution</a></span> <a href="src/Statistics-Distribution.html#line-75" class="link">Source</a> <a href="#t:MaybeEntropy" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MaybeEntropy:MaybeEntropy:10" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:maybeEntropy">maybeEntropy</a> :: <a href="Statistics-Distribution-Hypergeometric.html#t:HypergeometricDistribution">HypergeometricDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#maybeEntropy" class="link">Source</a> <a href="#v:maybeEntropy" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MaybeEntropy:MaybeEntropy:11" class="instance expander" onclick="toggleSection('i:ic:MaybeEntropy:MaybeEntropy:11')"></span> <a href="Statistics-Distribution.html#t:MaybeEntropy">MaybeEntropy</a> <a href="Statistics-Distribution-Normal.html#t:NormalDistribution">NormalDistribution</a></span> <a href="src/Statistics-Distribution.html#line-74" class="link">Source</a> <a href="#t:MaybeEntropy" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MaybeEntropy:MaybeEntropy:11" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:maybeEntropy">maybeEntropy</a> :: <a href="Statistics-Distribution-Normal.html#t:NormalDistribution">NormalDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#maybeEntropy" class="link">Source</a> <a href="#v:maybeEntropy" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MaybeEntropy:MaybeEntropy:12" class="instance expander" onclick="toggleSection('i:ic:MaybeEntropy:MaybeEntropy:12')"></span> <a href="Statistics-Distribution.html#t:MaybeEntropy">MaybeEntropy</a> <a href="Statistics-Distribution-StudentT.html#t:StudentT">StudentT</a></span> <a href="src/Statistics-Distribution.html#line-89" class="link">Source</a> <a href="#t:MaybeEntropy" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MaybeEntropy:MaybeEntropy:12" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:maybeEntropy">maybeEntropy</a> :: <a href="Statistics-Distribution-StudentT.html#t:StudentT">StudentT</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#maybeEntropy" class="link">Source</a> <a href="#v:maybeEntropy" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MaybeEntropy:MaybeEntropy:13" class="instance expander" onclick="toggleSection('i:ic:MaybeEntropy:MaybeEntropy:13')"></span> <a href="Statistics-Distribution.html#t:MaybeEntropy">MaybeEntropy</a> <a href="Statistics-Distribution-Uniform.html#t:UniformDistribution">UniformDistribution</a></span> <a href="src/Statistics-Distribution.html#line-87" class="link">Source</a> <a href="#t:MaybeEntropy" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MaybeEntropy:MaybeEntropy:13" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:maybeEntropy">maybeEntropy</a> :: <a href="Statistics-Distribution-Uniform.html#t:UniformDistribution">UniformDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#maybeEntropy" class="link">Source</a> <a href="#v:maybeEntropy" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MaybeEntropy:MaybeEntropy:14" class="instance expander" onclick="toggleSection('i:ic:MaybeEntropy:MaybeEntropy:14')"></span> <a href="Statistics-Distribution.html#t:MaybeEntropy">MaybeEntropy</a> <a href="Statistics-Distribution-FDistribution.html#t:FDistribution">FDistribution</a></span> <a href="src/Statistics-Distribution.html#line-105" class="link">Source</a> <a href="#t:MaybeEntropy" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MaybeEntropy:MaybeEntropy:14" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:maybeEntropy">maybeEntropy</a> :: <a href="Statistics-Distribution-FDistribution.html#t:FDistribution">FDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#maybeEntropy" class="link">Source</a> <a href="#v:maybeEntropy" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MaybeEntropy:MaybeEntropy:15" class="instance expander" onclick="toggleSection('i:ic:MaybeEntropy:MaybeEntropy:15')"></span> <a href="Statistics-Distribution.html#t:MaybeEntropy">MaybeEntropy</a> <a href="Statistics-Distribution-Laplace.html#t:LaplaceDistribution">LaplaceDistribution</a></span> <a href="src/Statistics-Distribution.html#line-81" class="link">Source</a> <a href="#t:MaybeEntropy" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MaybeEntropy:MaybeEntropy:15" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:maybeEntropy">maybeEntropy</a> :: <a href="Statistics-Distribution-Laplace.html#t:LaplaceDistribution">LaplaceDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#maybeEntropy" class="link">Source</a> <a href="#v:maybeEntropy" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MaybeEntropy:MaybeEntropy:16" class="instance expander" onclick="toggleSection('i:ic:MaybeEntropy:MaybeEntropy:16')"></span> (<a href="Statistics-Distribution.html#t:MaybeEntropy">MaybeEntropy</a> d, <a href="Statistics-Distribution.html#t:DiscreteDistr">DiscreteDistr</a> d) =&gt; <a href="Statistics-Distribution.html#t:MaybeEntropy">MaybeEntropy</a> (<a href="Statistics-Distribution-Transform.html#t:LinearTransform">LinearTransform</a> d)</span> <a href="src/Statistics-Distribution.html#line-85" class="link">Source</a> <a href="#t:MaybeEntropy" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MaybeEntropy:MaybeEntropy:16" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:maybeEntropy">maybeEntropy</a> :: <a href="Statistics-Distribution-Transform.html#t:LinearTransform">LinearTransform</a> d -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#maybeEntropy" class="link">Source</a> <a href="#v:maybeEntropy" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">class</span> <a href="Statistics-Distribution.html#t:MaybeEntropy">MaybeEntropy</a> d =&gt; <a id="t:Entropy" class="def">Entropy</a> d <span class="keyword">where</span> <a href="src/Statistics-Distribution.html#Entropy" class="link">Source</a> <a href="#t:Entropy" class="selflink">#</a></p><div class="doc"><p>Type class for distributions with entropy, meaning Shannon
   entropy in the case of a discrete distribution, or differential
   entropy in the case of a continuous one.  If the distribution has
   well-defined entropy for all valid parameter values then it
   should be an instance of this type class.</p></div><div class="subs minimal"><p class="caption">Minimal complete definition</p><p class="src"><a href="Statistics-Distribution.html#v:entropy">entropy</a></p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a id="v:entropy" class="def">entropy</a> :: d -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#entropy" class="link">Source</a> <a href="#v:entropy" class="selflink">#</a></p><div class="doc"><p>Returns the entropy of a distribution, in nats.</p></div></div><div class="subs instances"><p id="control.i:Entropy" class="caption collapser" onclick="toggleSection('i:Entropy')">Instances</p><div id="section.i:Entropy" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Entropy:Entropy:1" class="instance expander" onclick="toggleSection('i:ic:Entropy:Entropy:1')"></span> <a href="Statistics-Distribution.html#t:Entropy">Entropy</a> <a href="Statistics-Distribution-Beta.html#t:BetaDistribution">BetaDistribution</a></span> <a href="src/Statistics-Distribution.html#line-87" class="link">Source</a> <a href="#t:Entropy" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Entropy:Entropy:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:entropy">entropy</a> :: <a href="Statistics-Distribution-Beta.html#t:BetaDistribution">BetaDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#entropy" class="link">Source</a> <a href="#v:entropy" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Entropy:Entropy:2" class="instance expander" onclick="toggleSection('i:ic:Entropy:Entropy:2')"></span> <a href="Statistics-Distribution.html#t:Entropy">Entropy</a> <a href="Statistics-Distribution-Binomial.html#t:BinomialDistribution">BinomialDistribution</a></span> <a href="src/Statistics-Distribution.html#line-72" class="link">Source</a> <a href="#t:Entropy" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Entropy:Entropy:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:entropy">entropy</a> :: <a href="Statistics-Distribution-Binomial.html#t:BinomialDistribution">BinomialDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#entropy" class="link">Source</a> <a href="#v:entropy" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Entropy:Entropy:3" class="instance expander" onclick="toggleSection('i:ic:Entropy:Entropy:3')"></span> <a href="Statistics-Distribution.html#t:Entropy">Entropy</a> <a href="Statistics-Distribution-Poisson.html#t:PoissonDistribution">PoissonDistribution</a></span> <a href="src/Statistics-Distribution.html#line-74" class="link">Source</a> <a href="#t:Entropy" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Entropy:Entropy:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:entropy">entropy</a> :: <a href="Statistics-Distribution-Poisson.html#t:PoissonDistribution">PoissonDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#entropy" class="link">Source</a> <a href="#v:entropy" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Entropy:Entropy:4" class="instance expander" onclick="toggleSection('i:ic:Entropy:Entropy:4')"></span> <a href="Statistics-Distribution.html#t:Entropy">Entropy</a> <a href="Statistics-Distribution-CauchyLorentz.html#t:CauchyDistribution">CauchyDistribution</a></span> <a href="src/Statistics-Distribution.html#line-81" class="link">Source</a> <a href="#t:Entropy" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Entropy:Entropy:4" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:entropy">entropy</a> :: <a href="Statistics-Distribution-CauchyLorentz.html#t:CauchyDistribution">CauchyDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#entropy" class="link">Source</a> <a href="#v:entropy" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Entropy:Entropy:5" class="instance expander" onclick="toggleSection('i:ic:Entropy:Entropy:5')"></span> <a href="Statistics-Distribution.html#t:Entropy">Entropy</a> <a href="Statistics-Distribution-ChiSquared.html#t:ChiSquared">ChiSquared</a></span> <a href="src/Statistics-Distribution.html#line-76" class="link">Source</a> <a href="#t:Entropy" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Entropy:Entropy:5" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:entropy">entropy</a> :: <a href="Statistics-Distribution-ChiSquared.html#t:ChiSquared">ChiSquared</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#entropy" class="link">Source</a> <a href="#v:entropy" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Entropy:Entropy:6" class="instance expander" onclick="toggleSection('i:ic:Entropy:Entropy:6')"></span> <a href="Statistics-Distribution.html#t:Entropy">Entropy</a> <a href="Statistics-Distribution-Exponential.html#t:ExponentialDistribution">ExponentialDistribution</a></span> <a href="src/Statistics-Distribution.html#line-75" class="link">Source</a> <a href="#t:Entropy" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Entropy:Entropy:6" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:entropy">entropy</a> :: <a href="Statistics-Distribution-Exponential.html#t:ExponentialDistribution">ExponentialDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#entropy" class="link">Source</a> <a href="#v:entropy" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Entropy:Entropy:7" class="instance expander" onclick="toggleSection('i:ic:Entropy:Entropy:7')"></span> <a href="Statistics-Distribution.html#t:Entropy">Entropy</a> <a href="Statistics-Distribution-Geometric.html#t:GeometricDistribution0">GeometricDistribution0</a></span> <a href="src/Statistics-Distribution.html#line-148" class="link">Source</a> <a href="#t:Entropy" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Entropy:Entropy:7" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:entropy">entropy</a> :: <a href="Statistics-Distribution-Geometric.html#t:GeometricDistribution0">GeometricDistribution0</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#entropy" class="link">Source</a> <a href="#v:entropy" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Entropy:Entropy:8" class="instance expander" onclick="toggleSection('i:ic:Entropy:Entropy:8')"></span> <a href="Statistics-Distribution.html#t:Entropy">Entropy</a> <a href="Statistics-Distribution-Geometric.html#t:GeometricDistribution">GeometricDistribution</a></span> <a href="src/Statistics-Distribution.html#line-83" class="link">Source</a> <a href="#t:Entropy" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Entropy:Entropy:8" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:entropy">entropy</a> :: <a href="Statistics-Distribution-Geometric.html#t:GeometricDistribution">GeometricDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#entropy" class="link">Source</a> <a href="#v:entropy" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Entropy:Entropy:9" class="instance expander" onclick="toggleSection('i:ic:Entropy:Entropy:9')"></span> <a href="Statistics-Distribution.html#t:Entropy">Entropy</a> <a href="Statistics-Distribution-Hypergeometric.html#t:HypergeometricDistribution">HypergeometricDistribution</a></span> <a href="src/Statistics-Distribution.html#line-72" class="link">Source</a> <a href="#t:Entropy" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Entropy:Entropy:9" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:entropy">entropy</a> :: <a href="Statistics-Distribution-Hypergeometric.html#t:HypergeometricDistribution">HypergeometricDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#entropy" class="link">Source</a> <a href="#v:entropy" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Entropy:Entropy:10" class="instance expander" onclick="toggleSection('i:ic:Entropy:Entropy:10')"></span> <a href="Statistics-Distribution.html#t:Entropy">Entropy</a> <a href="Statistics-Distribution-Normal.html#t:NormalDistribution">NormalDistribution</a></span> <a href="src/Statistics-Distribution.html#line-71" class="link">Source</a> <a href="#t:Entropy" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Entropy:Entropy:10" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:entropy">entropy</a> :: <a href="Statistics-Distribution-Normal.html#t:NormalDistribution">NormalDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#entropy" class="link">Source</a> <a href="#v:entropy" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Entropy:Entropy:11" class="instance expander" onclick="toggleSection('i:ic:Entropy:Entropy:11')"></span> <a href="Statistics-Distribution.html#t:Entropy">Entropy</a> <a href="Statistics-Distribution-StudentT.html#t:StudentT">StudentT</a></span> <a href="src/Statistics-Distribution.html#line-83" class="link">Source</a> <a href="#t:Entropy" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Entropy:Entropy:11" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:entropy">entropy</a> :: <a href="Statistics-Distribution-StudentT.html#t:StudentT">StudentT</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#entropy" class="link">Source</a> <a href="#v:entropy" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Entropy:Entropy:12" class="instance expander" onclick="toggleSection('i:ic:Entropy:Entropy:12')"></span> <a href="Statistics-Distribution.html#t:Entropy">Entropy</a> <a href="Statistics-Distribution-Uniform.html#t:UniformDistribution">UniformDistribution</a></span> <a href="src/Statistics-Distribution.html#line-84" class="link">Source</a> <a href="#t:Entropy" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Entropy:Entropy:12" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:entropy">entropy</a> :: <a href="Statistics-Distribution-Uniform.html#t:UniformDistribution">UniformDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#entropy" class="link">Source</a> <a href="#v:entropy" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Entropy:Entropy:13" class="instance expander" onclick="toggleSection('i:ic:Entropy:Entropy:13')"></span> <a href="Statistics-Distribution.html#t:Entropy">Entropy</a> <a href="Statistics-Distribution-FDistribution.html#t:FDistribution">FDistribution</a></span> <a href="src/Statistics-Distribution.html#line-95" class="link">Source</a> <a href="#t:Entropy" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Entropy:Entropy:13" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:entropy">entropy</a> :: <a href="Statistics-Distribution-FDistribution.html#t:FDistribution">FDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#entropy" class="link">Source</a> <a href="#v:entropy" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Entropy:Entropy:14" class="instance expander" onclick="toggleSection('i:ic:Entropy:Entropy:14')"></span> <a href="Statistics-Distribution.html#t:Entropy">Entropy</a> <a href="Statistics-Distribution-Laplace.html#t:LaplaceDistribution">LaplaceDistribution</a></span> <a href="src/Statistics-Distribution.html#line-78" class="link">Source</a> <a href="#t:Entropy" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Entropy:Entropy:14" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:entropy">entropy</a> :: <a href="Statistics-Distribution-Laplace.html#t:LaplaceDistribution">LaplaceDistribution</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#entropy" class="link">Source</a> <a href="#v:entropy" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Entropy:Entropy:15" class="instance expander" onclick="toggleSection('i:ic:Entropy:Entropy:15')"></span> (<a href="Statistics-Distribution.html#t:Entropy">Entropy</a> d, <a href="Statistics-Distribution.html#t:DiscreteDistr">DiscreteDistr</a> d) =&gt; <a href="Statistics-Distribution.html#t:Entropy">Entropy</a> (<a href="Statistics-Distribution-Transform.html#t:LinearTransform">LinearTransform</a> d)</span> <a href="src/Statistics-Distribution.html#line-89" class="link">Source</a> <a href="#t:Entropy" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Entropy:Entropy:15" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:entropy">entropy</a> :: <a href="Statistics-Distribution-Transform.html#t:LinearTransform">LinearTransform</a> d -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#entropy" class="link">Source</a> <a href="#v:entropy" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><h2 id="g:3">Random number generation</h2><div class="top"><p class="src"><span class="keyword">class</span> <a href="Statistics-Distribution.html#t:Distribution">Distribution</a> d =&gt; <a id="t:ContGen" class="def">ContGen</a> d <span class="keyword">where</span> <a href="src/Statistics-Distribution.html#ContGen" class="link">Source</a> <a href="#t:ContGen" class="selflink">#</a></p><div class="doc"><p>Generate discrete random variates which have given
   distribution.</p></div><div class="subs minimal"><p class="caption">Minimal complete definition</p><p class="src"><a href="Statistics-Distribution.html#v:genContVar">genContVar</a></p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a id="v:genContVar" class="def">genContVar</a> :: <a href="file:///usr/share/doc/libghc-primitive-doc/html/Control-Monad-Primitive.html#t:PrimMonad">PrimMonad</a> m =&gt; d -&gt; <a href="file:///usr/share/doc/libghc-mwc-random-doc/html/System-Random-MWC.html#t:Gen">Gen</a> (<a href="file:///usr/share/doc/libghc-primitive-doc/html/Control-Monad-Primitive.html#t:PrimState">PrimState</a> m) -&gt; m <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#genContVar" class="link">Source</a> <a href="#v:genContVar" class="selflink">#</a></p></div><div class="subs instances"><p id="control.i:ContGen" class="caption collapser" onclick="toggleSection('i:ContGen')">Instances</p><div id="section.i:ContGen" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ContGen:ContGen:1" class="instance expander" onclick="toggleSection('i:ic:ContGen:ContGen:1')"></span> <a href="Statistics-Distribution.html#t:ContGen">ContGen</a> <a href="Statistics-Distribution-Beta.html#t:BetaDistribution">BetaDistribution</a></span> <a href="src/Statistics-Distribution.html#line-111" class="link">Source</a> <a href="#t:ContGen" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:ContGen:ContGen:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:genContVar">genContVar</a> :: <a href="file:///usr/share/doc/libghc-primitive-doc/html/Control-Monad-Primitive.html#t:PrimMonad">PrimMonad</a> m =&gt; <a href="Statistics-Distribution-Beta.html#t:BetaDistribution">BetaDistribution</a> -&gt; <a href="file:///usr/share/doc/libghc-mwc-random-doc/html/System-Random-MWC.html#t:Gen">Gen</a> (<a href="file:///usr/share/doc/libghc-primitive-doc/html/Control-Monad-Primitive.html#t:PrimState">PrimState</a> m) -&gt; m <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#genContVar" class="link">Source</a> <a href="#v:genContVar" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ContGen:ContGen:2" class="instance expander" onclick="toggleSection('i:ic:ContGen:ContGen:2')"></span> <a href="Statistics-Distribution.html#t:ContGen">ContGen</a> <a href="Statistics-Distribution-CauchyLorentz.html#t:CauchyDistribution">CauchyDistribution</a></span> <a href="src/Statistics-Distribution.html#line-78" class="link">Source</a> <a href="#t:ContGen" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:ContGen:ContGen:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:genContVar">genContVar</a> :: <a href="file:///usr/share/doc/libghc-primitive-doc/html/Control-Monad-Primitive.html#t:PrimMonad">PrimMonad</a> m =&gt; <a href="Statistics-Distribution-CauchyLorentz.html#t:CauchyDistribution">CauchyDistribution</a> -&gt; <a href="file:///usr/share/doc/libghc-mwc-random-doc/html/System-Random-MWC.html#t:Gen">Gen</a> (<a href="file:///usr/share/doc/libghc-primitive-doc/html/Control-Monad-Primitive.html#t:PrimState">PrimState</a> m) -&gt; m <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#genContVar" class="link">Source</a> <a href="#v:genContVar" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ContGen:ContGen:3" class="instance expander" onclick="toggleSection('i:ic:ContGen:ContGen:3')"></span> <a href="Statistics-Distribution.html#t:ContGen">ContGen</a> <a href="Statistics-Distribution-ChiSquared.html#t:ChiSquared">ChiSquared</a></span> <a href="src/Statistics-Distribution.html#line-87" class="link">Source</a> <a href="#t:ContGen" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:ContGen:ContGen:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:genContVar">genContVar</a> :: <a href="file:///usr/share/doc/libghc-primitive-doc/html/Control-Monad-Primitive.html#t:PrimMonad">PrimMonad</a> m =&gt; <a href="Statistics-Distribution-ChiSquared.html#t:ChiSquared">ChiSquared</a> -&gt; <a href="file:///usr/share/doc/libghc-mwc-random-doc/html/System-Random-MWC.html#t:Gen">Gen</a> (<a href="file:///usr/share/doc/libghc-primitive-doc/html/Control-Monad-Primitive.html#t:PrimState">PrimState</a> m) -&gt; m <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#genContVar" class="link">Source</a> <a href="#v:genContVar" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ContGen:ContGen:4" class="instance expander" onclick="toggleSection('i:ic:ContGen:ContGen:4')"></span> <a href="Statistics-Distribution.html#t:ContGen">ContGen</a> <a href="Statistics-Distribution-Exponential.html#t:ExponentialDistribution">ExponentialDistribution</a></span> <a href="src/Statistics-Distribution.html#line-81" class="link">Source</a> <a href="#t:ContGen" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:ContGen:ContGen:4" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:genContVar">genContVar</a> :: <a href="file:///usr/share/doc/libghc-primitive-doc/html/Control-Monad-Primitive.html#t:PrimMonad">PrimMonad</a> m =&gt; <a href="Statistics-Distribution-Exponential.html#t:ExponentialDistribution">ExponentialDistribution</a> -&gt; <a href="file:///usr/share/doc/libghc-mwc-random-doc/html/System-Random-MWC.html#t:Gen">Gen</a> (<a href="file:///usr/share/doc/libghc-primitive-doc/html/Control-Monad-Primitive.html#t:PrimState">PrimState</a> m) -&gt; m <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#genContVar" class="link">Source</a> <a href="#v:genContVar" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ContGen:ContGen:5" class="instance expander" onclick="toggleSection('i:ic:ContGen:ContGen:5')"></span> <a href="Statistics-Distribution.html#t:ContGen">ContGen</a> <a href="Statistics-Distribution-Gamma.html#t:GammaDistribution">GammaDistribution</a></span> <a href="src/Statistics-Distribution.html#line-104" class="link">Source</a> <a href="#t:ContGen" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:ContGen:ContGen:5" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:genContVar">genContVar</a> :: <a href="file:///usr/share/doc/libghc-primitive-doc/html/Control-Monad-Primitive.html#t:PrimMonad">PrimMonad</a> m =&gt; <a href="Statistics-Distribution-Gamma.html#t:GammaDistribution">GammaDistribution</a> -&gt; <a href="file:///usr/share/doc/libghc-mwc-random-doc/html/System-Random-MWC.html#t:Gen">Gen</a> (<a href="file:///usr/share/doc/libghc-primitive-doc/html/Control-Monad-Primitive.html#t:PrimState">PrimState</a> m) -&gt; m <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#genContVar" class="link">Source</a> <a href="#v:genContVar" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ContGen:ContGen:6" class="instance expander" onclick="toggleSection('i:ic:ContGen:ContGen:6')"></span> <a href="Statistics-Distribution.html#t:ContGen">ContGen</a> <a href="Statistics-Distribution-Geometric.html#t:GeometricDistribution0">GeometricDistribution0</a></span> <a href="src/Statistics-Distribution.html#line-157" class="link">Source</a> <a href="#t:ContGen" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:ContGen:ContGen:6" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:genContVar">genContVar</a> :: <a href="file:///usr/share/doc/libghc-primitive-doc/html/Control-Monad-Primitive.html#t:PrimMonad">PrimMonad</a> m =&gt; <a href="Statistics-Distribution-Geometric.html#t:GeometricDistribution0">GeometricDistribution0</a> -&gt; <a href="file:///usr/share/doc/libghc-mwc-random-doc/html/System-Random-MWC.html#t:Gen">Gen</a> (<a href="file:///usr/share/doc/libghc-primitive-doc/html/Control-Monad-Primitive.html#t:PrimState">PrimState</a> m) -&gt; m <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#genContVar" class="link">Source</a> <a href="#v:genContVar" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ContGen:ContGen:7" class="instance expander" onclick="toggleSection('i:ic:ContGen:ContGen:7')"></span> <a href="Statistics-Distribution.html#t:ContGen">ContGen</a> <a href="Statistics-Distribution-Geometric.html#t:GeometricDistribution">GeometricDistribution</a></span> <a href="src/Statistics-Distribution.html#line-95" class="link">Source</a> <a href="#t:ContGen" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:ContGen:ContGen:7" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:genContVar">genContVar</a> :: <a href="file:///usr/share/doc/libghc-primitive-doc/html/Control-Monad-Primitive.html#t:PrimMonad">PrimMonad</a> m =&gt; <a href="Statistics-Distribution-Geometric.html#t:GeometricDistribution">GeometricDistribution</a> -&gt; <a href="file:///usr/share/doc/libghc-mwc-random-doc/html/System-Random-MWC.html#t:Gen">Gen</a> (<a href="file:///usr/share/doc/libghc-primitive-doc/html/Control-Monad-Primitive.html#t:PrimState">PrimState</a> m) -&gt; m <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#genContVar" class="link">Source</a> <a href="#v:genContVar" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ContGen:ContGen:8" class="instance expander" onclick="toggleSection('i:ic:ContGen:ContGen:8')"></span> <a href="Statistics-Distribution.html#t:ContGen">ContGen</a> <a href="Statistics-Distribution-Normal.html#t:NormalDistribution">NormalDistribution</a></span> <a href="src/Statistics-Distribution.html#line-77" class="link">Source</a> <a href="#t:ContGen" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:ContGen:ContGen:8" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:genContVar">genContVar</a> :: <a href="file:///usr/share/doc/libghc-primitive-doc/html/Control-Monad-Primitive.html#t:PrimMonad">PrimMonad</a> m =&gt; <a href="Statistics-Distribution-Normal.html#t:NormalDistribution">NormalDistribution</a> -&gt; <a href="file:///usr/share/doc/libghc-mwc-random-doc/html/System-Random-MWC.html#t:Gen">Gen</a> (<a href="file:///usr/share/doc/libghc-primitive-doc/html/Control-Monad-Primitive.html#t:PrimState">PrimState</a> m) -&gt; m <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#genContVar" class="link">Source</a> <a href="#v:genContVar" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ContGen:ContGen:9" class="instance expander" onclick="toggleSection('i:ic:ContGen:ContGen:9')"></span> <a href="Statistics-Distribution.html#t:ContGen">ContGen</a> <a href="Statistics-Distribution-StudentT.html#t:StudentT">StudentT</a></span> <a href="src/Statistics-Distribution.html#line-92" class="link">Source</a> <a href="#t:ContGen" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:ContGen:ContGen:9" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:genContVar">genContVar</a> :: <a href="file:///usr/share/doc/libghc-primitive-doc/html/Control-Monad-Primitive.html#t:PrimMonad">PrimMonad</a> m =&gt; <a href="Statistics-Distribution-StudentT.html#t:StudentT">StudentT</a> -&gt; <a href="file:///usr/share/doc/libghc-mwc-random-doc/html/System-Random-MWC.html#t:Gen">Gen</a> (<a href="file:///usr/share/doc/libghc-primitive-doc/html/Control-Monad-Primitive.html#t:PrimState">PrimState</a> m) -&gt; m <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#genContVar" class="link">Source</a> <a href="#v:genContVar" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ContGen:ContGen:10" class="instance expander" onclick="toggleSection('i:ic:ContGen:ContGen:10')"></span> <a href="Statistics-Distribution.html#t:ContGen">ContGen</a> <a href="Statistics-Distribution-Uniform.html#t:UniformDistribution">UniformDistribution</a></span> <a href="src/Statistics-Distribution.html#line-90" class="link">Source</a> <a href="#t:ContGen" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:ContGen:ContGen:10" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:genContVar">genContVar</a> :: <a href="file:///usr/share/doc/libghc-primitive-doc/html/Control-Monad-Primitive.html#t:PrimMonad">PrimMonad</a> m =&gt; <a href="Statistics-Distribution-Uniform.html#t:UniformDistribution">UniformDistribution</a> -&gt; <a href="file:///usr/share/doc/libghc-mwc-random-doc/html/System-Random-MWC.html#t:Gen">Gen</a> (<a href="file:///usr/share/doc/libghc-primitive-doc/html/Control-Monad-Primitive.html#t:PrimState">PrimState</a> m) -&gt; m <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#genContVar" class="link">Source</a> <a href="#v:genContVar" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ContGen:ContGen:11" class="instance expander" onclick="toggleSection('i:ic:ContGen:ContGen:11')"></span> <a href="Statistics-Distribution.html#t:ContGen">ContGen</a> <a href="Statistics-Distribution-FDistribution.html#t:FDistribution">FDistribution</a></span> <a href="src/Statistics-Distribution.html#line-108" class="link">Source</a> <a href="#t:ContGen" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:ContGen:ContGen:11" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:genContVar">genContVar</a> :: <a href="file:///usr/share/doc/libghc-primitive-doc/html/Control-Monad-Primitive.html#t:PrimMonad">PrimMonad</a> m =&gt; <a href="Statistics-Distribution-FDistribution.html#t:FDistribution">FDistribution</a> -&gt; <a href="file:///usr/share/doc/libghc-mwc-random-doc/html/System-Random-MWC.html#t:Gen">Gen</a> (<a href="file:///usr/share/doc/libghc-primitive-doc/html/Control-Monad-Primitive.html#t:PrimState">PrimState</a> m) -&gt; m <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#genContVar" class="link">Source</a> <a href="#v:genContVar" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ContGen:ContGen:12" class="instance expander" onclick="toggleSection('i:ic:ContGen:ContGen:12')"></span> <a href="Statistics-Distribution.html#t:ContGen">ContGen</a> <a href="Statistics-Distribution-Laplace.html#t:LaplaceDistribution">LaplaceDistribution</a></span> <a href="src/Statistics-Distribution.html#line-84" class="link">Source</a> <a href="#t:ContGen" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:ContGen:ContGen:12" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:genContVar">genContVar</a> :: <a href="file:///usr/share/doc/libghc-primitive-doc/html/Control-Monad-Primitive.html#t:PrimMonad">PrimMonad</a> m =&gt; <a href="Statistics-Distribution-Laplace.html#t:LaplaceDistribution">LaplaceDistribution</a> -&gt; <a href="file:///usr/share/doc/libghc-mwc-random-doc/html/System-Random-MWC.html#t:Gen">Gen</a> (<a href="file:///usr/share/doc/libghc-primitive-doc/html/Control-Monad-Primitive.html#t:PrimState">PrimState</a> m) -&gt; m <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#genContVar" class="link">Source</a> <a href="#v:genContVar" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ContGen:ContGen:13" class="instance expander" onclick="toggleSection('i:ic:ContGen:ContGen:13')"></span> <a href="Statistics-Distribution.html#t:ContGen">ContGen</a> d =&gt; <a href="Statistics-Distribution.html#t:ContGen">ContGen</a> (<a href="Statistics-Distribution-Transform.html#t:LinearTransform">LinearTransform</a> d)</span> <a href="src/Statistics-Distribution.html#line-93" class="link">Source</a> <a href="#t:ContGen" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:ContGen:ContGen:13" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:genContVar">genContVar</a> :: <a href="file:///usr/share/doc/libghc-primitive-doc/html/Control-Monad-Primitive.html#t:PrimMonad">PrimMonad</a> m =&gt; <a href="Statistics-Distribution-Transform.html#t:LinearTransform">LinearTransform</a> d -&gt; <a href="file:///usr/share/doc/libghc-mwc-random-doc/html/System-Random-MWC.html#t:Gen">Gen</a> (<a href="file:///usr/share/doc/libghc-primitive-doc/html/Control-Monad-Primitive.html#t:PrimState">PrimState</a> m) -&gt; m <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#genContVar" class="link">Source</a> <a href="#v:genContVar" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">class</span> (<a href="Statistics-Distribution.html#t:DiscreteDistr">DiscreteDistr</a> d, <a href="Statistics-Distribution.html#t:ContGen">ContGen</a> d) =&gt; <a id="t:DiscreteGen" class="def">DiscreteGen</a> d <span class="keyword">where</span> <a href="src/Statistics-Distribution.html#DiscreteGen" class="link">Source</a> <a href="#t:DiscreteGen" class="selflink">#</a></p><div class="doc"><p>Generate discrete random variates which have given
   distribution. <code><a href="Statistics-Distribution.html#t:ContGen">ContGen</a></code> is superclass because it's always possible
   to generate real-valued variates from integer values</p></div><div class="subs minimal"><p class="caption">Minimal complete definition</p><p class="src"><a href="Statistics-Distribution.html#v:genDiscreteVar">genDiscreteVar</a></p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a id="v:genDiscreteVar" class="def">genDiscreteVar</a> :: <a href="file:///usr/share/doc/libghc-primitive-doc/html/Control-Monad-Primitive.html#t:PrimMonad">PrimMonad</a> m =&gt; d -&gt; <a href="file:///usr/share/doc/libghc-mwc-random-doc/html/System-Random-MWC.html#t:Gen">Gen</a> (<a href="file:///usr/share/doc/libghc-primitive-doc/html/Control-Monad-Primitive.html#t:PrimState">PrimState</a> m) -&gt; m <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> <a href="src/Statistics-Distribution.html#genDiscreteVar" class="link">Source</a> <a href="#v:genDiscreteVar" class="selflink">#</a></p></div><div class="subs instances"><p id="control.i:DiscreteGen" class="caption collapser" onclick="toggleSection('i:DiscreteGen')">Instances</p><div id="section.i:DiscreteGen" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:DiscreteGen:DiscreteGen:1" class="instance expander" onclick="toggleSection('i:ic:DiscreteGen:DiscreteGen:1')"></span> <a href="Statistics-Distribution.html#t:DiscreteGen">DiscreteGen</a> <a href="Statistics-Distribution-Geometric.html#t:GeometricDistribution0">GeometricDistribution0</a></span> <a href="src/Statistics-Distribution.html#line-154" class="link">Source</a> <a href="#t:DiscreteGen" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:DiscreteGen:DiscreteGen:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:genDiscreteVar">genDiscreteVar</a> :: <a href="file:///usr/share/doc/libghc-primitive-doc/html/Control-Monad-Primitive.html#t:PrimMonad">PrimMonad</a> m =&gt; <a href="Statistics-Distribution-Geometric.html#t:GeometricDistribution0">GeometricDistribution0</a> -&gt; <a href="file:///usr/share/doc/libghc-mwc-random-doc/html/System-Random-MWC.html#t:Gen">Gen</a> (<a href="file:///usr/share/doc/libghc-primitive-doc/html/Control-Monad-Primitive.html#t:PrimState">PrimState</a> m) -&gt; m <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> <a href="src/Statistics-Distribution.html#genDiscreteVar" class="link">Source</a> <a href="#v:genDiscreteVar" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:DiscreteGen:DiscreteGen:2" class="instance expander" onclick="toggleSection('i:ic:DiscreteGen:DiscreteGen:2')"></span> <a href="Statistics-Distribution.html#t:DiscreteGen">DiscreteGen</a> <a href="Statistics-Distribution-Geometric.html#t:GeometricDistribution">GeometricDistribution</a></span> <a href="src/Statistics-Distribution.html#line-92" class="link">Source</a> <a href="#t:DiscreteGen" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:DiscreteGen:DiscreteGen:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:genDiscreteVar">genDiscreteVar</a> :: <a href="file:///usr/share/doc/libghc-primitive-doc/html/Control-Monad-Primitive.html#t:PrimMonad">PrimMonad</a> m =&gt; <a href="Statistics-Distribution-Geometric.html#t:GeometricDistribution">GeometricDistribution</a> -&gt; <a href="file:///usr/share/doc/libghc-mwc-random-doc/html/System-Random-MWC.html#t:Gen">Gen</a> (<a href="file:///usr/share/doc/libghc-primitive-doc/html/Control-Monad-Primitive.html#t:PrimState">PrimState</a> m) -&gt; m <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> <a href="src/Statistics-Distribution.html#genDiscreteVar" class="link">Source</a> <a href="#v:genDiscreteVar" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><a id="v:genContinous" class="def">genContinous</a> :: (<a href="Statistics-Distribution.html#t:ContDistr">ContDistr</a> d, <a href="file:///usr/share/doc/libghc-primitive-doc/html/Control-Monad-Primitive.html#t:PrimMonad">PrimMonad</a> m) =&gt; d -&gt; <a href="file:///usr/share/doc/libghc-mwc-random-doc/html/System-Random-MWC.html#t:Gen">Gen</a> (<a href="file:///usr/share/doc/libghc-primitive-doc/html/Control-Monad-Primitive.html#t:PrimState">PrimState</a> m) -&gt; m <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#genContinous" class="link">Source</a> <a href="#v:genContinous" class="selflink">#</a></p><div class="doc"><p>Generate variates from continous distribution using inverse
   transform rule.</p></div></div><h1 id="g:4">Helper functions</h1><div class="top"><p class="src"><a id="v:findRoot" class="def">findRoot</a> <a href="src/Statistics-Distribution.html#findRoot" class="link">Source</a> <a href="#v:findRoot" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Statistics-Distribution.html#t:ContDistr">ContDistr</a> d</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; d</td><td class="doc"><p>Distribution</p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a></td><td class="doc"><p>Probability <em>p</em></p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a></td><td class="doc"><p>Initial guess</p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a></td><td class="doc"><p>Lower bound on interval</p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a></td><td class="doc"><p>Upper bound on interval</p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Approximate the value of <em>X</em> for which P(<em>x</em>&gt;<em>X</em>)=<em>p</em>.</p><p>This method uses a combination of Newton-Raphson iteration and
 bisection with the given guess as a starting point.  The upper and
 lower bounds specify the interval in which the probability
 distribution reaches the value <em>p</em>.</p></div></div><div class="top"><p class="src"><a id="v:sumProbabilities" class="def">sumProbabilities</a> :: <a href="Statistics-Distribution.html#t:DiscreteDistr">DiscreteDistr</a> d =&gt; d -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Double">Double</a> <a href="src/Statistics-Distribution.html#sumProbabilities" class="link">Source</a> <a href="#v:sumProbabilities" class="selflink">#</a></p><div class="doc"><p>Sum probabilities in inclusive interval.</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.17.2</p></div></body></html>