public class StoichiometricAttributeGenerator extends BaseAttributeGenerator implements Citable
Currently includes:
Usage: <p norms...>
Modifier and Type | Field and Description |
---|---|
protected java.util.Set<java.lang.Integer> |
PNorms
List of p norms to compute
|
Constructor and Description |
---|
StoichiometricAttributeGenerator() |
Modifier and Type | Method and Description |
---|---|
void |
addAttributes(Dataset data)
Generate new attributes for a dataset.
|
void |
addPNorm(int norm)
Add a p norm to be computed
|
void |
addPNorms(java.util.Collection<java.lang.Integer> norms)
Add several norms to be computed
|
void |
clearPNorms()
Clear out the list of p norms to be computed
|
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 |
setOptions(java.util.List<java.lang.Object> Options)
Set any options for this object.
|
runCommand
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 clearPNorms()
public void addPNorm(int norm) throws java.lang.Exception
norm
- Desired normjava.lang.Exception
public void addPNorms(java.util.Collection<java.lang.Integer> norms) throws java.lang.Exception
norms
- Collection of normsjava.lang.Exception
public 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