DataSourceIndependent
, IDataSource
, ConfigurationStorage.ConfigurationStorageListener
public class MeterCorrelation extends java.lang.Object implements ConfigurationStorage.ConfigurationStorageListener, IDataSource, DataSourceIndependent
Modifier and Type | Class | Description |
---|---|---|
static class |
MeterCorrelation.CorrelationType |
Modifier and Type | Field | Description |
---|---|---|
protected ConfigurationStorage |
configStorage |
|
protected MeterCorrelation.CorrelationType |
correlationType |
|
protected double[][] |
corSum |
|
protected DataFunction |
data |
|
protected Vector |
dr |
|
protected double[] |
dr1SumA |
|
protected double[] |
dr1SumB |
|
protected long[] |
dr2CountA |
|
protected long[] |
dr2CountB |
|
protected double[] |
dr2SumA |
|
protected double[] |
dr2SumB |
|
protected Vector |
dri |
|
protected Vector |
drk |
|
protected long[][] |
gSum |
|
protected int |
minPrevSample |
|
protected int |
prevSampleIndex |
|
protected DataDoubleArray |
rData |
|
protected DataTag |
tag |
|
protected Vector |
tmp |
|
protected AtomType |
type1 |
|
protected AtomType |
type2 |
|
protected DataSourceUniform |
xDataSource |
|
protected double |
xMax |
Constructor | Description |
---|---|
MeterCorrelation(ConfigurationStorage configStorage) |
|
MeterCorrelation(ConfigurationStorage configStorage,
MeterCorrelation.CorrelationType cType) |
Modifier and Type | Method | Description |
---|---|---|
IData |
getData() |
Returns the RDF, averaged over the calls to actionPerformed since the
meter was reset or had some parameter changed (xMax or # of bins).
|
IDataInfo |
getDataInfo() |
|
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.
|
int |
getMinPrevSample() |
|
int |
getPrevSampleIndex() |
|
DataTag |
getTag() |
|
DataSourceUniform |
getXDataSource() |
|
void |
newConfigruation() |
|
protected void |
reallocate(int n) |
|
void |
setAtomTypes(AtomType type1,
AtomType type2) |
|
void |
setMinPrevSample(int idx) |
|
void |
setPrevSampleIndex(int idx) |
|
void |
zeroData() |
protected final ConfigurationStorage configStorage
protected final MeterCorrelation.CorrelationType correlationType
protected final DataSourceUniform xDataSource
protected final DataTag tag
protected final Vector dr
protected final Vector dri
protected final Vector drk
protected final Vector tmp
protected double[][] corSum
protected long[][] gSum
protected DataFunction data
protected DataDoubleArray rData
protected double xMax
protected AtomType type1
protected AtomType type2
protected int prevSampleIndex
protected int minPrevSample
protected double[] dr2SumA
protected double[] dr2SumB
protected double[] dr1SumA
protected double[] dr1SumB
protected long[] dr2CountA
protected long[] dr2CountB
public MeterCorrelation(ConfigurationStorage configStorage)
public MeterCorrelation(ConfigurationStorage configStorage, MeterCorrelation.CorrelationType cType)
public void setMinPrevSample(int idx)
public int getMinPrevSample()
public void setPrevSampleIndex(int idx)
public int getPrevSampleIndex()
public IDataInfo getDataInfo()
getDataInfo
in interface IDataSource
public DataTag getTag()
getTag
in interface IDataSource
protected void reallocate(int n)
public void zeroData()
public IData getData()
getData
in interface IDataSource
public DataSourceUniform getXDataSource()
public DataDoubleArray getIndependentData(int i)
DataSourceIndependent
getIndependentData
in interface DataSourceIndependent
public DataDoubleArray.DataInfoDoubleArray getIndependentDataInfo(int i)
DataSourceIndependent
getIndependentDataInfo
in interface DataSourceIndependent
public DataTag getIndependentTag()
DataSourceIndependent
getIndependentTag
in interface DataSourceIndependent
public int getIndependentArrayDimension()
DataSourceIndependent
getIndependentArrayDimension
in interface DataSourceIndependent
public void newConfigruation()
newConfigruation
in interface ConfigurationStorage.ConfigurationStorageListener