|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ijchart.xychart.function.LineFunction
public class LineFunction
Title: IJChart
Description: a chart library for the Java(tm) platform.
A function in the form y = a + bx.Copyright: Copyright (c) 2013
Company:
Constructor Summary | |
---|---|
LineFunction(double a,
double b)
Constructs a new line function. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Override equals method. |
double |
getA()
Returns the intercept. |
double |
getB()
Returns the slope of the line. |
double |
getY(double x)
Calculate the y value for a given inpu x. |
int |
hashCode()
Returns a hash code value for the object. |
java.lang.String |
toString()
Override toString method. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LineFunction(double a, double b)
a
- double
The intercept.b
- double
The slope of the line.Method Detail |
---|
public double getA()
public double getB()
public double getY(double x)
getY
in interface IFunction
x
- double
The x value.
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- Object
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |