Class GvmResult<K>

  • Type Parameters:
    K - the key type

    public class GvmResult<K>
    extends Object
    A snapshot of a cluster that has been produced as the result of clustering a number of coordinates.
    Author:
    Tom Gibara
    • Constructor Detail

      • GvmResult

        public GvmResult()
        Creates an empty result object
    • Method Detail

      • getCount

        public int getCount()
        The number of points in the cluster.
      • setCount

        public void setCount​(int count)
      • getMass

        public double getMass()
        The aggregate mass of the cluster.
      • setMass

        public void setMass​(double mass)
        Sets the aggregate mass of the cluster.
      • setSpace

        public void setSpace​(GvmSpace space)
      • getPoint

        public Object getPoint()
        The coordinates of the cluster's centroid. The returned array should not be modified.
      • setPoint

        public void setPoint​(Object point)
        Sets the coordinates of the cluster's centroid. The values of the supplied point are copied.
      • getVariance

        public double getVariance()
        The variance of the cluster.
      • getStdDeviation

        public double getStdDeviation()
        The standard deviation of the cluster.
      • setVariance

        public void setVariance​(double variance)
        Sets the variance of the cluster.
      • getKey

        public K getKey()
        The key associated with the cluster.
      • setKey

        public void setKey​(K key)
        Sets the key associated with the cluster.