|
|||||||||
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.
直线函数,形式为y=a+bx.Copyright: Copyright (c) 2013
Company:
Constructor Summary | |
---|---|
LineFunction(double a,
double b)
根据截距和斜率构造直线. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
覆盖equals方法. |
double |
getA()
返回截距. |
double |
getB()
返回斜率. |
double |
getY(double x)
根据x值计算y值. |
int |
hashCode()
计算hashcode值. |
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 截距.
b
- double 斜率.
Method Detail |
---|
public double getA()
public double getB()
public double getY(double x)
getY
in interface IFunction
x
- double x值.
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 |