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

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

Introduction

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

Prototype

public double getA() 

Source Link

Document

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

Usage

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

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