V
- Vector classD
- Data typepublic interface FeatureVector<V extends FeatureVector<? extends V,D>,D>
NumberVector
for vectors that
actually store numerical features.Modifier and Type | Method and Description |
---|---|
int |
getDimensionality()
The dimensionality of the vector space where of this FeatureVector of V is
an element.
|
D |
getValue(int dimension)
Returns the value in the specified dimension.
|
<A> V |
newFeatureVector(A array,
ArrayAdapter<D,A> adapter)
Returns a new FeatureVector of V for the given values.
|
String |
toString()
Returns a String representation of the FeatureVector of V as a line that is
suitable to be printed in a sequential file.
|
int getDimensionality()
D getValue(int dimension)
dimension
- the desired dimension, where 1 ≤ dimension ≤
this.getDimensionality()
String toString()
<A> V newFeatureVector(A array, ArrayAdapter<D,A> adapter)
A
- Array typearray
- the values of the featureVectoradapter
- adapter class