diff options
Diffstat (limited to 'commons-math3-3.6.1/docs/apidocs/org/apache/commons/math3/distribution/BinomialDistribution.html')
-rw-r--r-- | commons-math3-3.6.1/docs/apidocs/org/apache/commons/math3/distribution/BinomialDistribution.html | 546 |
1 files changed, 546 insertions, 0 deletions
diff --git a/commons-math3-3.6.1/docs/apidocs/org/apache/commons/math3/distribution/BinomialDistribution.html b/commons-math3-3.6.1/docs/apidocs/org/apache/commons/math3/distribution/BinomialDistribution.html new file mode 100644 index 0000000..2192a0a --- /dev/null +++ b/commons-math3-3.6.1/docs/apidocs/org/apache/commons/math3/distribution/BinomialDistribution.html @@ -0,0 +1,546 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<!-- NewPage --> +<html lang="en"> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<title>BinomialDistribution (Apache Commons Math 3.6.1 API)</title> +<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> +</head> +<body> +<script type="text/javascript"><!-- + if (location.href.indexOf('is-external=true') == -1) { + parent.document.title="BinomialDistribution (Apache Commons Math 3.6.1 API)"; + } +//--> +</script> +<noscript> +<div>JavaScript is disabled on your browser.</div> +</noscript> +<!-- ========= START OF TOP NAVBAR ======= --> +<div class="topNav"><a name="navbar_top"> +<!-- --> +</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> +<!-- --> +</a> +<ul class="navList" title="Navigation"> +<li><a href="../../../../../overview-summary.html">Overview</a></li> +<li><a href="package-summary.html">Package</a></li> +<li class="navBarCell1Rev">Class</li> +<li><a href="class-use/BinomialDistribution.html">Use</a></li> +<li><a href="package-tree.html">Tree</a></li> +<li><a href="../../../../../deprecated-list.html">Deprecated</a></li> +<li><a href="../../../../../index-all.html">Index</a></li> +<li><a href="../../../../../help-doc.html">Help</a></li> +</ul> +<div class="aboutLanguage"><em><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script></em></div> +</div> +<div class="subNav"> +<ul class="navList"> +<li><a href="../../../../../org/apache/commons/math3/distribution/BetaDistribution.html" title="class in org.apache.commons.math3.distribution"><span class="strong">Prev Class</span></a></li> +<li><a href="../../../../../org/apache/commons/math3/distribution/CauchyDistribution.html" title="class in org.apache.commons.math3.distribution"><span class="strong">Next Class</span></a></li> +</ul> +<ul class="navList"> +<li><a href="../../../../../index.html?org/apache/commons/math3/distribution/BinomialDistribution.html" target="_top">Frames</a></li> +<li><a href="BinomialDistribution.html" target="_top">No Frames</a></li> +</ul> +<ul class="navList" id="allclasses_navbar_top"> +<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> +</ul> +<div> +<script type="text/javascript"><!-- + allClassesLink = document.getElementById("allclasses_navbar_top"); + if(window==top) { + allClassesLink.style.display = "block"; + } + else { + allClassesLink.style.display = "none"; + } + //--> +</script> +</div> +<div> +<ul class="subNavList"> +<li>Summary: </li> +<li>Nested | </li> +<li><a href="#fields_inherited_from_class_org.apache.commons.math3.distribution.AbstractIntegerDistribution">Field</a> | </li> +<li><a href="#constructor_summary">Constr</a> | </li> +<li><a href="#method_summary">Method</a></li> +</ul> +<ul class="subNavList"> +<li>Detail: </li> +<li>Field | </li> +<li><a href="#constructor_detail">Constr</a> | </li> +<li><a href="#method_detail">Method</a></li> +</ul> +</div> +<a name="skip-navbar_top"> +<!-- --> +</a></div> +<!-- ========= END OF TOP NAVBAR ========= --> +<!-- ======== START OF CLASS DATA ======== --> +<div class="header"> +<div class="subTitle">org.apache.commons.math3.distribution</div> +<h2 title="Class BinomialDistribution" class="title">Class BinomialDistribution</h2> +</div> +<div class="contentContainer"> +<ul class="inheritance"> +<li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> +<li> +<ul class="inheritance"> +<li><a href="../../../../../org/apache/commons/math3/distribution/AbstractIntegerDistribution.html" title="class in org.apache.commons.math3.distribution">org.apache.commons.math3.distribution.AbstractIntegerDistribution</a></li> +<li> +<ul class="inheritance"> +<li>org.apache.commons.math3.distribution.BinomialDistribution</li> +</ul> +</li> +</ul> +</li> +</ul> +<div class="description"> +<ul class="blockList"> +<li class="blockList"> +<dl> +<dt>All Implemented Interfaces:</dt> +<dd><a href="http://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>, <a href="../../../../../org/apache/commons/math3/distribution/IntegerDistribution.html" title="interface in org.apache.commons.math3.distribution">IntegerDistribution</a></dd> +</dl> +<hr> +<br> +<pre>public class <span class="strong">BinomialDistribution</span> +extends <a href="../../../../../org/apache/commons/math3/distribution/AbstractIntegerDistribution.html" title="class in org.apache.commons.math3.distribution">AbstractIntegerDistribution</a></pre> +<div class="block">Implementation of the binomial distribution.</div> +<dl><dt><span class="strong">See Also:</span></dt><dd><a href="http://en.wikipedia.org/wiki/Binomial_distribution">Binomial distribution (Wikipedia)</a>, +<a href="http://mathworld.wolfram.com/BinomialDistribution.html">Binomial Distribution (MathWorld)</a>, +<a href="../../../../../serialized-form.html#org.apache.commons.math3.distribution.BinomialDistribution">Serialized Form</a></dd></dl> +</li> +</ul> +</div> +<div class="summary"> +<ul class="blockList"> +<li class="blockList"> +<!-- =========== FIELD SUMMARY =========== --> +<ul class="blockList"> +<li class="blockList"><a name="field_summary"> +<!-- --> +</a> +<h3>Field Summary</h3> +<ul class="blockList"> +<li class="blockList"><a name="fields_inherited_from_class_org.apache.commons.math3.distribution.AbstractIntegerDistribution"> +<!-- --> +</a> +<h3>Fields inherited from class org.apache.commons.math3.distribution.<a href="../../../../../org/apache/commons/math3/distribution/AbstractIntegerDistribution.html" title="class in org.apache.commons.math3.distribution">AbstractIntegerDistribution</a></h3> +<code><a href="../../../../../org/apache/commons/math3/distribution/AbstractIntegerDistribution.html#random">random</a>, <a href="../../../../../org/apache/commons/math3/distribution/AbstractIntegerDistribution.html#randomData">randomData</a></code></li> +</ul> +</li> +</ul> +<!-- ======== CONSTRUCTOR SUMMARY ======== --> +<ul class="blockList"> +<li class="blockList"><a name="constructor_summary"> +<!-- --> +</a> +<h3>Constructor Summary</h3> +<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> +<caption><span>Constructors</span><span class="tabEnd"> </span></caption> +<tr> +<th class="colOne" scope="col">Constructor and Description</th> +</tr> +<tr class="altColor"> +<td class="colOne"><code><strong><a href="../../../../../org/apache/commons/math3/distribution/BinomialDistribution.html#BinomialDistribution(int,%20double)">BinomialDistribution</a></strong>(int trials, + double p)</code> +<div class="block">Create a binomial distribution with the given number of trials and + probability of success.</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colOne"><code><strong><a href="../../../../../org/apache/commons/math3/distribution/BinomialDistribution.html#BinomialDistribution(org.apache.commons.math3.random.RandomGenerator,%20int,%20double)">BinomialDistribution</a></strong>(<a href="../../../../../org/apache/commons/math3/random/RandomGenerator.html" title="interface in org.apache.commons.math3.random">RandomGenerator</a> rng, + int trials, + double p)</code> +<div class="block">Creates a binomial distribution.</div> +</td> +</tr> +</table> +</li> +</ul> +<!-- ========== METHOD SUMMARY =========== --> +<ul class="blockList"> +<li class="blockList"><a name="method_summary"> +<!-- --> +</a> +<h3>Method Summary</h3> +<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> +<caption><span>Methods</span><span class="tabEnd"> </span></caption> +<tr> +<th class="colFirst" scope="col">Modifier and Type</th> +<th class="colLast" scope="col">Method and Description</th> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>double</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/distribution/BinomialDistribution.html#cumulativeProbability(int)">cumulativeProbability</a></strong>(int x)</code> +<div class="block">For a random variable <code>X</code> whose values are distributed according + to this distribution, this method returns <code>P(X <= x)</code>.</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>int</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/distribution/BinomialDistribution.html#getNumberOfTrials()">getNumberOfTrials</a></strong>()</code> +<div class="block">Access the number of trials for this distribution.</div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>double</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/distribution/BinomialDistribution.html#getNumericalMean()">getNumericalMean</a></strong>()</code> +<div class="block">Use this method to get the numerical value of the mean of this + distribution.</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>double</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/distribution/BinomialDistribution.html#getNumericalVariance()">getNumericalVariance</a></strong>()</code> +<div class="block">Use this method to get the numerical value of the variance of this + distribution.</div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>double</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/distribution/BinomialDistribution.html#getProbabilityOfSuccess()">getProbabilityOfSuccess</a></strong>()</code> +<div class="block">Access the probability of success for this distribution.</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>int</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/distribution/BinomialDistribution.html#getSupportLowerBound()">getSupportLowerBound</a></strong>()</code> +<div class="block">Access the lower bound of the support.</div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>int</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/distribution/BinomialDistribution.html#getSupportUpperBound()">getSupportUpperBound</a></strong>()</code> +<div class="block">Access the upper bound of the support.</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>boolean</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/distribution/BinomialDistribution.html#isSupportConnected()">isSupportConnected</a></strong>()</code> +<div class="block">Use this method to get information about whether the support is + connected, i.e.</div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>double</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/distribution/BinomialDistribution.html#logProbability(int)">logProbability</a></strong>(int x)</code> +<div class="block">For a random variable <code>X</code> whose values are distributed according to + this distribution, this method returns <code>log(P(X = x))</code>, where + <code>log</code> is the natural logarithm.</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>double</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/math3/distribution/BinomialDistribution.html#probability(int)">probability</a></strong>(int x)</code> +<div class="block">For a random variable <code>X</code> whose values are distributed according + to this distribution, this method returns <code>P(X = x)</code>.</div> +</td> +</tr> +</table> +<ul class="blockList"> +<li class="blockList"><a name="methods_inherited_from_class_org.apache.commons.math3.distribution.AbstractIntegerDistribution"> +<!-- --> +</a> +<h3>Methods inherited from class org.apache.commons.math3.distribution.<a href="../../../../../org/apache/commons/math3/distribution/AbstractIntegerDistribution.html" title="class in org.apache.commons.math3.distribution">AbstractIntegerDistribution</a></h3> +<code><a href="../../../../../org/apache/commons/math3/distribution/AbstractIntegerDistribution.html#cumulativeProbability(int,%20int)">cumulativeProbability</a>, <a href="../../../../../org/apache/commons/math3/distribution/AbstractIntegerDistribution.html#inverseCumulativeProbability(double)">inverseCumulativeProbability</a>, <a href="../../../../../org/apache/commons/math3/distribution/AbstractIntegerDistribution.html#reseedRandomGenerator(long)">reseedRandomGenerator</a>, <a href="../../../../../org/apache/commons/math3/distribution/AbstractIntegerDistribution.html#sample()">sample</a>, <a href="../../../../../org/apache/commons/math3/distribution/AbstractIntegerDistribution.html#sample(int)">sample</a>, <a href="../../../../../org/apache/commons/math3/distribution/AbstractIntegerDistribution.html#solveInverseCumulativeProbability(double,%20int,%20int)">solveInverseCumulativeProbability</a></code></li> +</ul> +<ul class="blockList"> +<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> +<!-- --> +</a> +<h3>Methods inherited from class java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> +<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long,%20int)" title="class or interface in java.lang">wait</a></code></li> +</ul> +</li> +</ul> +</li> +</ul> +</div> +<div class="details"> +<ul class="blockList"> +<li class="blockList"> +<!-- ========= CONSTRUCTOR DETAIL ======== --> +<ul class="blockList"> +<li class="blockList"><a name="constructor_detail"> +<!-- --> +</a> +<h3>Constructor Detail</h3> +<a name="BinomialDistribution(int, double)"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>BinomialDistribution</h4> +<pre>public BinomialDistribution(int trials, + double p)</pre> +<div class="block">Create a binomial distribution with the given number of trials and + probability of success. + <p> + <b>Note:</b> this constructor will implicitly create an instance of + <a href="../../../../../org/apache/commons/math3/random/Well19937c.html" title="class in org.apache.commons.math3.random"><code>Well19937c</code></a> as random generator to be used for sampling only (see + <a href="../../../../../org/apache/commons/math3/distribution/AbstractIntegerDistribution.html#sample()"><code>AbstractIntegerDistribution.sample()</code></a> and <a href="../../../../../org/apache/commons/math3/distribution/AbstractIntegerDistribution.html#sample(int)"><code>AbstractIntegerDistribution.sample(int)</code></a>). In case no sampling is + needed for the created distribution, it is advised to pass <code>null</code> + as random generator via the appropriate constructors to avoid the + additional initialisation overhead.</div> +<dl><dt><span class="strong">Parameters:</span></dt><dd><code>trials</code> - Number of trials.</dd><dd><code>p</code> - Probability of success.</dd> +<dt><span class="strong">Throws:</span></dt> +<dd><code><a href="../../../../../org/apache/commons/math3/exception/NotPositiveException.html" title="class in org.apache.commons.math3.exception">NotPositiveException</a></code> - if <code>trials < 0</code>.</dd> +<dd><code><a href="../../../../../org/apache/commons/math3/exception/OutOfRangeException.html" title="class in org.apache.commons.math3.exception">OutOfRangeException</a></code> - if <code>p < 0</code> or <code>p > 1</code>.</dd></dl> +</li> +</ul> +<a name="BinomialDistribution(org.apache.commons.math3.random.RandomGenerator, int, double)"> +<!-- --> +</a> +<ul class="blockListLast"> +<li class="blockList"> +<h4>BinomialDistribution</h4> +<pre>public BinomialDistribution(<a href="../../../../../org/apache/commons/math3/random/RandomGenerator.html" title="interface in org.apache.commons.math3.random">RandomGenerator</a> rng, + int trials, + double p)</pre> +<div class="block">Creates a binomial distribution.</div> +<dl><dt><span class="strong">Parameters:</span></dt><dd><code>rng</code> - Random number generator.</dd><dd><code>trials</code> - Number of trials.</dd><dd><code>p</code> - Probability of success.</dd> +<dt><span class="strong">Throws:</span></dt> +<dd><code><a href="../../../../../org/apache/commons/math3/exception/NotPositiveException.html" title="class in org.apache.commons.math3.exception">NotPositiveException</a></code> - if <code>trials < 0</code>.</dd> +<dd><code><a href="../../../../../org/apache/commons/math3/exception/OutOfRangeException.html" title="class in org.apache.commons.math3.exception">OutOfRangeException</a></code> - if <code>p < 0</code> or <code>p > 1</code>.</dd><dt><span class="strong">Since:</span></dt> + <dd>3.1</dd></dl> +</li> +</ul> +</li> +</ul> +<!-- ============ METHOD DETAIL ========== --> +<ul class="blockList"> +<li class="blockList"><a name="method_detail"> +<!-- --> +</a> +<h3>Method Detail</h3> +<a name="getNumberOfTrials()"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getNumberOfTrials</h4> +<pre>public int getNumberOfTrials()</pre> +<div class="block">Access the number of trials for this distribution.</div> +<dl><dt><span class="strong">Returns:</span></dt><dd>the number of trials.</dd></dl> +</li> +</ul> +<a name="getProbabilityOfSuccess()"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getProbabilityOfSuccess</h4> +<pre>public double getProbabilityOfSuccess()</pre> +<div class="block">Access the probability of success for this distribution.</div> +<dl><dt><span class="strong">Returns:</span></dt><dd>the probability of success.</dd></dl> +</li> +</ul> +<a name="probability(int)"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>probability</h4> +<pre>public double probability(int x)</pre> +<div class="block">For a random variable <code>X</code> whose values are distributed according + to this distribution, this method returns <code>P(X = x)</code>. In other + words, this method represents the probability mass function (PMF) + for the distribution.</div> +<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - the point at which the PMF is evaluated</dd> +<dt><span class="strong">Returns:</span></dt><dd>the value of the probability mass function at <code>x</code></dd></dl> +</li> +</ul> +<a name="logProbability(int)"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>logProbability</h4> +<pre>public double logProbability(int x)</pre> +<div class="block">For a random variable <code>X</code> whose values are distributed according to + this distribution, this method returns <code>log(P(X = x))</code>, where + <code>log</code> is the natural logarithm. In other words, this method + represents the logarithm of the probability mass function (PMF) for the + distribution. Note that due to the floating point precision and + under/overflow issues, this method will for some distributions be more + precise and faster than computing the logarithm of + <a href="../../../../../org/apache/commons/math3/distribution/IntegerDistribution.html#probability(int)"><code>IntegerDistribution.probability(int)</code></a>. + <p> + The default implementation simply computes the logarithm of <code>probability(x)</code>.</p></div> +<dl> +<dt><strong>Overrides:</strong></dt> +<dd><code><a href="../../../../../org/apache/commons/math3/distribution/AbstractIntegerDistribution.html#logProbability(int)">logProbability</a></code> in class <code><a href="../../../../../org/apache/commons/math3/distribution/AbstractIntegerDistribution.html" title="class in org.apache.commons.math3.distribution">AbstractIntegerDistribution</a></code></dd> +<dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - the point at which the PMF is evaluated</dd> +<dt><span class="strong">Returns:</span></dt><dd>the logarithm of the value of the probability mass function at <code>x</code></dd></dl> +</li> +</ul> +<a name="cumulativeProbability(int)"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>cumulativeProbability</h4> +<pre>public double cumulativeProbability(int x)</pre> +<div class="block">For a random variable <code>X</code> whose values are distributed according + to this distribution, this method returns <code>P(X <= x)</code>. In other + words, this method represents the (cumulative) distribution function + (CDF) for this distribution.</div> +<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - the point at which the CDF is evaluated</dd> +<dt><span class="strong">Returns:</span></dt><dd>the probability that a random variable with this + distribution takes a value less than or equal to <code>x</code></dd></dl> +</li> +</ul> +<a name="getNumericalMean()"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getNumericalMean</h4> +<pre>public double getNumericalMean()</pre> +<div class="block">Use this method to get the numerical value of the mean of this + distribution. + + For <code>n</code> trials and probability parameter <code>p</code>, the mean is + <code>n * p</code>.</div> +<dl><dt><span class="strong">Returns:</span></dt><dd>the mean or <code>Double.NaN</code> if it is not defined</dd></dl> +</li> +</ul> +<a name="getNumericalVariance()"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getNumericalVariance</h4> +<pre>public double getNumericalVariance()</pre> +<div class="block">Use this method to get the numerical value of the variance of this + distribution. + + For <code>n</code> trials and probability parameter <code>p</code>, the variance is + <code>n * p * (1 - p)</code>.</div> +<dl><dt><span class="strong">Returns:</span></dt><dd>the variance (possibly <code>Double.POSITIVE_INFINITY</code> or + <code>Double.NaN</code> if it is not defined)</dd></dl> +</li> +</ul> +<a name="getSupportLowerBound()"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getSupportLowerBound</h4> +<pre>public int getSupportLowerBound()</pre> +<div class="block">Access the lower bound of the support. This method must return the same + value as <code>inverseCumulativeProbability(0)</code>. In other words, this + method must return + <p><code>inf {x in Z | P(X <= x) > 0}</code>.</p> + + The lower bound of the support is always 0 except for the probability + parameter <code>p = 1</code>.</div> +<dl><dt><span class="strong">Returns:</span></dt><dd>lower bound of the support (0 or the number of trials)</dd></dl> +</li> +</ul> +<a name="getSupportUpperBound()"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getSupportUpperBound</h4> +<pre>public int getSupportUpperBound()</pre> +<div class="block">Access the upper bound of the support. This method must return the same + value as <code>inverseCumulativeProbability(1)</code>. In other words, this + method must return + <p><code>inf {x in R | P(X <= x) = 1}</code>.</p> + + The upper bound of the support is the number of trials except for the + probability parameter <code>p = 0</code>.</div> +<dl><dt><span class="strong">Returns:</span></dt><dd>upper bound of the support (number of trials or 0)</dd></dl> +</li> +</ul> +<a name="isSupportConnected()"> +<!-- --> +</a> +<ul class="blockListLast"> +<li class="blockList"> +<h4>isSupportConnected</h4> +<pre>public boolean isSupportConnected()</pre> +<div class="block">Use this method to get information about whether the support is + connected, i.e. whether all integers between the lower and upper bound of + the support are included in the support. + + The support of this distribution is connected.</div> +<dl><dt><span class="strong">Returns:</span></dt><dd><code>true</code></dd></dl> +</li> +</ul> +</li> +</ul> +</li> +</ul> +</div> +</div> +<!-- ========= END OF CLASS DATA ========= --> +<!-- ======= START OF BOTTOM NAVBAR ====== --> +<div class="bottomNav"><a name="navbar_bottom"> +<!-- --> +</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> +<!-- --> +</a> +<ul class="navList" title="Navigation"> +<li><a href="../../../../../overview-summary.html">Overview</a></li> +<li><a href="package-summary.html">Package</a></li> +<li class="navBarCell1Rev">Class</li> +<li><a href="class-use/BinomialDistribution.html">Use</a></li> +<li><a href="package-tree.html">Tree</a></li> +<li><a href="../../../../../deprecated-list.html">Deprecated</a></li> +<li><a href="../../../../../index-all.html">Index</a></li> +<li><a href="../../../../../help-doc.html">Help</a></li> +</ul> +<div class="aboutLanguage"><em><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script></em></div> +</div> +<div class="subNav"> +<ul class="navList"> +<li><a href="../../../../../org/apache/commons/math3/distribution/BetaDistribution.html" title="class in org.apache.commons.math3.distribution"><span class="strong">Prev Class</span></a></li> +<li><a href="../../../../../org/apache/commons/math3/distribution/CauchyDistribution.html" title="class in org.apache.commons.math3.distribution"><span class="strong">Next Class</span></a></li> +</ul> +<ul class="navList"> +<li><a href="../../../../../index.html?org/apache/commons/math3/distribution/BinomialDistribution.html" target="_top">Frames</a></li> +<li><a href="BinomialDistribution.html" target="_top">No Frames</a></li> +</ul> +<ul class="navList" id="allclasses_navbar_bottom"> +<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> +</ul> +<div> +<script type="text/javascript"><!-- + allClassesLink = document.getElementById("allclasses_navbar_bottom"); + if(window==top) { + allClassesLink.style.display = "block"; + } + else { + allClassesLink.style.display = "none"; + } + //--> +</script> +</div> +<div> +<ul class="subNavList"> +<li>Summary: </li> +<li>Nested | </li> +<li><a href="#fields_inherited_from_class_org.apache.commons.math3.distribution.AbstractIntegerDistribution">Field</a> | </li> +<li><a href="#constructor_summary">Constr</a> | </li> +<li><a href="#method_summary">Method</a></li> +</ul> +<ul class="subNavList"> +<li>Detail: </li> +<li>Field | </li> +<li><a href="#constructor_detail">Constr</a> | </li> +<li><a href="#method_detail">Method</a></li> +</ul> +</div> +<a name="skip-navbar_bottom"> +<!-- --> +</a></div> +<!-- ======== END OF BOTTOM NAVBAR ======= --> +<p class="legalCopy"><small>Copyright © 2003–2016 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p> +</body> +</html> |