DataSourceIndependent, IDataSource, java.io.Serializablepublic class DataSourceFunction extends java.lang.Object implements IDataSource, DataSourceIndependent, java.io.Serializable
| Constructor | Description |
|---|---|
DataSourceFunction() |
|
DataSourceFunction(IFunction function) |
|
DataSourceFunction(java.lang.String label,
Dimension dimension,
IFunction function,
int nValues) |
|
DataSourceFunction(java.lang.String label,
Dimension dimension,
IFunction function,
int nValues,
java.lang.String xLabel,
Dimension xDimension) |
| Modifier and Type | Method | Description |
|---|---|---|
IData |
getData() |
Returns the DataFunction made by this source.
|
IDataInfo |
getDataInfo() |
|
IFunction |
getFunction() |
|
int |
getIndependentArrayDimension() |
Returns the number of independent data dimensions
|
DataDoubleArray |
getIndependentData(int i) |
Returns the X data for the given dimension
|
DataDoubleArray.DataInfoDoubleArray |
getIndependentDataInfo(int i) |
Returns the DataInfo for the given dimension
|
DataTag |
getIndependentTag() |
Returns the tag associated with this DataSource.
|
DataTag |
getTag() |
|
DataSourceUniform |
getXSource() |
Returns the DataSourceUniform instance that generates the x values.
|
void |
setFunction(IFunction function) |
|
protected void |
setupData(java.lang.String label,
Dimension dimension) |
Recalculates the y values from the current x values.
|
void |
update() |
Updates the wrapped Data and DataInfo for change to the xDataSource
|
void |
updateF() |
protected final DataTag tag
public DataSourceFunction()
public DataSourceFunction(IFunction function)
public DataSourceFunction(java.lang.String label,
Dimension dimension,
IFunction function,
int nValues)
public IDataInfo getDataInfo()
getDataInfo in interface IDataSourcepublic DataTag getTag()
getTag in interface IDataSourcepublic DataSourceUniform getXSource()
public IData getData()
getData in interface IDataSourcepublic IFunction getFunction()
public void setFunction(IFunction function)
function - The function to set.protected void setupData(java.lang.String label,
Dimension dimension)
public DataDoubleArray getIndependentData(int i)
DataSourceIndependentgetIndependentData in interface DataSourceIndependentpublic DataDoubleArray.DataInfoDoubleArray getIndependentDataInfo(int i)
DataSourceIndependentgetIndependentDataInfo in interface DataSourceIndependentpublic int getIndependentArrayDimension()
DataSourceIndependentgetIndependentArrayDimension in interface DataSourceIndependentpublic DataTag getIndependentTag()
DataSourceIndependentgetIndependentTag in interface DataSourceIndependentpublic void update()
public void updateF()