DataSourceIndependent
, IDataSource
, java.io.Serializable
public 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 IDataSource
public DataTag getTag()
getTag
in interface IDataSource
public DataSourceUniform getXSource()
public IData getData()
getData
in interface IDataSource
public 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)
DataSourceIndependent
getIndependentData
in interface DataSourceIndependent
public DataDoubleArray.DataInfoDoubleArray getIndependentDataInfo(int i)
DataSourceIndependent
getIndependentDataInfo
in interface DataSourceIndependent
public int getIndependentArrayDimension()
DataSourceIndependent
getIndependentArrayDimension
in interface DataSourceIndependent
public DataTag getIndependentTag()
DataSourceIndependent
getIndependentTag
in interface DataSourceIndependent
public void update()
public void updateF()