DataSourceIndependent
, IDataSource
public class MeterStructureFactor extends java.lang.Object implements IDataSource, DataSourceIndependent
Modifier and Type | Class | Description |
---|---|---|
static interface |
MeterStructureFactor.AtomSignalSource |
|
static class |
MeterStructureFactor.AtomSignalSourceByType |
Modifier and Type | Field | Description |
---|---|---|
protected IAtomList |
atomList |
|
protected Box |
box |
|
protected double |
cutoff |
|
protected DataFunction |
data |
|
protected DataFunction.DataInfoFunction |
dataInfo |
|
protected boolean |
normalizeByN |
|
protected double[] |
phaseAngles |
|
protected MeterStructureFactor.AtomSignalSource |
signalSource |
|
protected Space |
space |
|
protected double[] |
struct |
|
protected DataTag |
tag |
|
protected Vector[] |
waveVec |
|
protected DataDoubleArray |
xData |
|
protected DataDoubleArray.DataInfoDoubleArray |
xDataInfo |
|
protected DataTag |
xTag |
Constructor | Description |
---|---|
MeterStructureFactor(Box aBox,
double cutoff) |
Creates meter with default to compute the structure factor for all atoms
in the box.
|
MeterStructureFactor(Box aBox,
double cutoff,
MeterStructureFactor.AtomSignalSource signalSource) |
Modifier and Type | Method | Description |
---|---|---|
double |
getCutoff() |
|
IData |
getData() |
|
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.
|
double[] |
getPhaseAngles() |
|
MeterStructureFactor.AtomSignalSource |
getSignalSource() |
|
DataTag |
getTag() |
|
Vector[] |
getWaveVectors() |
|
protected int |
makeWaveVector(double cutoff) |
|
protected void |
resetData() |
|
void |
setAtoms(IAtomList atomList) |
|
void |
setCutoff(double cutoff) |
Sets the wave vector cutoff.
|
void |
setNormalizeByN(boolean normalizeByN) |
Normalizing by N will produce a structure factor that is insensitive to
finite-size effects if there is no long-range order.
|
void |
setWaveVec(Vector[] waveVec) |
protected final Space space
protected Box box
protected double[] struct
protected Vector[] waveVec
protected IAtomList atomList
protected DataFunction data
protected DataFunction.DataInfoFunction dataInfo
protected final DataTag tag
protected final DataTag xTag
protected DataDoubleArray xData
protected DataDoubleArray.DataInfoDoubleArray xDataInfo
protected final MeterStructureFactor.AtomSignalSource signalSource
protected double cutoff
protected double[] phaseAngles
protected boolean normalizeByN
public MeterStructureFactor(Box aBox, double cutoff)
public MeterStructureFactor(Box aBox, double cutoff, MeterStructureFactor.AtomSignalSource signalSource)
public void setNormalizeByN(boolean normalizeByN)
public MeterStructureFactor.AtomSignalSource getSignalSource()
protected void resetData()
protected int makeWaveVector(double cutoff)
public void setCutoff(double cutoff)
cutoff
- the cutoff for the wave vector magnitudepublic double getCutoff()
public void setWaveVec(Vector[] waveVec)
waveVec
- Sets a custom wave vector array.public void setAtoms(IAtomList atomList)
atomList
- Sets the list of atoms for factor calculation.public IData getData()
getData
in interface IDataSource
public Vector[] getWaveVectors()
public double[] getPhaseAngles()
public DataTag getTag()
getTag
in interface IDataSource
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