/** * Returns the median value for an item. * * @param rowKey the row key. * @param columnKey the columnKey. * @return The median value. * @see #getItem(int, int) */ public Number getMedianValue(Comparable rowKey, Comparable columnKey) { Number result = null; BoxAndWhiskerItem item = (BoxAndWhiskerItem) this.data.getObject(rowKey, columnKey); if (item != null) { result = item.getMedian(); } return result; }
/** * Returns the median-value for the specified series and item. * * @param series the series (zero-based index). * @param item the item (zero-based index). * @return The median-value for the specified series and item. */ public Number getMedianValue(int series, int item) { Number result = null; BoxAndWhiskerItem stats = (BoxAndWhiskerItem) this.items.get(item); if (stats != null) { result = stats.getMedian(); } return result; }
/** * Returns the median value for an item. * * @param row the row index (zero-based). * @param column the column index (zero-based). * @return The median value. * @see #getItem(int, int) */ public Number getMedianValue(int row, int column) { Number result = null; BoxAndWhiskerItem item = (BoxAndWhiskerItem) this.data.getObject(row, column); if (item != null) { result = item.getMedian(); } return result; }