- Type Parameters:
D
- Data type
- All Known Subinterfaces:
NumberVector<N>
- All Known Implementing Classes:
Vector
public interface FeatureVector<D>
Generic FeatureVector class that can contain any type of data (i.e. numerical
or categorical attributes). See
NumberVector
for vectors that
actually store numerical features.- Author:
- Erich Schubert
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
FeatureVector.Factory<V extends FeatureVector<? extends D>,
D> Factory API for this feature vector. -
Method Summary
Modifier and TypeMethodDescriptionint
The dimensionality of the vector space where of this FeatureVector of V is an element.getValue
(int dimension) Returns the value in the specified dimension.toString()
Returns a String representation of the FeatureVector of V as a line that is suitable to be printed in a sequential file.
-
Method Details
-
getDimensionality
int getDimensionality()The dimensionality of the vector space where of this FeatureVector of V is an element.- Returns:
- the number of dimensions of this FeatureVector of V
-
getValue
Returns the value in the specified dimension.- Parameters:
dimension
- the desired dimension, where 0 ≤ dimension ≤this.getDimensionality()-1
- Returns:
- the value in the specified dimension
-
toString
String toString()Returns a String representation of the FeatureVector of V as a line that is suitable to be printed in a sequential file.
-