Fixed example to work after impl/interface merge. Fixed a typo. JIRA: MATH-711.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1206604 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Phil Steitz 2011-11-26 21:33:01 +00:00
parent d3570e8ae9
commit dd9c970279

View File

@ -46,7 +46,7 @@
<code>cumulativeProbability</code> computes <code>P(X &lt;= x)</code>
(i.e. the lower tail probability of <code>X</code>).
</p>
<source>TDistribution t = new TDistributionImpl(29);
<source>TDistribution t = new TDistribution(29);
double lowerTail = t.cumulativeProbability(-2.656); // P(T &lt;= -2.656)
double upperTail = 1.0 - t.cumulativeProbability(2.75); // P(T &gt;= 2.75)</source>
<p>
@ -86,7 +86,7 @@ double upperTail = 1.0 - t.cumulativeProbability(2.75); // P(T &gt;= 2.75)</sour
AbstractIntegerDistribution</a> provide implementation building blocks and
offer basic distribution functionality. By extending these abstract classes
directly, much of the repetitive distribution implementation is already
developed and should save time and effor in developing user-defined
developed and should save time and effort in developing user-defined
distributions.
</p>
</subsection>