public class PairSiteAttributeGenerator extends SingleSiteAttributeGenerator
If there is only one site in a group, the mean elemental property of atoms on that site is used to describe it. If there are multiple sites in a group, then the maximum, mean, and minimum of that property is used to describe the site. The difference between all descriptions of each site group are used to compute attributes. Both the absolute value of the difference and the magnitude of the difference are generated.
Example: For a material with stoichiometry (AA')B2 there are two
groups of sites: (1) The group including the A and A' sites, and (2) the B site.
This class will generate 3 attributes. B-min(AA'), B-mean(AA'), and B-max(AA')
Usage: *No options*
PrototypeDataset,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected PrototypeSiteInformation |
SiteInfo
Information of this particular prototype
|
ElementalProperties, MultipleSites, SingleSites| Constructor and Description |
|---|
PairSiteAttributeGenerator() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.List<java.lang.String> |
generateAttributeNames(PrototypeSiteInformation siteInfo)
Generate names of attributes
|
protected void |
generateAttributes(PrototypeSiteInformation siteInfo,
PrototypeEntry entry,
PrototypeDataset data,
double[] attrs)
Compute attributes for a single entry
|
java.lang.String |
printDescription(boolean htmlFormat)
Print out description of attributes.
|
addAttributes, printElementalProperties, printUsage, setOptionsrunCommandprotected PrototypeSiteInformation SiteInfo
protected java.util.List<java.lang.String> generateAttributeNames(PrototypeSiteInformation siteInfo)
SingleSiteAttributeGeneratorgenerateAttributeNames in class SingleSiteAttributeGeneratorsiteInfo - Information about sites in this prototype structureprotected void generateAttributes(PrototypeSiteInformation siteInfo, PrototypeEntry entry, PrototypeDataset data, double[] attrs) throws java.lang.Exception
SingleSiteAttributeGeneratorgenerateAttributes in class SingleSiteAttributeGeneratorsiteInfo - Information each site in this protoypeentry - Entry being computeddata - Dataset (link to property lookup tables)attrs - [out] Temporary storage for attributes (to avoid recreating N double[] arrays)java.lang.Exceptionpublic 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 SingleSiteAttributeGeneratorhtmlFormat - Whether to print in HTML format