@Test public void testIterateDomainBounds_NaN2() { DefaultIntervalXYDataset dataset = new DefaultIntervalXYDataset(); double[] x1 = new double[] {Double.NaN, 2.0, 3.0}; double[] x1Start = new double[] {0.9, Double.NaN, 2.9}; double[] x1End = new double[] {1.1, Double.NaN, 3.1}; double[] y1 = new double[] {4.0, 5.0, 6.0}; double[] y1Start = new double[] {1.09, 2.09, 3.09}; double[] y1End = new double[] {1.11, 2.11, 3.11}; double[][] data1 = new double[][] {x1, x1Start, x1End, y1, y1Start, y1End}; dataset.addSeries("S1", data1); Range r = DatasetUtilities.iterateDomainBounds(dataset, false); assertEquals(2.0, r.getLowerBound(), EPSILON); assertEquals(3.0, r.getUpperBound(), EPSILON); r = DatasetUtilities.iterateDomainBounds(dataset, true); assertEquals(0.9, r.getLowerBound(), EPSILON); assertEquals(3.1, r.getUpperBound(), EPSILON); }
public static Range iterateDomainBounds(XYDataset dataset) { return iterateDomainBounds(dataset, true); }
DatasetUtilities { public static Range iterateDomainBounds(XYDataset dataset) { return iterateDomainBounds(dataset, true); } }
DatasetUtilities { public static Range iterateDomainBounds(XYDataset dataset) { return iterateDomainBounds(dataset, true); } private  DatasetUtilities(); }
DatasetUtilities { public static Range iterateDomainBounds(XYDataset dataset) { return iterateDomainBounds(dataset, true); } private  DatasetUtilities(); static double calculatePieDatasetTotal(PieDataset dataset); static PieDataset createPieDatasetForRow(CategoryDataset dataset,
                                                    Comparable rowKey); static PieDataset createPieDatasetForRow(CategoryDataset dataset,
                                                    int row); static PieDataset createPieDatasetForColumn(CategoryDataset dataset,
                                                       Comparable columnKey); static PieDataset createPieDatasetForColumn(CategoryDataset dataset,
                                                       int column); static PieDataset createConsolidatedPieDataset(PieDataset source,
            Comparable key, double minimumPercent); static PieDataset createConsolidatedPieDataset(PieDataset source,
            Comparable key, double minimumPercent, int minItems); static CategoryDataset createCategoryDataset(String rowKeyPrefix,
            String columnKeyPrefix, double[][] data); static CategoryDataset createCategoryDataset(String rowKeyPrefix,
            String columnKeyPrefix, Number[][] data); static CategoryDataset createCategoryDataset(Comparable[] rowKeys,
            Comparable[] columnKeys, double[][] data); static CategoryDataset createCategoryDataset(Comparable rowKey,
                                                        KeyedValues rowData); static XYDataset sampleFunction2D(Function2D f, double start,
            double end, int samples, Comparable seriesKey); static XYSeries sampleFunction2DToSeries(Function2D f,
            double start, double end, int samples, Comparable seriesKey); static boolean isEmptyOrNull(PieDataset dataset); static boolean isEmptyOrNull(CategoryDataset dataset); static boolean isEmptyOrNull(XYDataset dataset); static Range findDomainBounds(XYDataset dataset); static Range findDomainBounds(XYDataset dataset,
                                         boolean includeInterval); static Range findDomainBounds(XYDataset dataset,
            List<Comparable> visibleSeriesKeys, boolean includeInterval); static Range iterateDomainBounds(XYDataset dataset); static Range iterateDomainBounds(XYDataset dataset,
                                            boolean includeInterval); static Range findRangeBounds(CategoryDataset dataset); static Range findRangeBounds(CategoryDataset dataset,
                                        boolean includeInterval); static Range findRangeBounds(CategoryDataset dataset,
            List<Comparable> visibleSeriesKeys, boolean includeInterval); static Range findRangeBounds(XYDataset dataset); static Range findRangeBounds(XYDataset dataset,
                                        boolean includeInterval); static Range findRangeBounds(XYDataset dataset,
            List<Comparable> visibleSeriesKeys, Range xRange, boolean includeInterval); static Range iterateRangeBounds(CategoryDataset dataset); static Range iterateRangeBounds(CategoryDataset dataset,
            boolean includeInterval); static Range iterateToFindRangeBounds(CategoryDataset dataset,
            List<Comparable> visibleSeriesKeys, boolean includeInterval); static Range iterateRangeBounds(XYDataset dataset); static Range iterateRangeBounds(XYDataset dataset,
            boolean includeInterval); static Range findZBounds(XYZDataset dataset); static Range findZBounds(XYZDataset dataset,
                                        boolean includeInterval); static Range findZBounds(XYZDataset dataset,
            List<Comparable> visibleSeriesKeys, Range xRange, boolean includeInterval); static Range iterateZBounds(XYZDataset dataset); static Range iterateZBounds(XYZDataset dataset,
            boolean includeInterval); static Range iterateToFindDomainBounds(XYDataset dataset,
            List<Comparable> visibleSeriesKeys, boolean includeInterval); static Range iterateToFindRangeBounds(XYDataset dataset,
            List<Comparable> visibleSeriesKeys, Range xRange, boolean includeInterval); static Range iterateToFindZBounds(XYZDataset dataset,
            List<Comparable> visibleSeriesKeys, Range xRange, boolean includeInterval); static Number findMinimumDomainValue(XYDataset dataset); static Number findMaximumDomainValue(XYDataset dataset); static Number findMinimumRangeValue(CategoryDataset dataset); static Number findMinimumRangeValue(XYDataset dataset); static Number findMaximumRangeValue(CategoryDataset dataset); static Number findMaximumRangeValue(XYDataset dataset); static Range findStackedRangeBounds(CategoryDataset dataset); static Range findStackedRangeBounds(CategoryDataset dataset,
            double base); static Range findStackedRangeBounds(CategoryDataset dataset,
                                               KeyToGroupMap map); static Number findMinimumStackedRangeValue(CategoryDataset dataset); static Number findMaximumStackedRangeValue(CategoryDataset dataset); static Range findStackedRangeBounds(TableXYDataset dataset); static Range findStackedRangeBounds(TableXYDataset dataset,
                                               double base); static double calculateStackTotal(TableXYDataset dataset, int item); static Range findCumulativeRangeBounds(CategoryDataset dataset); static double findYValue(XYDataset dataset, int series, double x); static int[] findItemIndicesForX(XYDataset dataset, int series,
            double x); }
DatasetUtilities { public static Range iterateDomainBounds(XYDataset dataset) { return iterateDomainBounds(dataset, true); } private  DatasetUtilities(); static double calculatePieDatasetTotal(PieDataset dataset); static PieDataset createPieDatasetForRow(CategoryDataset dataset,
                                                    Comparable rowKey); static PieDataset createPieDatasetForRow(CategoryDataset dataset,
                                                    int row); static PieDataset createPieDatasetForColumn(CategoryDataset dataset,
                                                       Comparable columnKey); static PieDataset createPieDatasetForColumn(CategoryDataset dataset,
                                                       int column); static PieDataset createConsolidatedPieDataset(PieDataset source,
            Comparable key, double minimumPercent); static PieDataset createConsolidatedPieDataset(PieDataset source,
            Comparable key, double minimumPercent, int minItems); static CategoryDataset createCategoryDataset(String rowKeyPrefix,
            String columnKeyPrefix, double[][] data); static CategoryDataset createCategoryDataset(String rowKeyPrefix,
            String columnKeyPrefix, Number[][] data); static CategoryDataset createCategoryDataset(Comparable[] rowKeys,
            Comparable[] columnKeys, double[][] data); static CategoryDataset createCategoryDataset(Comparable rowKey,
                                                        KeyedValues rowData); static XYDataset sampleFunction2D(Function2D f, double start,
            double end, int samples, Comparable seriesKey); static XYSeries sampleFunction2DToSeries(Function2D f,
            double start, double end, int samples, Comparable seriesKey); static boolean isEmptyOrNull(PieDataset dataset); static boolean isEmptyOrNull(CategoryDataset dataset); static boolean isEmptyOrNull(XYDataset dataset); static Range findDomainBounds(XYDataset dataset); static Range findDomainBounds(XYDataset dataset,
                                         boolean includeInterval); static Range findDomainBounds(XYDataset dataset,
            List<Comparable> visibleSeriesKeys, boolean includeInterval); static Range iterateDomainBounds(XYDataset dataset); static Range iterateDomainBounds(XYDataset dataset,
                                            boolean includeInterval); static Range findRangeBounds(CategoryDataset dataset); static Range findRangeBounds(CategoryDataset dataset,
                                        boolean includeInterval); static Range findRangeBounds(CategoryDataset dataset,
            List<Comparable> visibleSeriesKeys, boolean includeInterval); static Range findRangeBounds(XYDataset dataset); static Range findRangeBounds(XYDataset dataset,
                                        boolean includeInterval); static Range findRangeBounds(XYDataset dataset,
            List<Comparable> visibleSeriesKeys, Range xRange, boolean includeInterval); static Range iterateRangeBounds(CategoryDataset dataset); static Range iterateRangeBounds(CategoryDataset dataset,
            boolean includeInterval); static Range iterateToFindRangeBounds(CategoryDataset dataset,
            List<Comparable> visibleSeriesKeys, boolean includeInterval); static Range iterateRangeBounds(XYDataset dataset); static Range iterateRangeBounds(XYDataset dataset,
            boolean includeInterval); static Range findZBounds(XYZDataset dataset); static Range findZBounds(XYZDataset dataset,
                                        boolean includeInterval); static Range findZBounds(XYZDataset dataset,
            List<Comparable> visibleSeriesKeys, Range xRange, boolean includeInterval); static Range iterateZBounds(XYZDataset dataset); static Range iterateZBounds(XYZDataset dataset,
            boolean includeInterval); static Range iterateToFindDomainBounds(XYDataset dataset,
            List<Comparable> visibleSeriesKeys, boolean includeInterval); static Range iterateToFindRangeBounds(XYDataset dataset,
            List<Comparable> visibleSeriesKeys, Range xRange, boolean includeInterval); static Range iterateToFindZBounds(XYZDataset dataset,
            List<Comparable> visibleSeriesKeys, Range xRange, boolean includeInterval); static Number findMinimumDomainValue(XYDataset dataset); static Number findMaximumDomainValue(XYDataset dataset); static Number findMinimumRangeValue(CategoryDataset dataset); static Number findMinimumRangeValue(XYDataset dataset); static Number findMaximumRangeValue(CategoryDataset dataset); static Number findMaximumRangeValue(XYDataset dataset); static Range findStackedRangeBounds(CategoryDataset dataset); static Range findStackedRangeBounds(CategoryDataset dataset,
            double base); static Range findStackedRangeBounds(CategoryDataset dataset,
                                               KeyToGroupMap map); static Number findMinimumStackedRangeValue(CategoryDataset dataset); static Number findMaximumStackedRangeValue(CategoryDataset dataset); static Range findStackedRangeBounds(TableXYDataset dataset); static Range findStackedRangeBounds(TableXYDataset dataset,
                                               double base); static double calculateStackTotal(TableXYDataset dataset, int item); static Range findCumulativeRangeBounds(CategoryDataset dataset); static double findYValue(XYDataset dataset, int series, double x); static int[] findItemIndicesForX(XYDataset dataset, int series,
            double x);  }