DataSourceIndependent
, IDataSource
, ConfigurationStorage.ConfigurationStorageListener
public class MeterGs extends java.lang.Object implements ConfigurationStorage.ConfigurationStorageListener, IDataSource, DataSourceIndependent
Modifier and Type | Field | Description |
---|---|---|
protected int |
configIndex |
|
protected ConfigurationStorage |
configStorage |
|
protected DataFunction |
data |
|
protected IDataInfo |
dataInfo |
|
protected Vector |
dr |
|
protected Vector |
dri |
|
protected Vector |
drj |
|
protected long[][] |
gsSum |
|
protected int |
minConfigIndex |
|
protected long[] |
numSamples |
|
protected DataTag |
tag |
|
protected Vector |
tmp |
|
protected AtomType |
type |
|
protected DataSourceUniform |
xDataSource |
|
protected double |
xMax |
Constructor | Description |
---|---|
MeterGs(ConfigurationStorage configStorage) |
Modifier and Type | Method | Description |
---|---|---|
int |
getConfigIndex() |
|
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 |
getMinConfigIndex() |
|
DataTag |
getTag() |
|
DataSourceUniform |
getXDataSource() |
|
void |
newConfigruation() |
|
protected void |
reallocate(int n) |
|
void |
setAtomTypes(AtomType type) |
|
void |
setConfigIndex(int idx) |
|
void |
setMinConfigIndex(int idx) |
|
void |
zeroData() |
Zero's out the RDF sum tracked by this meter.
|
protected final ConfigurationStorage configStorage
protected final DataSourceUniform xDataSource
protected final DataTag tag
protected final Vector dr
protected final Vector dri
protected final Vector drj
protected final Vector tmp
protected int minConfigIndex
protected int configIndex
protected long[][] gsSum
protected DataFunction data
protected double xMax
protected AtomType type
protected IDataInfo dataInfo
protected long[] numSamples
public MeterGs(ConfigurationStorage configStorage)
protected void reallocate(int n)
public void setMinConfigIndex(int idx)
public int getMinConfigIndex()
public void setConfigIndex(int idx)
public int getConfigIndex()
public IDataInfo getDataInfo()
getDataInfo
in interface IDataSource
public DataTag getTag()
getTag
in interface IDataSource
public void setAtomTypes(AtomType type)
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