Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

de.lmu.ifi.dbs.elki.data
Interface FeatureVector<V extends FeatureVector<V,D>,D>

Type Parameters:
V - Vector class
D - Data type
All Superinterfaces:
DatabaseObject
All Known Subinterfaces:
NumberVector<V,N>
All Known Implementing Classes:
AbstractNumberVector, BitVector, DoubleVector, FloatVector, ParameterizationFunction, SparseFloatVector

public interface FeatureVector<V extends FeatureVector<V,D>,D>
extends DatabaseObject

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

Method Summary
 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.
 V newInstance(D[] values)
          Returns a new FeatureVector of V for the given values.
 V newInstance(List<D> values)
          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.
 
Methods inherited from interface de.lmu.ifi.dbs.elki.data.DatabaseObject
equals, getID, setID
 

Method Detail

newInstance

V newInstance(D[] values)
Returns a new FeatureVector of V for the given values.

Parameters:
values - the values of the featureVector
Returns:
a new FeatureVector of V for the given values

newInstance

V newInstance(List<D> values)
Returns a new FeatureVector of V for the given values.

Parameters:
values - the values of the featureVector
Returns:
a new FeatureVector of V for the given values

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 1 ≤ dimension ≤ this.getDimensionality()
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.

Overrides:
toString in class Object
Returns:
a String representation of the FeatureVector of V

Release 0.3 (2010-03-31_1612)