EmpiricalDensityDataset extends AbstractXYDataset { public int[] getCounts(int series) { return d_counts[series]; } EmpiricalDensityDataset(int nBins, PlotParameter ... parameters);  EmpiricalDensityDataset(int nBins, MCMCResults r, Parameter p); @Override int getSeriesCount(); @Override Comparable<String> getSeriesKey(int series); Double getX(int series, int bin); Double getY(int series, int bin); int[] getCounts(int series); double[] getDensities(int series); int getItemCount(int series);  }
@Test public void testCountLength() { d_results.makeSamplesAvailable(); EmpiricalDensityDataset edd = new EmpiricalDensityDataset(N_BINS, d_results, d_parameters[0]); assertEquals(N_BINS, edd.getCounts(0).length); }
@Test public void testCounts() { d_results.makeSamplesAvailable(); EmpiricalDensityDataset edd = new EmpiricalDensityDataset(N_BINS, d_results, d_parameters[0]); assertArrayEquals(s_counts1, edd.getCounts(0)); }
@Test public void testMultiDensityCounts() { d_results.makeSamplesAvailable(); EmpiricalDensityDataset edd = new EmpiricalDensityDataset(N_BINS, new PlotParameter(d_results, d_parameters[0]), new PlotParameter(d_results, d_parameters[0])); assertArrayEquals(s_counts1, edd.getCounts(0)); }