|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.myra.datamining.statistics.Curve
public class Curve
Constructor Summary | |
---|---|
Curve()
Default constructor. |
Method Summary | |
---|---|
void |
add(double x,
double y)
Adds a point with the specified (x,y) coordinates to this curve. |
void |
add(Point point)
Adds the specified point to this curve. |
double |
area()
Returns the estimated area under this curve. |
Point |
getLast()
Returns the last point of the curve. |
Point |
getLast(int n)
Returns the n -th last point of the curve. |
java.util.List<Point> |
getPoints()
Returns the list of points of the curve. |
boolean |
isEmpty()
Returns true if this curve contains no coordinates. |
int |
size()
Returns the number of coordinaties (points) of this curve. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Curve()
Method Detail |
---|
public void add(Point point)
point
- the point to be added.public void add(double x, double y)
x
- the x axis value of the point.y
- the y axis value of the point.public Point getLast()
public Point getLast(int n)
n
-th last point of the curve.
n
- the index of the previous point.
n
-th last point of the curve.public java.util.List<Point> getPoints()
public boolean isEmpty()
true
if this curve contains no coordinates.
true
if this curve contains no coordinates;
false
otherwise.public double area()
public int size()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |