List of usage examples for org.jfree.data.statistics BoxAndWhiskerCalculator calculateBoxAndWhiskerStatistics
public static BoxAndWhiskerItem calculateBoxAndWhiskerStatistics(List values, boolean stripNullAndNaNItems)
Number
objects. 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); }