org.jfree.data.function

Class LineFunction2D

public class LineFunction2D extends Object implements Function2D

A function in the form y = a + bx.
Constructor Summary
LineFunction2D(double a, double b)
Constructs a new line function.
Method Summary
doublegetValue(double x)
Returns the function value.

Constructor Detail

LineFunction2D

public LineFunction2D(double a, double b)
Constructs a new line function.

Parameters: a the intercept. b the slope.

Method Detail

getValue

public double getValue(double x)
Returns the function value.

Parameters: x the x-value.

Returns: The value.