Class GvmResult<K>
- java.lang.Object
-
- org.hortonmachine.gears.utils.clustering.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 Summary
Constructors Constructor Description GvmResult()Creates an empty result object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCount()The number of points in the cluster.KgetKey()The key associated with the cluster.doublegetMass()The aggregate mass of the cluster.ObjectgetPoint()The coordinates of the cluster's centroid.GvmSpacegetSpace()doublegetStdDeviation()The standard deviation of the cluster.doublegetVariance()The variance of the cluster.voidsetCount(int count)voidsetKey(K key)Sets the key associated with the cluster.voidsetMass(double mass)Sets the aggregate mass of the cluster.voidsetPoint(Object point)Sets the coordinates of the cluster's centroid.voidsetSpace(GvmSpace space)voidsetVariance(double variance)Sets the variance of the cluster.StringtoString()
-
-
-
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.
-
getSpace
public GvmSpace getSpace()
-
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.
-
-