Example usage for org.jfree.data.function LineFunction2D getSlope

List of usage examples for org.jfree.data.function LineFunction2D getSlope

Introduction

In this page you can find the example usage for org.jfree.data.function LineFunction2D getSlope.

Prototype

public double getSlope() 

Source Link

Document

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

Usage

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

/**
 * Some tests for the constructor.//from  w  w  w  .j  a  v  a  2s .  c  om
 */
@Test
public void testConstructor() {
    LineFunction2D f = new LineFunction2D(1.0, 2.0);
    assertEquals(1.0, f.getIntercept(), EPSILON);
    assertEquals(2.0, f.getSlope(), EPSILON);
}