org.jfree.data.statistics
Class BoxAndWhiskerItem

java.lang.Object
  extended byorg.jfree.data.statistics.BoxAndWhiskerItem

public class BoxAndWhiskerItem
extends java.lang.Object

Represents one data item within a box-and-whisker dataset. This class is immutable.

Author:
David Gilbert

Constructor Summary
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 outliers)
          Creates a new box-and-whisker item.
 
Method Summary
 java.lang.Number getMaxOutlier()
          Returns the maximum outlier.
 java.lang.Number getMaxRegularValue()
          Returns the maximum regular value.
 java.lang.Number getMean()
          Returns the mean.
 java.lang.Number getMedian()
          Returns the median.
 java.lang.Number getMinOutlier()
          Returns the minimum outlier.
 java.lang.Number getMinRegularValue()
          Returns the minimum regular value.
 java.util.List getOutliers()
          Returns a list of outliers.
 java.lang.Number getQ1()
          Returns the first quartile.
 java.lang.Number getQ3()
          Returns the third quartile.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 outliers)
Creates a new box-and-whisker item.

Parameters:
mean - the mean.
median - the median.
q1 - the first quartile.
q3 - the third quartile.
minRegularValue - the minimum regular value.
maxRegularValue - the maximum regular value.
minOutlier - the minimum outlier.
maxOutlier - the maximum outlier.
outliers - the outliers.
Method Detail

getMean

public java.lang.Number getMean()
Returns the mean.

Returns:
The mean.

getMedian

public java.lang.Number getMedian()
Returns the median.

Returns:
The median.

getQ1

public java.lang.Number getQ1()
Returns the first quartile.

Returns:
The first quartile.

getQ3

public java.lang.Number getQ3()
Returns the third quartile.

Returns:
The third quartile.

getMinRegularValue

public java.lang.Number getMinRegularValue()
Returns the minimum regular value.

Returns:
The minimum regular value.

getMaxRegularValue

public java.lang.Number getMaxRegularValue()
Returns the maximum regular value.

Returns:
The maximum regular value.

getMinOutlier

public java.lang.Number getMinOutlier()
Returns the minimum outlier.

Returns:
The minimum outlier.

getMaxOutlier

public java.lang.Number getMaxOutlier()
Returns the maximum outlier.

Returns:
The maximum outlier.

getOutliers

public java.util.List getOutliers()
Returns a list of outliers.

Returns:
A list of outliers.