public class PRDFAttributeGenerator extends BaseAttributeGenerator implements Citable
Usage: <cutoff distance> <n steps> $<dataset>
cutoff distance: Maximum distance to consider
n steps: Number of distance points along axis to sample
dataset: CompositionDataset containing list
of ElementList to be considered in PRDF. Usually, this is the dataset
you will be computing attributes for
Modifier and Type | Field and Description |
---|---|
protected double |
CutoffDistance
Cutoff distance for PRDF
|
protected java.util.SortedSet<java.lang.Integer> |
ElementList
List of ElementList to use in PRDF
|
protected int |
NPoints
Number of distance points to evaluate
|
Constructor and Description |
---|
PRDFAttributeGenerator() |
Modifier and Type | Method and Description |
---|---|
void |
addAttributes(Dataset data)
Generate new attributes for a dataset.
|
void |
addElement(int elem)
Add element to list used when computing PRDF
|
void |
addElement(java.lang.String elem)
Add element to list used when computing PRDF
|
void |
clearElementList()
Clear list of elements used when computing PRDF
|
java.util.List<org.apache.commons.lang3.tuple.Pair<java.lang.String,Citation>> |
getCitations()
Return a list of citations for this object and any underlying objects.
|
java.lang.String |
printDescription(boolean htmlFormat)
Print out description of attributes.
|
java.lang.String |
printUsage()
Print out required format for options.
|
void |
setCutoffDistance(double cutoffDistance)
Define the maximum distance to consider when computing the PRDF
|
void |
setElements(CompositionDataset data)
Set the elements when computing PRDF
|
void |
setNPoints(int NPoints)
Define the number of points on each PRDF to store
|
void |
setOptions(java.util.List<java.lang.Object> Options)
Set any options for this object.
|
runCommand
protected double CutoffDistance
protected int NPoints
protected final java.util.SortedSet<java.lang.Integer> ElementList
public void setOptions(java.util.List<java.lang.Object> Options) throws java.lang.Exception
Options
setOptions
in interface Options
Options
- Array of options as Objects - can be null
java.lang.Exception
- if problem with inputspublic java.lang.String printUsage()
Options
printUsage
in interface Options
public void setCutoffDistance(double cutoffDistance)
cutoffDistance
- Desired cutoff distancepublic void setNPoints(int NPoints)
NPoints
- Number of evaluation pointspublic void clearElementList()
public void setElements(CompositionDataset data)
data
- Dataset containing each element to bepublic void addElement(int elem)
elem
- ID of element (Atomic number - 1)public void addElement(java.lang.String elem)
elem
- Abbreviation of element (e.g., "Al")public void addAttributes(Dataset data) throws java.lang.Exception
BaseAttributeGenerator
addAttributes
in class BaseAttributeGenerator
data
- Dataset to be added tojava.lang.Exception
Dataset.addAttribute(java.lang.String, double[])
public java.lang.String printDescription(boolean htmlFormat)
BaseAttributeGenerator
Implementation Notes
Format should look like
[Full Name of generator]: (Number of attributes) Text description of what these attributes are
For HTML format, omit the ":".
printDescription
in class BaseAttributeGenerator
htmlFormat
- Whether to print in HTML formatpublic java.util.List<org.apache.commons.lang3.tuple.Pair<java.lang.String,Citation>> getCitations()
Citable
getCitations
in interface Citable