You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by ps...@apache.org on 2004/05/31 22:57:12 UTC
cvs commit: jakarta-commons/math/src/java/org/apache/commons/math/stat Frequency.java
psteitz 2004/05/31 13:57:12
Modified: math/src/java/org/apache/commons/math/stat Frequency.java
Log:
Javadoc fixes.
Revision Changes Path
1.21 +13 -13 jakarta-commons/math/src/java/org/apache/commons/math/stat/Frequency.java
Index: Frequency.java
===================================================================
RCS file: /home/cvs/jakarta-commons/math/src/java/org/apache/commons/math/stat/Frequency.java,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- Frequency.java 19 May 2004 14:16:32 -0000 1.20
+++ Frequency.java 31 May 2004 20:57:12 -0000 1.21
@@ -30,7 +30,7 @@
* Accepts int, long, char or Object values. New values added must be comparable to
* those that have been added, otherwise the add method will throw an IllegalArgumentException.
* The values are ordered using the default (natural order), unless a <code>Comparator</code>
- * is supplied in the constructor.
+ * is supplied in the constructor.
*
* @version $Revision$ $Date$
*/
@@ -202,7 +202,7 @@
//-------------------------------------------------------------
/**
- * Returns the cumulative percentatge of values less than or equal to v
+ * Returns the percentage of values that are equal to v
* (as a proportion between 0 and 1).
* @param v the value to lookup.
* @return the proportion of values equal to v
@@ -212,7 +212,7 @@
}
/**
- * Returns the cumulative percentatge of values less than or equal to v
+ * Returns the percentage of values that are equal to v
* (as a proportion between 0 and 1).
* @param v the value to lookup.
* @return the proportion of values equal to v
@@ -222,7 +222,7 @@
}
/**
- * Returns the cumulative percentatge of values less than or equal to v
+ * Returns the percentage of values that are equal to v
* (as a proportion between 0 and 1).
* @param v the value to lookup.
* @return the proportion of values equal to v
@@ -232,7 +232,7 @@
}
/**
- * Returns the cumulative percentatge of values less than or equal to v
+ * Returns the percentage of values that are equal to v
* (as a proportion between 0 and 1).
* @param v the value to lookup.
* @return the proportion of values equal to v
@@ -319,39 +319,39 @@
//----------------------------------------------------------------------------------------------
/**
- * Returns the cumulative percentatge of values less than or equal to v
+ * Returns the cumulative percentage of values less than or equal to v
* (as a proportion between 0 and 1).
* <p>
* Returns 0 if v is not comparable to the values set.
*
* @param v the value to lookup.
- * @return the proportion of values equal to v
+ * @return the proportion of values less than or equal to v
*/
public double getCumPct(Object v) {
return (double) getCumFreq(v) / (double) getSumFreq();
}
/**
- * Returns the cumulative percentatge of values less than or equal to v
+ * Returns the cumulative percentage of values less than or equal to v
* (as a proportion between 0 and 1).
* <p>
* Returns 0 if v is not comparable to the values set.
*
* @param v the value to lookup.
- * @return the proportion of values equal to v
+ * @return the proportion of values less than or equal to v
*/
public double getCumPct(int v) {
return getCumPct(new Long(v));
}
/**
- * Returns the cumulative percentatge of values less than or equal to v
+ * Returns the cumulative percentage of values less than or equal to v
* (as a proportion between 0 and 1).
* <p>
* Returns 0 if v is not comparable to the values set.
*
* @param v the value to lookup.
- * @return the proportion of values equal to v
+ * @return the proportion of values less than or equal to v
*/
public double getCumPct(long v) {
return getCumPct(new Long(v));
@@ -364,7 +364,7 @@
* Returns 0 if v is not comparable to the values set.
*
* @param v the value to lookup.
- * @return the proportion of values equal to v
+ * @return the proportion of values less than or equal to v
*/
public double getCumPct(char v) {
return getCumPct(new Character(v));
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org