Package elki.data
Interface FeatureVector<D>
-
- All Known Subinterfaces:
ClusterFeature,DiscreteUncertainObject,NumberVector,SparseFeatureVector<D>,SparseNumberVector,UncertainObject
- All Known Implementing Classes:
AbstractUncertainObject,ALOCI.Node,BIRCHCF,BitVector,ByteVector,Centroid,DeLiCluLeafEntry,DoubleVector,FloatVector,IntegerVector,OneDimensionalDoubleVector,ProjectedCentroid,RdKNNLeafEntry,ShortVector,SimpleGaussianContinuousUncertainObject,SparseByteVector,SparseDoubleVector,SparseFloatVector,SparseIntegerVector,SparseShortVector,SpatialPointLeafEntry,UniformContinuousUncertainObject,UnweightedDiscreteUncertainObject,VIIFeature,VVIFeature,VVVFeature,WeightedDiscreteUncertainObject
public interface FeatureVector<D>Generic FeatureVector class that can contain any type of data (i.e. numerical or categorical attributes). SeeNumberVectorfor vectors that actually store numerical features.- Since:
- 0.1
- Author:
- Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceFeatureVector.Factory<V extends FeatureVector<? extends D>,D>Factory API for this feature vector.
-
Field Summary
Fields Modifier and Type Field Description static VectorTypeInformation<FeatureVector<?>>TYPEInput type: Any feature vector type.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetDimensionality()The dimensionality of the vector space where of this FeatureVector of V is an element.DgetValue(int dimension)Returns the value in the specified dimension.java.lang.StringtoString()Returns a String representation of the FeatureVector of V as a line that is suitable to be printed in a sequential file.
-
-
-
Field Detail
-
TYPE
static final VectorTypeInformation<FeatureVector<?>> TYPE
Input type: Any feature vector type.
-
-
Method Detail
-
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
D getValue(int dimension)
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
java.lang.String toString()
Returns a String representation of the FeatureVector of V as a line that is suitable to be printed in a sequential file.- Overrides:
toStringin classjava.lang.Object- Returns:
- a String representation of the FeatureVector of V
-
-