public abstract class AbstractXY_DataSet extends Object implements XY_DataSet
| Modifier and Type | Field and Description |
|---|---|
protected String |
info
Information about this function, will be used in making the legend from a
parameter list of variables
|
protected String |
name
Name of the function, useful for differentiation different instances of a
function, such as in an array of functions.
|
protected String |
xAxisName |
protected String |
yAxisName |
| Constructor and Description |
|---|
AbstractXY_DataSet() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
areAllXValuesInteger(double tolerance)
It finds out whether the X values are within tolerance of an integer value
|
double |
getClosestX(double y)
Get the X value for the point with closest Y
|
double |
getClosestY(double x)
Get the Y value for the point with closest X
|
String |
getInfo()
Returns the info of this function.
|
String |
getXAxisName()
Gets the name of the X Axis
|
Iterator<Double> |
getXValuesIterator()
Returns an iterator over all x-values in the list.
|
String |
getYAxisName()
Gets the name of the Y Axis
|
Iterator<Double> |
getYValuesIterator()
Returns an iterator over all y-values in the list.
|
Iterator<Point2D> |
iterator() |
String |
name()
Returns an object's display name.
|
void |
setInfo(String info)
Sets the info string of this function.
|
void |
setName(String name)
Sets the name of this function.
|
void |
setXAxisName(String xName)
Sets the name of the X Axis
|
void |
setYAxisName(String yName)
Sets the name of the X Axis
|
List<Double> |
xValues() |
List<Double> |
yValues() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdeepClone, get, getMaxX, getMaxY, getMetadataString, getMinX, getMinY, getNum, getX, getY, hasPoint, hasPoint, set, set, set, toStringforEach, spliteratorprotected String info
protected String name
protected String xAxisName
protected String yAxisName
public String name()
Namedpublic void setName(String name)
setName in interface XY_DataSetpublic String getInfo()
getInfo in interface XY_DataSetpublic void setInfo(String info)
setInfo in interface XY_DataSetpublic void setXAxisName(String xName)
XY_DataSetsetXAxisName in interface XY_DataSetxName - Stringpublic String getXAxisName()
XY_DataSetgetXAxisName in interface XY_DataSetpublic void setYAxisName(String yName)
XY_DataSetsetYAxisName in interface XY_DataSetyName - Stringpublic String getYAxisName()
XY_DataSetgetYAxisName in interface XY_DataSetpublic double getClosestX(double y)
XY_DataSetgetClosestX in interface XY_DataSetpublic double getClosestY(double x)
XY_DataSetgetClosestY in interface XY_DataSetpublic boolean areAllXValuesInteger(double tolerance)
areAllXValuesInteger in interface XY_DataSettolerance - value to consider rounding errorspublic Iterator<Double> getXValuesIterator()
getXValuesIterator in interface XY_DataSetpublic Iterator<Double> getYValuesIterator()
getYValuesIterator in interface XY_DataSetpublic List<Double> xValues()
xValues in interface XY_DataSetpublic List<Double> yValues()
yValues in interface XY_DataSet