public class IonicCompoundProximityAttributeGenerator extends BaseAttributeGenerator
This generator only computes a single attribute: the L1 distance between the composition of an entry and the nearest ionic compound (determined using IonicCompoundFinder. For compound where it is not possible to form ionic compound (e.g., only metallic elements), the entry is assigned arbitrarily large distance (equal to the number of elements in the alloy).
The one adjustable parameter in this calculation is the maximum number
of atoms per formula unit used when looking for ionic compounds. For binary
compounds, the maximum conceivable number of elements in a formula unit is
for a compound with a 9+ and a 5- species, which has 14 atoms in the formula unit.
Consequently, we recommend using 14 or larger for this parameter.
Usage: <formula unit size>
formula unit size: Maximum number of formula unit size
Constructor and Description |
---|
IonicCompoundProximityAttributeGenerator() |
Modifier and Type | Method and Description |
---|---|
void |
addAttributes(Dataset dataPtr)
Generate new attributes for a dataset.
|
java.lang.String |
printDescription(boolean htmlFormat)
Print out description of attributes.
|
java.lang.String |
printUsage()
Print out required format for options.
|
void |
setMaxFormulaUnit(int size)
Set the maximum formula unit size when searching for ionic compounds.
|
void |
setOptions(java.util.List<java.lang.Object> Options)
Set any options for this object.
|
runCommand
public IonicCompoundProximityAttributeGenerator()
public void setOptions(java.util.List<java.lang.Object> Options) throws java.lang.Exception
Options
Options
- Array of options as Objects - can be null
java.lang.Exception
- if problem with inputspublic java.lang.String printUsage()
Options
public void setMaxFormulaUnit(int size)
size
- Maximum sizeIonicCompoundFinder
public void addAttributes(Dataset dataPtr) throws java.lang.Exception
BaseAttributeGenerator
addAttributes
in class BaseAttributeGenerator
dataPtr
- 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 format