DataSourceIndependent
, IDataSink
, IDataSource
DataSourceCorMSD
public class DataSourceBlockAvgCor extends java.lang.Object implements IDataSink, IDataSource, DataSourceIndependent
Modifier and Type | Field | Description |
---|---|---|
protected double[] |
blockSumX |
|
protected DataFunction |
corPData |
|
protected DataFunction.DataInfoFunction |
corPDataInfo |
|
protected DataTag |
corPTag |
|
protected double[] |
corSumX |
|
protected boolean |
enabled |
|
protected double[] |
firstSampleX |
|
protected IntegratorMD |
integrator |
|
protected double[] |
lastSampleX |
|
protected int |
minInterval |
|
protected long[] |
nSamplesCorX |
|
protected long |
step0 |
|
protected DataDoubleArray |
tData |
|
protected DataDoubleArray.DataInfoDoubleArray |
tDataInfo |
|
protected DataTag |
tTag |
|
protected double[] |
x2Sum |
|
protected double[] |
xSum |
Constructor | Description |
---|---|
DataSourceBlockAvgCor(IntegratorMD integrator) |
Modifier and Type | Method | Description |
---|---|---|
IData |
getData() |
|
IDataInfo |
getDataInfo() |
|
boolean |
getEnabled() |
|
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() |
|
protected double |
processData(int interval,
long step,
double blockAvg) |
|
void |
putData(IData inputData) |
Gives data to DataSink for processing, display, or whatever it does.
|
void |
putDataInfo(IDataInfo inputDataInfo) |
Informs the DataSink of the type of Data it should expect to receive.
|
protected void |
reallocate(int n) |
|
void |
resetStep0() |
|
void |
setEnabled(boolean isEnabled) |
|
void |
setMinInterval(int minInterval) |
protected DataDoubleArray tData
protected DataDoubleArray.DataInfoDoubleArray tDataInfo
protected DataFunction corPData
protected DataFunction.DataInfoFunction corPDataInfo
protected double[] xSum
protected double[] x2Sum
protected final DataTag tTag
protected final DataTag corPTag
protected long[] nSamplesCorX
protected double[] lastSampleX
protected double[] firstSampleX
protected double[] blockSumX
protected double[] corSumX
protected final IntegratorMD integrator
protected long step0
protected boolean enabled
protected int minInterval
public DataSourceBlockAvgCor(IntegratorMD integrator)
public void setMinInterval(int minInterval)
public void resetStep0()
protected void reallocate(int n)
public void setEnabled(boolean isEnabled)
public boolean getEnabled()
public IData getData()
getData
in interface IDataSource
public DataTag getTag()
getTag
in interface IDataSource
public void putData(IData inputData)
IDataSink
protected double processData(int interval, long step, double blockAvg)
public void putDataInfo(IDataInfo inputDataInfo)
IDataSink
putDataInfo
in interface IDataSink
public IDataInfo getDataInfo()
getDataInfo
in interface IDataSource
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