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

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

Introduction

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

Prototype

public double getIntercept() 

Source Link

Document

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

Usage

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

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