Method Summary |
|
public void | addValue(Object v) Adds 1 to the frequency count for v. |
public void | addValue(int v) Adds 1 to the frequency count for v. |
public void | addValue(Integer v) Adds 1 to the frequency count for v. |
public void | addValue(long v) Adds 1 to the frequency count for v. |
public void | addValue(char v) Adds 1 to the frequency count for v. |
public void | clear() |
public long | getCount(Object v) Returns the number of values = v.
Parameters: v - the value to lookup. |
public long | getCount(int v) Returns the number of values = v.
Parameters: v - the value to lookup. |
public long | getCount(long v) Returns the number of values = v.
Parameters: v - the value to lookup. |
public long | getCount(char v) Returns the number of values = v.
Parameters: v - the value to lookup. |
public long | getCumFreq(Object v) Returns the cumulative frequency of values less than or equal to v.
Returns 0 if v is not comparable to the values set.
Parameters: v - the value to lookup. |
public long | getCumFreq(int v) Returns the cumulative frequency of values less than or equal to v. |
public long | getCumFreq(long v) Returns the cumulative frequency of values less than or equal to v. |
public long | getCumFreq(char v) Returns the cumulative frequency of values less than or equal to v. |
public double | getCumPct(Object v) Returns the cumulative percentage of values less than or equal to v
(as a proportion between 0 and 1). |
public double | getCumPct(int v) Returns the cumulative percentage of values less than or equal to v
(as a proportion between 0 and 1). |
public double | getCumPct(long v) Returns the cumulative percentage of values less than or equal to v
(as a proportion between 0 and 1). |
public double | getCumPct(char v) Returns the cumulative percentage of values less than or equal to v
(as a proportion between 0 and 1). |
public double | getPct(Object v) Returns the percentage of values that are equal to v
(as a proportion between 0 and 1). |
public double | getPct(int v) Returns the percentage of values that are equal to v
(as a proportion between 0 and 1). |
public double | getPct(long v) Returns the percentage of values that are equal to v
(as a proportion between 0 and 1). |
public double | getPct(char v) Returns the percentage of values that are equal to v
(as a proportion between 0 and 1). |
public long | getSumFreq() Returns the sum of all frequencies. |
public String | toString() Return a string representation of this frequency
distribution. |
public Iterator | valuesIterator() Returns an Iterator over the set of values that have been added. |