Example usage for org.jfree.data.statistics SimpleHistogramDataset getYValue

List of usage examples for org.jfree.data.statistics SimpleHistogramDataset getYValue

Introduction

In this page you can find the example usage for org.jfree.data.statistics SimpleHistogramDataset getYValue.

Prototype

@Override
public double getYValue(int series, int item) 

Source Link

Document

Returns the y-value (as a double primitive) for an item within a series.

Usage

From source file:org.jfree.data.statistics.SimpleHistogramDatasetTest.java

/**
 * Some checks for the clearObservations() method.
 *///from  ww w . j ava  2  s.  c o m
@Test
public void testClearObservations() {
    SimpleHistogramDataset d1 = new SimpleHistogramDataset("D1");
    d1.clearObservations();
    assertEquals(0, d1.getItemCount(0));
    d1.addBin(new SimpleHistogramBin(0.0, 1.0));
    d1.addObservation(0.5);
    assertEquals(1.0, d1.getYValue(0, 0), EPSILON);
}