public interface TemplateVector
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
templateFileNameSuffix |
Modifier and Type | Method and Description |
---|---|
boolean |
containsLabel(java.lang.String label)
tests whether there is a feature/attribute with the given label
|
int |
dim()
Gets the dimension.
|
TemplateVectorElement |
getElement(int index)
returns the template vector element for the feature/attribute at the given position
|
int |
getIndexOfFeature(java.lang.String label)
Returns the numerical index of the feature with the given name.
|
java.lang.String |
getLabel(int i)
Gets the label at the given index.
|
java.lang.String[] |
getLabels()
Gets all the labels defined in this template vector.
|
java.util.ArrayList<java.lang.String> |
getLabelsAsList()
Gets all the labels defined in this template vector as a list.
|
int |
getLongestStringLength()
calculates the length of the longest feature/attribute label
|
void |
incNumVectors(int numVectors)
Increase the num-vectors counter, used e.g.
|
int |
numinfo()
Returns how many columns the template vector contains, i.e.
|
int |
numVectors()
Return how many vectors are in the input vector file associated with this template vector
|
static final java.lang.String templateFileNameSuffix
int dim()
java.lang.String getLabel(int i)
java.lang.String[] getLabels()
java.util.ArrayList<java.lang.String> getLabelsAsList()
boolean containsLabel(java.lang.String label)
int getIndexOfFeature(java.lang.String label)
int numVectors()
int numinfo()
TemplateVectorElement getElement(int index)
int getLongestStringLength()
void incNumVectors(int numVectors)
SOMLibInputConcatenator
.