|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TemplateVector
The template vector provides the attribute structure of the input vectors used for the training process of a Self-Organizing Map. It is usually written by a parser or vector generator program creating the vector structure.
Field Summary | |
---|---|
static String |
templateFileNameSuffix
|
Method Summary | |
---|---|
boolean |
containsLabel(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(String label)
Returns the numerical index of the feature with the given name. |
String |
getLabel(int i)
Gets the label at the given index. |
String[] |
getLabels()
Gets all the labels defined in this template vector. |
ArrayList<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 |
Field Detail |
---|
static final String templateFileNameSuffix
Method Detail |
---|
int dim()
String getLabel(int i)
String[] getLabels()
ArrayList<String> getLabelsAsList()
boolean containsLabel(String label)
int getIndexOfFeature(String label)
int numVectors()
int numinfo()
TemplateVectorElement getElement(int index)
int getLongestStringLength()
void incNumVectors(int numVectors)
SOMLibInputMerger
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |