Package elki.data

Interface FeatureVector<D>

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static interface  FeatureVector.Factory<V extends FeatureVector<? extends D>,​D>
      Factory API for this feature vector.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method 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.
      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.
    • 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:
        toString in class java.lang.Object
        Returns:
        a String representation of the FeatureVector of V