Package org.jfree.data.statistics
Class BoxAndWhiskerItem
java.lang.Object
org.jfree.data.statistics.BoxAndWhiskerItem
- All Implemented Interfaces:
Serializable
Represents one data item within a box-and-whisker dataset. Instances of
this class are immutable.
- See Also:
-
Constructor Summary
ConstructorDescriptionBoxAndWhiskerItem
(double mean, double median, double q1, double q3, double minRegularValue, double maxRegularValue, double minOutlier, double maxOutlier, List<? extends Number> outliers) Creates a new box-and-whisker item.BoxAndWhiskerItem
(Number mean, Number median, Number q1, Number q3, Number minRegularValue, Number maxRegularValue, Number minOutlier, Number maxOutlier, List<? extends Number> outliers) Creates a new box-and-whisker item. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Tests this object for equality with an arbitrary object.Returns the maximum outlier.Returns the maximum regular value.getMean()
Returns the mean.Returns the median.Returns the minimum outlier.Returns the minimum regular value.Returns a list of outliers.getQ1()
Returns the first quartile.getQ3()
Returns the third quartile.toString()
Returns a string representation of this instance, primarily for debugging purposes.
-
Constructor Details
-
BoxAndWhiskerItem
public BoxAndWhiskerItem(Number mean, Number median, Number q1, Number q3, Number minRegularValue, Number maxRegularValue, Number minOutlier, Number maxOutlier, List<? extends Number> outliers) Creates a new box-and-whisker item.- Parameters:
mean
- the mean (null
permitted).median
- the median (null
permitted).q1
- the first quartile (null
permitted).q3
- the third quartile (null
permitted).minRegularValue
- the minimum regular value (null
permitted).maxRegularValue
- the maximum regular value (null
permitted).minOutlier
- the minimum outlier (null
permitted).maxOutlier
- the maximum outlier (null
permitted).outliers
- the outliers (null
permitted).
-
BoxAndWhiskerItem
public BoxAndWhiskerItem(double mean, double median, double q1, double q3, double minRegularValue, double maxRegularValue, double minOutlier, double maxOutlier, List<? extends Number> outliers) Creates a new box-and-whisker item.- Parameters:
mean
- the mean.median
- the medianq1
- the first quartile.q3
- the third quartile.minRegularValue
- the minimum regular value.maxRegularValue
- the maximum regular value.minOutlier
- the minimum outlier value.maxOutlier
- the maximum outlier value.outliers
- a list of the outliers.
-
-
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
).
-
toString
Returns a string representation of this instance, primarily for debugging purposes. -
equals
Tests this object for equality with an arbitrary object.
-