public class LatticeSimilarityAttributeGenerator extends BaseAttributeGenerator
Similarity is computed by summing the difference in the number of faces with each number of edges between a certain Voronoi cell and that of the reference lattice. This difference is then normalized by the number of faces in the reference lattice, and averaged over all atoms to produce a "similarity index." In this form, structures based on the reference lattice have a match of 0, which becomes larger with increase dissimilarity.
For now we consider the BCC, FCC (which has the same coordination polyhedron
shape as HCP), and SC lattices.
Usage: *No options*
| Constructor and Description |
|---|
LatticeSimilarityAttributeGenerator() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttributes(Dataset data)
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 |
setOptions(java.util.List<java.lang.Object> Options)
Set any options for this object.
|
runCommandpublic void setOptions(java.util.List<java.lang.Object> Options)
throws java.lang.Exception
OptionsOptions - Array of options as Objects - can be nulljava.lang.Exception - if problem with inputspublic java.lang.String printUsage()
Optionspublic void addAttributes(Dataset data) throws java.lang.Exception
BaseAttributeGeneratoraddAttributes in class BaseAttributeGeneratordata - Dataset to be added tojava.lang.ExceptionDataset.addAttribute(java.lang.String, double[])public java.lang.String printDescription(boolean htmlFormat)
BaseAttributeGeneratorImplementation 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 BaseAttributeGeneratorhtmlFormat - Whether to print in HTML format