IAction
, DataSourceIndependent
, IDataSource
MeterCavity
, MeterRDFCylinder
public class MeterRDF extends java.lang.Object implements IAction, IDataSource, DataSourceIndependent
Modifier and Type | Field | Description |
---|---|---|
protected Box |
box |
|
protected long |
callCount |
|
protected DataFunction |
data |
|
protected Vector |
dr |
|
protected long[] |
gSum |
|
protected AtomsetIteratorBoxDependent |
iterator |
|
protected DataDoubleArray |
rData |
|
protected boolean |
resetAfterData |
|
protected boolean |
singleSample |
|
protected Space |
space |
|
protected DataTag |
tag |
|
protected AtomType |
type1 |
|
protected AtomType |
type2 |
|
protected DataSourceUniform |
xDataSource |
|
protected double |
xMax |
Constructor | Description |
---|---|
MeterRDF(Space space) |
Creates meter with default to compute pair correlation for all
leaf atoms in a box.
|
MeterRDF(Space space,
boolean singleSample) |
Modifier and Type | Method | Description |
---|---|---|
void |
actionPerformed() |
Takes the RDF for the current configuration of the given box.
|
Box |
getBox() |
|
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.
|
java.lang.String |
getName() |
|
DataTag |
getTag() |
|
DataSourceUniform |
getXDataSource() |
|
void |
reset() |
Zero's out the RDF sum tracked by this meter.
|
void |
setAtomType(AtomType type) |
|
void |
setAtomTypes(AtomType type1,
AtomType type2) |
|
void |
setBox(Box box) |
|
void |
setName(java.lang.String name) |
|
void |
zeroData() |
protected final Space space
protected final DataSourceUniform xDataSource
protected final DataTag tag
protected final Vector dr
protected Box box
protected long[] gSum
protected DataFunction data
protected DataDoubleArray rData
protected AtomsetIteratorBoxDependent iterator
protected double xMax
protected long callCount
protected AtomType type1
protected AtomType type2
protected boolean resetAfterData
protected final boolean singleSample
public MeterRDF(Space space)
space
- public MeterRDF(Space space, boolean singleSample)
public IDataInfo getDataInfo()
getDataInfo
in interface IDataSource
public DataTag getTag()
getTag
in interface IDataSource
public void setAtomType(AtomType type)
public void reset()
public void zeroData()
public void actionPerformed()
actionPerformed
in interface IAction
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 Box getBox()
public void setBox(Box box)
box
- The box to set.public java.lang.String getName()
public void setName(java.lang.String name)