Interface ClusterFeature

  • All Superinterfaces:
    AsClusterFeature, elki.data.FeatureVector<java.lang.Number>, elki.data.NumberVector, elki.data.spatial.SpatialComparable
    All Known Implementing Classes:
    BIRCHCF, VIIFeature, VVIFeature, VVVFeature

    public interface ClusterFeature
    extends AsClusterFeature, elki.data.NumberVector
    Interface for basic ClusteringFeature functions
    Since:
    0.8.0
    Author:
    Andreas Lang
    • Field Summary

      • Fields inherited from interface elki.data.FeatureVector

        TYPE
      • Fields inherited from interface elki.data.NumberVector

        ATTRIBUTE_SEPARATOR, FIELD, FIELD_1D, FIELD_2D, VARIABLE_LENGTH
    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      void addToStatistics​(elki.data.NumberVector nv)
      Add NumberVector to CF
      void addToStatistics​(ClusterFeature other)
      Add other CF to CF
      double centroid​(int d)
      Returns the mean of the specified dimension.
      double[][] covariance()
      returns the covariance matrix
      default double doubleValue​(int dimension)  
      default ClusterFeature getCF()
      Get as clustering feature.
      int getWeight()
      Return the weight
      default long longValue​(int dimension)  
      void resetStatistics()
      Resets all statistics of CF
      double sumdev()
      Returns the total sum of Deviations.
      double variance()
      Returns the total variance.
      double variance​(int d)
      Returns the variance in the specified dimension.
      • Methods inherited from interface elki.data.FeatureVector

        getDimensionality, toString
      • Methods inherited from interface elki.data.NumberVector

        byteValue, floatValue, getMax, getMin, getValue, intValue, shortValue, toArray
      • Methods inherited from interface elki.data.spatial.SpatialComparable

        getDimensionality
    • Method Detail

      • addToStatistics

        void addToStatistics​(elki.data.NumberVector nv)
        Add NumberVector to CF
        Parameters:
        nv - NumberVector
      • addToStatistics

        void addToStatistics​(ClusterFeature other)
        Add other CF to CF
        Parameters:
        other - other CF
      • resetStatistics

        void resetStatistics()
        Resets all statistics of CF
      • getWeight

        int getWeight()
        Return the weight
        Returns:
        weight of CF
      • centroid

        double centroid​(int d)
        Returns the mean of the specified dimension.
        Parameters:
        d - dimension
        Returns:
        mean of this dimension
      • doubleValue

        default double doubleValue​(int dimension)
        Specified by:
        doubleValue in interface elki.data.NumberVector
      • longValue

        default long longValue​(int dimension)
        Specified by:
        longValue in interface elki.data.NumberVector
      • variance

        double variance()
        Returns the total variance.
        Returns:
        variance.
      • sumdev

        double sumdev()
        Returns the total sum of Deviations.
        Returns:
        Sum of Deviations.
      • variance

        double variance​(int d)
        Returns the variance in the specified dimension.
        Parameters:
        d - dimension
        Returns:
        variance in this dimension.
      • covariance

        double[][] covariance()
        returns the covariance matrix
        Returns:
        covariance