Class VVVFeature

  • All Implemented Interfaces:
    elki.data.FeatureVector<java.lang.Number>, elki.data.NumberVector, elki.data.spatial.SpatialComparable, AsClusterFeature, ClusterFeature

    public class VVVFeature
    extends java.lang.Object
    implements ClusterFeature
    Clustering Feature of stable BIRCH with covariance instead of variance
    Since:
    0.8.0
    Author:
    Andreas Lang
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  VVVFeature.Factory
      Factory for making cluster features.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) double[] mean
      mean
      (package private) int n
      Number of objects
      (package private) double[][] ssd
      Sum of Squared Deviations.
      • Fields inherited from interface elki.data.FeatureVector

        TYPE
      • Fields inherited from interface elki.data.NumberVector

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

      Constructors 
      Constructor Description
      VVVFeature​(int dimensionality)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete 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
      void addToStatistics​(VVVFeature other)  
      double centroid​(int i)
      Returns the mean of the specified dimension.
      double[][] covariance()
      returns the covariance matrix
      int getDimensionality()  
      int getWeight()
      Return the weight
      void resetStatistics()
      Resets all statistics of CF
      double sumdev()
      Returns the total sum of Deviations.
      double[] toArray()  
      double variance()
      Returns the total variance.
      double variance​(int d)
      Returns the variance in the specified dimension.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface elki.data.FeatureVector

        toString
      • Methods inherited from interface elki.data.NumberVector

        byteValue, floatValue, getMax, getMin, getValue, intValue, shortValue
    • Field Detail

      • n

        int n
        Number of objects
      • mean

        double[] mean
        mean
      • ssd

        double[][] ssd
        Sum of Squared Deviations.
    • Constructor Detail

      • VVVFeature

        public VVVFeature​(int dimensionality)
        Constructor.
        Parameters:
        dimensionality - Dimensionality
    • Method Detail

      • addToStatistics

        public void addToStatistics​(elki.data.NumberVector nv)
        Description copied from interface: ClusterFeature
        Add NumberVector to CF
        Specified by:
        addToStatistics in interface ClusterFeature
        Parameters:
        nv - NumberVector
      • addToStatistics

        public void addToStatistics​(VVVFeature other)
      • centroid

        public double centroid​(int i)
        Description copied from interface: ClusterFeature
        Returns the mean of the specified dimension.
        Specified by:
        centroid in interface ClusterFeature
        Parameters:
        i - dimension
        Returns:
        mean of this dimension
      • variance

        public double variance()
        Description copied from interface: ClusterFeature
        Returns the total variance.
        Specified by:
        variance in interface ClusterFeature
        Returns:
        variance.
      • sumdev

        public double sumdev()
        Description copied from interface: ClusterFeature
        Returns the total sum of Deviations.
        Specified by:
        sumdev in interface ClusterFeature
        Returns:
        Sum of Deviations.
      • variance

        public double variance​(int d)
        Description copied from interface: ClusterFeature
        Returns the variance in the specified dimension.
        Specified by:
        variance in interface ClusterFeature
        Parameters:
        d - dimension
        Returns:
        variance in this dimension.
      • covariance

        public double[][] covariance()
        Description copied from interface: ClusterFeature
        returns the covariance matrix
        Specified by:
        covariance in interface ClusterFeature
        Returns:
        covariance
      • getDimensionality

        public int getDimensionality()
        Specified by:
        getDimensionality in interface elki.data.FeatureVector<java.lang.Number>
        Specified by:
        getDimensionality in interface elki.data.spatial.SpatialComparable
      • toArray

        public double[] toArray()
        Specified by:
        toArray in interface elki.data.NumberVector