Example usage for org.jfree.data.statistics BoxAndWhiskerItem getOutliers

List of usage examples for org.jfree.data.statistics BoxAndWhiskerItem getOutliers

Introduction

In this page you can find the example usage for org.jfree.data.statistics BoxAndWhiskerItem getOutliers.

Prototype

public List getOutliers() 

Source Link

Document

Returns a list of outliers.

Usage

From source file:org.jfree.data.statistics.DefaultBoxAndWhiskerXYDataset.java

/**
 * Returns a list of outliers for the specified series and item.
 *
 * @param series  the series (zero-based index).
 * @param item  the item (zero-based index).
 *
 * @return The list of outliers for the specified series and item
 *         (possibly <code>null</code>).
 *//*from   ww  w.j  a  v  a  2  s .c  o  m*/
@Override
public List<Number> getOutliers(int series, int item) {
    List<Number> result = null;
    BoxAndWhiskerItem stats = this.items.get(item);
    if (stats != null) {
        result = stats.getOutliers();
    }
    return result;
}

From source file:gui.TraitViewerDialog.java

private String showBoxAndWhiskerItem(BoxAndWhiskerItem a) {
    String r = "";
    r += "mean: " + a.getMean() + "\n";
    r += "median: " + a.getMedian() + "\n";
    r += "25%: " + a.getQ1() + "\n";
    r += "75%: " + a.getQ3() + "\n";
    r += "minreg: " + a.getMinRegularValue() + "\n";
    r += "maxreg: " + a.getMaxRegularValue() + "\n";
    r += "minoutl: " + a.getMinOutlier() + "\n";
    r += "maxoutl: " + a.getMaxOutlier() + "\n";
    if (a.getOutliers() != null) {
        r += "outliers: " + a.getOutliers().toString() + "\n";
    }/* ww w .j  a v a  2 s  .  c  o m*/
    return r;
}

From source file:org.jfree.data.statistics.DefaultBoxAndWhiskerCategoryDataset.java

/**
 * Returns a list of outlier values for an item.
 *
 * @param row  the row index (zero-based).
 * @param column  the column index (zero-based).
 *
 * @return A list of outlier values.//from   ww w  . j a  v  a2  s.  c  o m
 *
 * @see #getItem(int, int)
 */
@Override
public List<Number> getOutliers(int row, int column) {
    List<Number> result = null;
    BoxAndWhiskerItem item = (BoxAndWhiskerItem) this.data.getObject(row, column);
    if (item != null) {
        result = item.getOutliers();
    }
    return result;
}

From source file:org.jfree.data.statistics.DefaultBoxAndWhiskerCategoryDataset.java

/**
 * Returns a list of outlier values for an item.
 *
 * @param rowKey  the row key./*from   w  w  w . j a  va 2  s . c o  m*/
 * @param columnKey  the column key.
 *
 * @return A list of outlier values.
 *
 * @see #getItem(int, int)
 */
@Override
public List<Number> getOutliers(Comparable rowKey, Comparable columnKey) {
    List<Number> result = null;
    BoxAndWhiskerItem item = (BoxAndWhiskerItem) this.data.getObject(rowKey, columnKey);
    if (item != null) {
        result = item.getOutliers();
    }
    return result;
}