Added Frequency example showing cumPct for a value between stored values.

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141119 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Phil Steitz 2004-03-07 00:56:14 +00:00
parent 3de23df528
commit 0c6b77b4eb
1 changed files with 2 additions and 1 deletions

View File

@ -17,7 +17,7 @@
--> -->
<?xml-stylesheet type="text/xsl" href="./xdoc.xsl"?> <?xml-stylesheet type="text/xsl" href="./xdoc.xsl"?>
<!-- $Revision: 1.11 $ $Date: 2004/03/06 20:43:00 $ --> <!-- $Revision: 1.12 $ $Date: 2004/03/07 00:56:14 $ -->
<document url="stat.html"> <document url="stat.html">
<properties> <properties>
<title>The Commons Math User Guide - Statistics</title> <title>The Commons Math User Guide - Statistics</title>
@ -215,6 +215,7 @@ f.addValue("oNe");
f.addValue("Z"); f.addValue("Z");
System.out.println(f.getCount("one")); // displays 1 System.out.println(f.getCount("one")); // displays 1
System.out.println(f.getCumPct("Z")); // displays 0.5 -- second in sort order System.out.println(f.getCumPct("Z")); // displays 0.5 -- second in sort order
System.out.println(f.getCumPct("Ot")); // displays 0.25 -- between first ("One") and second ("Z") value
</source> </source>
</dd> </dd>
<dd>Using case-insensitive comparator: <dd>Using case-insensitive comparator: