Example usage for org.jfree.data.function PowerFunction2D getB

List of usage examples for org.jfree.data.function PowerFunction2D getB

Introduction

In this page you can find the example usage for org.jfree.data.function PowerFunction2D getB.

Prototype

public double getB() 

Source Link

Document

Returns the 'b' coefficient that was specified in the constructor.

Usage

From source file:org.jfree.data.function.PowerFunction2DTest.java

/**
 * Some tests for the constructor.//from   w w w  .  j a  va2s.  c om
 */
@Test
public void testConstructor() {
    PowerFunction2D f = new PowerFunction2D(1.0, 2.0);
    assertEquals(1.0, f.getA(), EPSILON);
    assertEquals(2.0, f.getB(), EPSILON);
}