psteitz 2004/03/06 16:56:14
Modified: math/xdocs/userguide stat.xml
Log:
Added Frequency example showing cumPct for a value between stored values.
Revision Changes Path
1.12 +2 -1 jakarta-commons/math/xdocs/userguide/stat.xml
Index: stat.xml
===================================================================
RCS file: /home/cvs/jakarta-commons/math/xdocs/userguide/stat.xml,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- stat.xml 6 Mar 2004 20:43:00 -0000 1.11
+++ stat.xml 7 Mar 2004 00:56:14 -0000 1.12
@@ -215,6 +215,7 @@
f.addValue("Z");
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("Ot")); // displays 0.25 -- between first ("One")
and second ("Z") value
</source>
</dd>
<dd>Using case-insensitive comparator:
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]