org.jfree.data.statistics
public abstract class BoxAndWhiskerCalculator extends Object
Number
objects.
Method Summary | |
---|---|
static BoxAndWhiskerItem | calculateBoxAndWhiskerStatistics(List values)
Calculates the statistics required for a BoxAndWhiskerItem
from a list of Number objects. |
static BoxAndWhiskerItem | calculateBoxAndWhiskerStatistics(List values, boolean stripNullAndNaNItems)
Calculates the statistics required for a BoxAndWhiskerItem
from a list of Number objects. |
static double | calculateQ1(List values)
Calculates the first quartile for a list of numbers in ascending order.
|
static double | calculateQ3(List values)
Calculates the third quartile for a list of numbers in ascending order.
|
Number
objects. Any items in the list
that are null
, not an instance of Number
, or
equivalent to Double.NaN
, will be ignored.
Parameters: values a list of numbers (a null
list is not
permitted).
Returns: A box-and-whisker item.
Number
objects. Any items in the list
that are null
, not an instance of Number
, or
equivalent to Double.NaN
, will be ignored.
Parameters: values a list of numbers (a null
list is not
permitted). stripNullAndNaNItems a flag that controls the handling of null
and NaN items.
Returns: A box-and-whisker item.
Since: 1.0.3
null
, not
an instance of Number
, or equivalent to
Double.NaN
, the result is unspecified.
Parameters: values the numbers in ascending order (null
not
permitted).
Returns: The first quartile.
null
, not
an instance of Number
, or equivalent to
Double.NaN
, the result is unspecified.
Parameters: values the list of values (null
not permitted).
Returns: The third quartile.