Interface ClusterFeature

    • Method Detail

      • addToStatistics

        void addToStatistics​(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)
        Description copied from interface: NumberVector
        Returns the value in the specified dimension as double.

        Note: this might seem redundant with respect to getValue(dim).doubleValue(), but usually this is much more efficient due to boxing/unboxing cost.

        Specified by:
        doubleValue in interface NumberVector
        Parameters:
        dimension - the desired dimension, where 0 ≤ dimension < this.getDimensionality()
        Returns:
        the value in the specified dimension
      • longValue

        default long longValue​(int dimension)
        Description copied from interface: NumberVector
        Returns the value in the specified dimension as long.

        Note: this might seem redundant with respect to getValue(dim).longValue(), but usually this is much more efficient due to boxing/unboxing cost.

        Specified by:
        longValue in interface NumberVector
        Parameters:
        dimension - the desired dimension, where 0 ≤ dimension < this.getDimensionality()
        Returns:
        the value in the specified dimension
      • 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