Module math

Interface FeatureVector<D>

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

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Factory API for this feature vector.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    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.
    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

      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

      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