public abstract class BoxAndWhiskerCalculator extends java.lang.Object
Number objects.| Constructor and Description |
|---|
BoxAndWhiskerCalculator() |
| Modifier and Type | Method and Description |
|---|---|
static BoxAndWhiskerItem |
calculateBoxAndWhiskerStatistics(java.util.List values)
Calculates the statistics required for a
BoxAndWhiskerItem
from a list of Number objects. |
static BoxAndWhiskerItem |
calculateBoxAndWhiskerStatistics(java.util.List values,
boolean stripNullAndNaNItems)
Calculates the statistics required for a
BoxAndWhiskerItem
from a list of Number objects. |
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.
|
public BoxAndWhiskerCalculator()
public static BoxAndWhiskerItem calculateBoxAndWhiskerStatistics(java.util.List values)
BoxAndWhiskerItem
from a list of Number objects. Any items in the list
that are null, not an instance of Number, or
equivalent to Double.NaN, will be ignored.values - a list of numbers (a null list is not
permitted).public static BoxAndWhiskerItem calculateBoxAndWhiskerStatistics(java.util.List values, boolean stripNullAndNaNItems)
BoxAndWhiskerItem
from a list of Number objects. Any items in the list
that are null, not an instance of Number, or
equivalent to Double.NaN, will be ignored.values - a list of numbers (a null list is not
permitted).stripNullAndNaNItems - a flag that controls the handling of null
and NaN items.public static double calculateQ1(java.util.List values)
null, not
an instance of Number, or equivalent to
Double.NaN, the result is unspecified.values - the numbers in ascending order (null not
permitted).public static double calculateQ3(java.util.List values)
null, not
an instance of Number, or equivalent to
Double.NaN, the result is unspecified.values - the list of values (null not permitted).