Example usage for org.jfree.data.statistics BoxAndWhiskerCalculator calculateBoxAndWhiskerStatistics

List of usage examples for org.jfree.data.statistics BoxAndWhiskerCalculator calculateBoxAndWhiskerStatistics

Introduction

In this page you can find the example usage for org.jfree.data.statistics BoxAndWhiskerCalculator calculateBoxAndWhiskerStatistics.

Prototype

public static BoxAndWhiskerItem calculateBoxAndWhiskerStatistics(List values, boolean stripNullAndNaNItems) 

Source Link

Document

Calculates the statistics required for a BoxAndWhiskerItem from a list of Number objects.

Usage

From source file:net.sf.maltcms.chromaui.normalization.spi.charts.PeakGroupRtBoxPlot.java

protected BoxAndWhiskerItem createBoxAndWhiskerItem(Collection<IPeakAnnotationDescriptor> descriptors) {
    List<Double> values = new LinkedList<>();
    for (IPeakAnnotationDescriptor ipad : descriptors) {
        values.add(ipad.getApexTime());/*from w w  w . j a v  a2 s  .c om*/
    }

    //        for (int i = 0; i < 100; i++) {
    //            values.add(1000000 * Math.random());
    //        }
    BoxAndWhiskerItem bawi = BoxAndWhiskerCalculator.calculateBoxAndWhiskerStatistics(values,
            ignoreNullAndNanValues);
    return bawi;
}

From source file:net.sf.maltcms.chromaui.normalization.spi.charts.PeakGroupBoxPlot.java

protected BoxAndWhiskerItem createBoxAndWhiskerItem(Collection<IPeakAnnotationDescriptor> descriptors) {
    List<Double> values = new LinkedList<>();
    for (IPeakAnnotationDescriptor ipad : descriptors) {
        double factor = normalizer.getNormalizationFactor(ipad);
        if (showAreas) {
            values.add(factor * ipad.getArea());
        } else {/*w w  w  .  j a  v a2  s  .c om*/
            values.add(factor * ipad.getApexIntensity());
        }
    }

    //        for (int i = 0; i < 100; i++) {
    //            values.add(1000000 * Math.random());
    //        }
    return BoxAndWhiskerCalculator.calculateBoxAndWhiskerStatistics(values, ignoreNullAndNanValues);
}