org.jfree.data.statistics
public class DefaultBoxAndWhiskerXYDataset extends AbstractXYDataset implements BoxAndWhiskerXYDataset, RangeInfo
Constructor Summary | |
---|---|
DefaultBoxAndWhiskerXYDataset(Comparable seriesKey)
Constructs a new box and whisker dataset.
|
Method Summary | |
---|---|
void | add(Date date, BoxAndWhiskerItem item)
Adds an item to the dataset.
|
double | getFaroutCoefficient()
Returns the value used as the farout coefficient. |
BoxAndWhiskerItem | getItem(int series, int item)
Return an item from within the dataset.
|
int | getItemCount(int series)
Returns the number of items in the specified series.
|
Number | getMaxOutlier(int series, int item)
Returns the maximum value which is not a farout, ie Q3 + (interquartile
range * farout coefficient).
|
Number | getMaxRegularValue(int series, int item)
Returns the max-value for the specified series and item.
|
Number | getMeanValue(int series, int item)
Returns the mean for the specified series and item.
|
Number | getMedianValue(int series, int item)
Returns the median-value for the specified series and item.
|
Number | getMinOutlier(int series, int item)
Returns the minimum value which is not a farout. |
Number | getMinRegularValue(int series, int item)
Returns the min-value for the specified series and item.
|
double | getOutlierCoefficient()
Returns the value used as the outlier coefficient. |
List | getOutliers(int series, int item)
Returns an array of outliers for the specified series and item.
|
Number | getQ1Value(int series, int item)
Returns the Q1 median-value for the specified series and item.
|
Number | getQ3Value(int series, int item)
Returns the Q3 median-value for the specified series and item.
|
Range | getRangeBounds(boolean includeInterval)
Returns the range of the values in this dataset's range.
|
double | getRangeLowerBound(boolean includeInterval)
Returns the minimum y-value in the dataset.
|
double | getRangeUpperBound(boolean includeInterval)
Returns the maximum y-value in the dataset.
|
int | getSeriesCount()
Returns the number of series in the dataset.
|
Comparable | getSeriesKey(int i)
Returns the name of the series stored in this dataset.
|
Number | getX(int series, int item)
Returns the x-value for one item in a series.
|
Date | getXDate(int series, int item)
Returns the x-value for one item in a series, as a Date.
|
Number | getY(int series, int item)
Returns the y-value for one item in a series.
|
void | setFaroutCoefficient(double faroutCoefficient)
Sets the value used as the farouts coefficient. |
void | setOutlierCoefficient(double outlierCoefficient)
Sets the value used as the outlier coefficient
|
The current implementation allows only one series in the dataset. This may be extended in a future version.
Parameters: seriesKey the key for the series.
Parameters: date the date. item the item.
Returns: A double
representing the value used to calculate
farouts.
Parameters: series the series index (ignored, since this dataset contains only one series). item the item within the series (zero-based index)
Returns: The item.
Parameters: series the index (zero-based) of the series.
Returns: The number of items in the specified series.
Parameters: series the series (zero-based index). item the item (zero-based index).
Returns: A Number
representing the maximum non-farout value.
Parameters: series the series (zero-based index). item the item (zero-based index).
Returns: The max-value for the specified series and item.
Parameters: series the series (zero-based index). item the item (zero-based index).
Returns: The mean for the specified series and item.
Parameters: series the series (zero-based index). item the item (zero-based index).
Returns: The median-value for the specified series and item.
Parameters: series the series (zero-based index). item the item (zero-based index).
Returns: A Number
representing the maximum non-farout value.
Parameters: series the series (zero-based index). item the item (zero-based index).
Returns: The min-value for the specified series and item.
Returns: A double
representing the value used to calculate
outliers.
Parameters: series the series (zero-based index). item the item (zero-based index).
Returns: The array of outliers for the specified series and item.
Parameters: series the series (zero-based index). item the item (zero-based index).
Returns: The Q1 median-value for the specified series and item.
Parameters: series the series (zero-based index). item the item (zero-based index).
Returns: The Q3 median-value for the specified series and item.
Parameters: includeInterval a flag that determines whether or not the y-interval is taken into account.
Returns: The range.
Parameters: includeInterval a flag that determines whether or not the y-interval is taken into account.
Returns: The minimum value.
Parameters: includeInterval a flag that determines whether or not the y-interval is taken into account.
Returns: The maximum value.
This implementation only allows one series.
Returns: The number of series.
Parameters: i the index of the series. Currently ignored.
Returns: The name of this series.
The value returned is a Long object generated from the underlying Date object.
Parameters: series the series (zero-based index). item the item (zero-based index).
Returns: The x-value.
This method is provided for convenience only.
Parameters: series the series (zero-based index). item the item (zero-based index).
Returns: The x-value as a Date.
This method (from the XYDataset interface) is mapped to the getMaxNonOutlierValue() method.
Parameters: series the series (zero-based index). item the item (zero-based index).
Returns: The y-value.
Parameters: faroutCoefficient being a double
representing the
value used to calculate farouts.
Parameters: outlierCoefficient being a double
representing the
value used to calculate outliers.