|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.fu_berlin.ties.classify.feature.FeatureVector
de.fu_berlin.ties.classify.feature.DefaultFeatureVector
public class DefaultFeatureVector
This feature vector implementation stores an ordered sequence of features.
Internally it uses an ArrayList
as storage.
Instances of this class are not thread-safe and must be synchronized externally, if required.
Constructor Summary | |
---|---|
DefaultFeatureVector()
Creates a new instance. |
Method Summary | |
---|---|
void |
addAll(Collection coll)
Adds all of the features in the specified Collection to this vector, in the order they are returned by the specified Collection's Iterator. |
protected Collection<Feature> |
store()
Returns the collection used for storing the features. |
Methods inherited from class de.fu_berlin.ties.classify.feature.FeatureVector |
---|
add, addAll, addAllTokens, flatten, flatten, getSummedStrength, iterator, preAddHook, setSummedStrength, size, strength, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DefaultFeatureVector()
Method Detail |
---|
public void addAll(Collection coll) throws ClassCastException
addAll
in class FeatureVector
coll
- a collection of features to add
ClassCastException
- if the collection contains elements that are
not Feature
sprotected Collection<Feature> store()
store
in class FeatureVector
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |