|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.data.statistics.BoxAndWhiskerCalculator
A utility class that calculates the mean, median, quartiles Q1 and Q3, plus a list of outlier values...all from an arbitrary list of Number objects.
Constructor Summary | |
BoxAndWhiskerCalculator()
|
Method Summary | |
static BoxAndWhiskerItem |
calculateBoxAndWhiskerStatistics(java.util.List values)
Calculates the statistics required for a BoxAndWhiskerItem . |
static double |
calculateMean(java.util.List values)
Returns the mean of a list of numbers. |
static double |
calculateMedian(java.util.List values)
Calculates the median for a list of values ( Number objects) that are in
ascending order. |
static double |
calculateMedian(java.util.List values,
int start,
int end)
Calculates the median for a sublist within a list of values (Number objects) that are in ascending order. |
static double |
calculateQ1(java.util.List values)
Calculates the first quartile for a list of numbers in ascending order. |
static double |
calculateQ3(java.util.List values)
Calculates the third quartile for a list of numbers in ascending order. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BoxAndWhiskerCalculator()
Method Detail |
public static BoxAndWhiskerItem calculateBoxAndWhiskerStatistics(java.util.List values)
BoxAndWhiskerItem
.
Any items in the list that are not instances of the Number
class are ignored.
Likewise, null
values are ignored.
values
- A list of numbers (a null
list is not permitted).
public static double calculateMean(java.util.List values)
values
- a list of numbers.
public static double calculateMedian(java.util.List values)
Number
objects) that are in
ascending order.
values
- the values in ascending order.
public static double calculateMedian(java.util.List values, int start, int end)
values
- the values in ascending order.start
- the start index.end
- the end index.
public static double calculateQ1(java.util.List values)
values
- the numbers in ascending order.
public static double calculateQ3(java.util.List values)
values
- the list of values.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |