public class DataFunction extends Dataset
Modifier and Type | Class and Description |
---|---|
protected static class |
DataFunction.Loader
A class to save and load DataFunction data in an XMLControl.
|
Constructor and Description |
---|
DataFunction(DatasetManager input)
Constructs a DataFunction for the specified input data.
|
DataFunction(DatasetManager input,
java.lang.String name,
java.lang.String expression)
Constructs a DataFunction for the specified input data, name and expression.
|
Modifier and Type | Method and Description |
---|---|
void |
append(double[] x,
double[] y)
Appends (x,y) arrays to the Dataset.
|
void |
append(double[] x,
double[] y,
double[] dx,
double[] dy)
Appends arrays of data points and uncertainties to the Dataset.
|
void |
append(double x,
double y)
Overrides Dataset methods.
|
void |
append(double x,
double y,
double dx,
double dy)
Appends a data point and its uncertainty to the Dataset.
|
void |
clear()
Clear all data from this Dataset.
|
java.lang.String |
getExpression()
Gets the expression.
|
java.lang.String |
getInputString()
Gets the current input string.
|
static XML.ObjectLoader |
getLoader()
Returns the XML.ObjectLoader for this class.
|
void |
refreshFunctionData()
Refreshes the data points.
|
void |
setExpression(java.lang.String e)
Sets the expression.
|
void |
setYColumnName(java.lang.String name)
Sets the y-column name (ie the function name).
|
java.lang.String |
toString()
Creates a string representation of the data.
|
convertTableColumnIndex, countColumnsVisible, draw, drawFilledPlot, drawLinePlot, drawScatterPlot, getColumnClass, getColumnCount, getColumnName, getComplexDatasets, getData2D, getData3D, getDatasets, getEdgeColor, getFillColor, getID, getIndex, getLineColor, getMarkerShape, getMarkerSize, getName, getPoints, getRowCount, getValidXPoints, getValidYPoints, getValueAt, getVisible, getXColumnName, getXMax, getXMin, getXPoints, getYColumnName, getYMax, getYMin, getYPoints, insertionSort, isConnected, isMeasured, isSorted, isXColumnVisible, isYColumnVisible, moveDatum, read, recalculatePath, setConnected, setCustomMarker, setID, setLineColor, setMarkerColor, setMarkerColor, setMarkerColor, setMarkerShape, setMarkerSize, setMaximumPoints, setName, setSorted, setStride, setVisible, setXColumnVisible, setXYColumnNames, setXYColumnNames, setYColumnVisible, write
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
public DataFunction(DatasetManager input)
input
- the input datapublic DataFunction(DatasetManager input, java.lang.String name, java.lang.String expression)
input
- the input datapublic void setExpression(java.lang.String e)
e
- the expression stringpublic java.lang.String getExpression()
public void setYColumnName(java.lang.String name)
name
- the namepublic java.lang.String getInputString()
public void refreshFunctionData()
public java.lang.String toString()
Dataset
public void append(double x, double y)
public void append(double x, double y, double dx, double dy)
Dataset
public void append(double[] x, double[] y)
Dataset
public void append(double[] x, double[] y, double[] dx, double[] dy)
Dataset
public void clear()
Dataset
public static XML.ObjectLoader getLoader()