public class SingleSiteAttributeGenerator extends BaseAttributeGenerator
If there is only one site in a group, the mean elemental property
of atoms on that site is used. If there are multiple sites, then
the maximum, minimum, mean, mean absolute deviation, and range are reported
(following a similar strategy to ElementalPropertyAttributeGenerator).
Usage: *No options*
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<java.lang.String> |
ElementalProperties
List of properties used to compute attributes
|
protected java.util.List<java.lang.String> |
MultipleSites
List of groups with a multiple site
|
protected java.util.List<java.lang.String> |
SingleSites
List of groups with a single site
|
| Constructor and Description |
|---|
SingleSiteAttributeGenerator() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttributes(Dataset dataPtr)
Generate new attributes for a dataset.
|
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.
|
protected java.lang.String |
printElementalProperties(boolean htmlFormat)
Print list of elemental properties used in computing 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.
|
runCommandprotected java.util.List<java.lang.String> ElementalProperties
protected java.util.List<java.lang.String> SingleSites
protected java.util.List<java.lang.String> MultipleSites
public 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 dataPtr) throws java.lang.Exception
BaseAttributeGeneratoraddAttributes in class BaseAttributeGeneratordataPtr - Dataset to be added tojava.lang.ExceptionDataset.addAttribute(java.lang.String, double[])protected void generateAttributes(PrototypeSiteInformation siteInfo, PrototypeEntry entry, PrototypeDataset data, double[] attrs) throws java.lang.Exception
siteInfo - 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.Exceptionprotected java.util.List<java.lang.String> generateAttributeNames(PrototypeSiteInformation siteInfo)
siteInfo - Information about sites in this prototype structurepublic 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 formatprotected java.lang.String printElementalProperties(boolean htmlFormat)
htmlFormat - Whether to use HTML format