Package org.jfree.data.statistics
Class BoxAndWhiskerItem
java.lang.Object
org.jfree.data.statistics.BoxAndWhiskerItem
- All Implemented Interfaces:
Serializable
public class BoxAndWhiskerItem extends Object implements Serializable
Represents one data item within a box-and-whisker dataset. This class is
immutable.
- See Also:
- Serialized Form
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description booleanequals(Object obj)Tests this object for equality with an arbitrary object.NumbergetMaxOutlier()Returns the maximum outlier.NumbergetMaxRegularValue()Returns the maximum regular value.NumbergetMean()Returns the mean.NumbergetMedian()Returns the median.NumbergetMinOutlier()Returns the minimum outlier.NumbergetMinRegularValue()Returns the minimum regular value.ListgetOutliers()Returns a list of outliers.NumbergetQ1()Returns the first quartile.NumbergetQ3()Returns the third quartile.
-
Constructor Details
-
BoxAndWhiskerItem
public BoxAndWhiskerItem(Number mean, Number median, Number q1, Number q3, Number minRegularValue, Number maxRegularValue, Number minOutlier, Number maxOutlier, List outliers)Creates a new box-and-whisker item.- Parameters:
mean- the mean (nullpermitted).median- the median (nullpermitted).q1- the first quartile (nullpermitted).q3- the third quartile (nullpermitted).minRegularValue- the minimum regular value (nullpermitted).maxRegularValue- the maximum regular value (nullpermitted).minOutlier- the minimum outlier (nullpermitted).maxOutlier- the maximum outlier (nullpermitted).outliers- the outliers (nullpermitted).
-
-
Method Details
-
getMean
Returns the mean.- Returns:
- the mean (possibly
null).
-
getMedian
Returns the median.- Returns:
- the median (possibly
null).
-
getQ1
Returns the first quartile.- Returns:
- the first quartile (possibly
null).
-
getQ3
Returns the third quartile.- Returns:
- the third quartile (possibly
null).
-
getMinRegularValue
Returns the minimum regular value.- Returns:
- the minimum regular value (possibly
null).
-
getMaxRegularValue
Returns the maximum regular value.- Returns:
- the maximum regular value (possibly
null).
-
getMinOutlier
Returns the minimum outlier.- Returns:
- the minimum outlier (possibly
null).
-
getMaxOutlier
Returns the maximum outlier.- Returns:
- the maximum outlier (possibly
null).
-
getOutliers
Returns a list of outliers.- Returns:
- a list of outliers (possibly
null).
-
equals
Tests this object for equality with an arbitrary object.
-