Package org.jfree.data.statistics
Class BoxAndWhiskerItem
- java.lang.Object
-
- org.jfree.data.statistics.BoxAndWhiskerItem
-
- All Implemented Interfaces:
java.io.Serializable
public class BoxAndWhiskerItem extends java.lang.Object implements java.io.SerializableRepresents one data item within a box-and-whisker dataset. Instances of this class are immutable.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.NumbermaxOutlierThe maximum outlier.private java.lang.NumbermaxRegularValueThe maximum regular value.private java.lang.NumbermeanThe mean.private java.lang.NumbermedianThe median.private java.lang.NumberminOutlierThe minimum outlier.private java.lang.NumberminRegularValueThe minimum regular value.private java.util.List<? extends java.lang.Number>outliersThe outliers.private java.lang.Numberq1The first quarter.private java.lang.Numberq3The third quarter.private static longserialVersionUIDFor serialization.
-
Constructor Summary
Constructors Constructor Description BoxAndWhiskerItem(double mean, double median, double q1, double q3, double minRegularValue, double maxRegularValue, double minOutlier, double maxOutlier, java.util.List<? extends java.lang.Number> outliers)Creates a new box-and-whisker item.BoxAndWhiskerItem(java.lang.Number mean, java.lang.Number median, java.lang.Number q1, java.lang.Number q3, java.lang.Number minRegularValue, java.lang.Number maxRegularValue, java.lang.Number minOutlier, java.lang.Number maxOutlier, java.util.List<? extends java.lang.Number> outliers)Creates a new box-and-whisker item.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)Tests this object for equality with an arbitrary object.java.lang.NumbergetMaxOutlier()Returns the maximum outlier.java.lang.NumbergetMaxRegularValue()Returns the maximum regular value.java.lang.NumbergetMean()Returns the mean.java.lang.NumbergetMedian()Returns the median.java.lang.NumbergetMinOutlier()Returns the minimum outlier.java.lang.NumbergetMinRegularValue()Returns the minimum regular value.java.util.List<java.lang.Number>getOutliers()Returns a list of outliers.java.lang.NumbergetQ1()Returns the first quartile.java.lang.NumbergetQ3()Returns the third quartile.java.lang.StringtoString()Returns a string representation of this instance, primarily for debugging purposes.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
For serialization.- See Also:
- Constant Field Values
-
mean
private final java.lang.Number mean
The mean.
-
median
private final java.lang.Number median
The median.
-
q1
private final java.lang.Number q1
The first quarter.
-
q3
private final java.lang.Number q3
The third quarter.
-
minRegularValue
private final java.lang.Number minRegularValue
The minimum regular value.
-
maxRegularValue
private final java.lang.Number maxRegularValue
The maximum regular value.
-
minOutlier
private final java.lang.Number minOutlier
The minimum outlier.
-
maxOutlier
private final java.lang.Number maxOutlier
The maximum outlier.
-
outliers
private final java.util.List<? extends java.lang.Number> outliers
The outliers.
-
-
Constructor Detail
-
BoxAndWhiskerItem
public BoxAndWhiskerItem(java.lang.Number mean, java.lang.Number median, java.lang.Number q1, java.lang.Number q3, java.lang.Number minRegularValue, java.lang.Number maxRegularValue, java.lang.Number minOutlier, java.lang.Number maxOutlier, java.util.List<? extends java.lang.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, java.util.List<? extends java.lang.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 Detail
-
getMean
public java.lang.Number getMean()
Returns the mean.- Returns:
- The mean (possibly
null).
-
getMedian
public java.lang.Number getMedian()
Returns the median.- Returns:
- The median (possibly
null).
-
getQ1
public java.lang.Number getQ1()
Returns the first quartile.- Returns:
- The first quartile (possibly
null).
-
getQ3
public java.lang.Number getQ3()
Returns the third quartile.- Returns:
- The third quartile (possibly
null).
-
getMinRegularValue
public java.lang.Number getMinRegularValue()
Returns the minimum regular value.- Returns:
- The minimum regular value (possibly
null).
-
getMaxRegularValue
public java.lang.Number getMaxRegularValue()
Returns the maximum regular value.- Returns:
- The maximum regular value (possibly
null).
-
getMinOutlier
public java.lang.Number getMinOutlier()
Returns the minimum outlier.- Returns:
- The minimum outlier (possibly
null).
-
getMaxOutlier
public java.lang.Number getMaxOutlier()
Returns the maximum outlier.- Returns:
- The maximum outlier (possibly
null).
-
getOutliers
public java.util.List<java.lang.Number> getOutliers()
Returns a list of outliers.- Returns:
- A list of outliers (possibly
null).
-
toString
public java.lang.String toString()
Returns a string representation of this instance, primarily for debugging purposes.- Overrides:
toStringin classjava.lang.Object- Returns:
- A string representation of this instance.
-
equals
public boolean equals(java.lang.Object obj)
Tests this object for equality with an arbitrary object.- Overrides:
equalsin classjava.lang.Object- Parameters:
obj- the object to test against (nullpermitted).- Returns:
- A boolean.
-
-