Modifier and Type | Class and Description |
---|---|
class |
XYPlot.Curve.Itr
Iterator for the curve. 2D, does not follow Java collections style.
|
Modifier and Type | Field and Description |
---|---|
protected int |
color
Suggested color (number).
|
protected double[] |
data
X and Y positions
|
protected int |
len
Size.
|
Constructor and Description |
---|
Curve(int color)
Constructor.
|
Curve(int color,
int size)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
add(double x,
double y)
Add a coordinate pair, but don't simplify
|
int |
getColor()
Suggested color number.
|
double |
getX(int off)
Curve X value at given position
|
double |
getY(int off)
Curve Y value at given position
|
XYPlot.Curve.Itr |
iterator()
Get an iterator for the curve.
|
int |
size()
Size of curve.
|
protected double[] data
protected int len
protected int color
public Curve(int color)
color
- Color number (curve number)public Curve(int color, int size)
color
- Color number (curve number)size
- Expected sizepublic int getColor()
public void add(double x, double y)
x
- X coordinatey
- Y coordinatepublic double getX(int off)
off
- Offsetpublic double getY(int off)
off
- Offsetpublic int size()
public XYPlot.Curve.Itr iterator()
for (XYCurve.Itr it = curve.iterator(); it.valid(); it.advance()) { doSomethingWith(it.getX(), it.getY()); }
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.