Example usage for org.jfree.data.statistics DefaultStatisticalCategoryDataset getStdDevValue

List of usage examples for org.jfree.data.statistics DefaultStatisticalCategoryDataset getStdDevValue

Introduction

In this page you can find the example usage for org.jfree.data.statistics DefaultStatisticalCategoryDataset getStdDevValue.

Prototype

@Override
public Number getStdDevValue(Comparable rowKey, Comparable columnKey) 

Source Link

Document

Returns the standard deviation value for an item.

Usage

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

/**
 * Some checks for the add() method.//w  w w . j a v a2 s .  com
 */
@Test
public void testAdd() {
    DefaultStatisticalCategoryDataset d1 = new DefaultStatisticalCategoryDataset();
    d1.add(1.0, 2.0, "R1", "C1");
    assertEquals(1.0, d1.getValue("R1", "C1").doubleValue(), EPSILON);
    assertEquals(2.0, d1.getStdDevValue("R1", "C1").doubleValue(), EPSILON);

    // overwrite the value
    d1.add(10.0, 20.0, "R1", "C1");
    assertEquals(10.0, d1.getValue("R1", "C1").doubleValue(), EPSILON);
    assertEquals(20.0, d1.getStdDevValue("R1", "C1").doubleValue(), EPSILON);
}