public class FeatureList extends java.lang.Object
| Constructor and Description |
|---|
FeatureList()
Creates a feature list of MaltFeatureNode objects
|
FeatureList(int size)
Creates a feature list of MaltFeatureNode objects
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
double value)
Adds an index/value pair to the feature list.
|
void |
add(MaltFeatureNode x)
Adds a MaltFeatureNode object to the feature list.
|
void |
clear()
Clears the feature list
|
MaltFeatureNode |
get(int i) |
int |
size() |
MaltFeatureNode[] |
toArray() |
public FeatureList()
public FeatureList(int size)
public void add(MaltFeatureNode x)
x - a MaltFeatureNode objectpublic void add(int index, double value)
index - a binarized feature indexvalue - a valuepublic MaltFeatureNode get(int i)
i - the position in the feature listpublic void clear()
public int size()
public MaltFeatureNode[] toArray()
Copyright 2007-2017 Johan Hall, Jens Nilsson and Joakim Nivre.