public class APRDFAttributeGenerator extends BaseAttributeGenerator implements Citable
User can specify the cutoff distance for the AP-RDF, the number of points
to evaluate it, the smoothing factors for the RDF peaks, and the properties used
for weighting. The recommended values of these parameters have yet to be determined, please
contact Logan Ward or the authors of this paper if you have questions or ideas
for these parameters.
Usage: <cutoff> <# points> <smoothing>
<properties>
Modifier and Type | Field and Description |
---|---|
protected double |
CutoffDistance
Cutoff distance for RDF
|
protected java.util.Set<java.lang.String> |
ElementalProperties
List of elemental properties to use for weighting
|
protected int |
NumPoints
Number of points to evaluate
|
protected double |
SmoothParameter
Smoothing parameter for AP-RDF
|
Constructor and Description |
---|
APRDFAttributeGenerator() |
Modifier and Type | Method and Description |
---|---|
void |
addAttributes(Dataset data)
Generate new attributes for a dataset.
|
void |
addElementalProperty(java.lang.String propertyName)
Add elemental property to set of those used for generating attributes
|
void |
clearElementalProperties()
Clear list of elemental properties.
|
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 cutoff)
Define cutoff distance for AP-RDF.
|
void |
setNumPoints(int numPoints)
Set number of distances to evaluated for AP-RDF
|
void |
setOptions(java.util.List<java.lang.Object> Options)
Set any options for this object.
|
void |
setSmoothParameter(double SmoothParameter)
Set smoothing parameter for RDF.
|
runCommand
protected double CutoffDistance
protected int NumPoints
protected double SmoothParameter
protected java.util.Set<java.lang.String> ElementalProperties
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 cutoff)
cutoff
- Desired cutoffpublic void setNumPoints(int numPoints)
numPoints
- Desired number of pointspublic void setSmoothParameter(double SmoothParameter)
SmoothParameter
- public void clearElementalProperties()
public void addElementalProperty(java.lang.String propertyName)
propertyName
- Property namepublic 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