DataSourceIndependent
, IDataSink
, IDataSource
, DataSourceMSD.MSDSink
public class DataSourceMSDcorP extends java.lang.Object implements IDataSink, IDataSource, DataSourceIndependent, DataSourceMSD.MSDSink
Modifier and Type | Class | Description |
---|---|---|
class |
DataSourceMSDcorP.DataSourceMSDcovP |
Returns the covariance of the MSD with P, divided by t
|
Modifier and Type | Field | Description |
---|---|---|
protected double[] |
blockSumX |
|
protected DataFunction |
covData |
|
protected DataFunction.DataInfoFunction |
covDataInfo |
|
protected DataTag |
covTag |
|
protected DataFunction |
data |
|
protected DataFunction.DataInfoFunction |
dataInfo |
|
protected boolean |
enabled |
|
protected IntegratorMD |
integrator |
|
protected double[] |
lastSampleMSD |
|
protected double[] |
lastSampleX |
|
protected long[] |
lastStepMSD |
|
protected long[] |
lastStepX |
|
protected double[] |
msd2Sum |
|
protected double[] |
msdSum |
|
protected long[] |
nBlockSamplesX |
|
protected long[] |
nSamples |
|
protected long |
step0 |
|
protected DataTag |
tag |
|
protected DataDoubleArray |
tData |
|
protected DataDoubleArray.DataInfoDoubleArray |
tDataInfo |
|
protected DataTag |
tTag |
|
protected double[] |
x2Sum |
|
protected int |
xlog2Interval |
|
protected double[] |
xmsdSum |
|
protected double[] |
xSum |
Constructor | Description |
---|---|
DataSourceMSDcorP(IntegratorMD integrator) |
|
DataSourceMSDcorP(IntegratorMD integrator,
int xlog2Interval) |
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() |
|
DataSourceMSDcorP.DataSourceMSDcovP |
makeCov() |
|
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.
|
void |
putMSD(int log2interval,
long step,
double msd) |
|
void |
reallocate(int n) |
|
void |
resetStep0() |
|
void |
setEnabled(boolean isEnabled) |
protected DataDoubleArray tData
protected DataDoubleArray.DataInfoDoubleArray tDataInfo
protected DataFunction data
protected DataFunction covData
protected DataFunction.DataInfoFunction dataInfo
protected DataFunction.DataInfoFunction covDataInfo
protected double[] msdSum
protected double[] xSum
protected double[] xmsdSum
protected double[] msd2Sum
protected double[] x2Sum
protected final DataTag tTag
protected final DataTag tag
protected final DataTag covTag
protected long[] nSamples
protected double[] lastSampleMSD
protected double[] lastSampleX
protected double[] blockSumX
protected long[] nBlockSamplesX
protected long[] lastStepMSD
protected long[] lastStepX
protected final IntegratorMD integrator
protected long step0
protected boolean enabled
protected final int xlog2Interval
public DataSourceMSDcorP(IntegratorMD integrator)
public DataSourceMSDcorP(IntegratorMD integrator, int xlog2Interval)
public void resetStep0()
public 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
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
public void putMSD(int log2interval, long step, double msd)
putMSD
in interface DataSourceMSD.MSDSink
public DataSourceMSDcorP.DataSourceMSDcovP makeCov()