public class

LineFunction2D

extends Object
implements Function2D
java.lang.Object
   ↳ org.jfree.data.function.LineFunction2D

Class Overview

A function in the form y = a + bx.

Summary

Public Constructors
LineFunction2D(double a, double b)
Constructs a new line function.
Public Methods
double getValue(double x)
Returns the function value.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.jfree.data.function.Function2D

Public Constructors

public LineFunction2D (double a, double b)

Constructs a new line function.

Parameters
a the intercept.
b the slope.

Public Methods

public double getValue (double x)

Returns the function value.

Parameters
x the x-value.
Returns
  • The value.