Class VVIFeature

    • Field Detail

      • n

        int n
        Number of objects
      • mean

        double[] mean
        mean
      • ssd

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

      • VVIFeature

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

      • addToStatistics

        public void addToStatistics​(VVIFeature 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
      • sumOfSquaredDev

        public double sumOfSquaredDev​(int i)
        Sum of Squared Deviations.
        Returns:
        Sum of Squared Deviations.
      • getDimensionality

        public int getDimensionality()
        Description copied from interface: FeatureVector
        The dimensionality of the vector space where of this FeatureVector of V is an element.
        Specified by:
        getDimensionality in interface FeatureVector<java.lang.Number>
        Specified by:
        getDimensionality in interface SpatialComparable
        Returns:
        the number of dimensions of this FeatureVector of V
      • toArray

        public double[] toArray()
        Description copied from interface: NumberVector
        Returns a double array copy of this vector.
        Specified by:
        toArray in interface NumberVector
        Returns:
        Copy as double[]