- 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. Instances of this class are immutable.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description 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.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
All Methods Instance Methods Concrete Methods 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.List<? extends Number>getOutliers()Returns a list of outliers.NumbergetQ1()Returns the first quartile.NumbergetQ3()Returns the third quartile.inthashCode()StringtoString()Returns a string representation of this instance, primarily for debugging purposes.
-
-
-
Constructor Detail
-
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 (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).
-
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.- Since:
- 1.0.7
-
-
Method Detail
-
getQ1
public Number getQ1()
Returns the first quartile.- Returns:
- The first quartile (possibly
null).
-
getQ3
public Number getQ3()
Returns the third quartile.- Returns:
- The third quartile (possibly
null).
-
getMinRegularValue
public Number getMinRegularValue()
Returns the minimum regular value.- Returns:
- The minimum regular value (possibly
null).
-
getMaxRegularValue
public Number getMaxRegularValue()
Returns the maximum regular value.- Returns:
- The maximum regular value (possibly
null).
-
getMinOutlier
public Number getMinOutlier()
Returns the minimum outlier.- Returns:
- The minimum outlier (possibly
null).
-
getMaxOutlier
public Number getMaxOutlier()
Returns the maximum outlier.- Returns:
- The maximum outlier (possibly
null).
-
getOutliers
public List<? extends Number> getOutliers()
Returns a list of outliers.- Returns:
- A list of outliers (possibly
null).
-
toString
public String toString()
Returns a string representation of this instance, primarily for debugging purposes.
-
-