RankProbabilityDataset extends DefaultCategoryDataset { @Override public Number getValue(int row, int column) { return d_summary.getValue(d_summary.getTreatments().get(column), row + 1); } RankProbabilityDataset(RankProbabilitySummary rankProbabilitySummary, boolean preferDescription);  RankProbabilityDataset(RankProbabilitySummary rankProbabilitySummary); @SuppressWarnings("rawtypes") @Override int getRowIndex(Comparable key); @SuppressWarnings("rawtypes") @Override int getColumnIndex(Comparable key); @Override String getRowKey(int row); @Override String getColumnKey(int column); @Override List<String> getRowKeys(); @Override List<String> getColumnKeys(); @Override int getRowCount(); @Override int getColumnCount(); @Override Number getValue(int row, int column); @SuppressWarnings("rawtypes") @Override Number getValue(Comparable rowKey, Comparable columnKey);  }
@Test public void testGetValue() { for (Treatment t : d_summary.getTreatments()) { for (int r = 1; r <= d_summary.getTreatments().size(); ++r) { assertEquals(0.0, d_dataSet.getValue(r - 1, d_summary.getTreatments().indexOf(t))); assertEquals(0.0, d_dataSet.getValue("Rank " + r, t)); } } d_results.makeSamplesAvailable(); for (Treatment t : d_summary.getTreatments()) { for (int r = 1; r <= d_summary.getTreatments().size(); ++r) { assertEquals(d_summary.getValue(t, r), d_dataSet.getValue(r - 1, d_summary.getTreatments().indexOf(t))); assertEquals(d_summary.getValue(t, r), d_dataSet.getValue("Rank " + r, t)); } } }