Package elki.math.geometry
Class XYPlot
- java.lang.Object
-
- elki.math.geometry.XYPlot
-
- All Implemented Interfaces:
java.lang.Iterable<XYPlot.Curve>
public class XYPlot extends java.lang.Object implements java.lang.Iterable<XYPlot.Curve>
An XYCurve is an ordered collection of 2dXYPlot.Curves, meant for chart generation.- Since:
- 0.7.0
- Author:
- Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classXYPlot.CurveCurve on this plot.
-
Field Summary
Fields Modifier and Type Field Description protected java.util.ArrayList<XYPlot.Curve>curvesCurves on this plot.protected java.lang.StringlabelxLabel of X axisprotected java.lang.StringlabelyLabel of Y axisprotected doublemaxxMinimum and maximum for X axisprotected doublemaxyMinimum and maximum for Y axisprotected doubleminxMinimum and maximum for X axisprotected doubleminyMinimum and maximum for Y axisprotected static doubleTHRESHOLDSimplification threshold
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetLabelx()Get label of x axisjava.lang.StringgetLabely()Get label of y axisjava.lang.StringgetLongName()doublegetMaxx()Maximum on x axis.doublegetMaxy()Maximum on y axis.doublegetMinx()Minimum on x axis.doublegetMiny()Minimum on y axis.java.lang.StringgetShortName()java.util.Iterator<XYPlot.Curve>iterator()XYPlot.CurvemakeCurve()Make a new curve.XYPlot.CurvemakeCurve(int color)Make a new curve with desired color.XYPlot.CurvemakeCurve(int color, int size)Make a new curve with desired color.
-
-
-
Field Detail
-
THRESHOLD
protected static final double THRESHOLD
Simplification threshold- See Also:
- Constant Field Values
-
curves
protected java.util.ArrayList<XYPlot.Curve> curves
Curves on this plot.
-
labelx
protected java.lang.String labelx
Label of X axis
-
labely
protected java.lang.String labely
Label of Y axis
-
minx
protected double minx
Minimum and maximum for X axis
-
maxx
protected double maxx
Minimum and maximum for X axis
-
miny
protected double miny
Minimum and maximum for Y axis
-
maxy
protected double maxy
Minimum and maximum for Y axis
-
-
Method Detail
-
makeCurve
public XYPlot.Curve makeCurve()
Make a new curve.- Returns:
- Curve
-
makeCurve
public XYPlot.Curve makeCurve(int color)
Make a new curve with desired color.- Parameters:
color- Color number- Returns:
- Curve
-
makeCurve
public XYPlot.Curve makeCurve(int color, int size)
Make a new curve with desired color.- Parameters:
color- Color numbersize- Expected size- Returns:
- Curve
-
getLabelx
public java.lang.String getLabelx()
Get label of x axis- Returns:
- label of x axis
-
getLabely
public java.lang.String getLabely()
Get label of y axis- Returns:
- label of y axis
-
getMinx
public double getMinx()
Minimum on x axis.- Returns:
- Minimum on X
-
getMaxx
public double getMaxx()
Maximum on x axis.- Returns:
- Maximum on X
-
getMiny
public double getMiny()
Minimum on y axis.- Returns:
- Minimum on Y
-
getMaxy
public double getMaxy()
Maximum on y axis.- Returns:
- Maximum on Y
-
iterator
public java.util.Iterator<XYPlot.Curve> iterator()
- Specified by:
iteratorin interfacejava.lang.Iterable<XYPlot.Curve>
-
getLongName
public java.lang.String getLongName()
-
getShortName
public java.lang.String getShortName()
-
-