gov.sandia.cognition.learning.algorithm.clustering.cluster
Class GaussianCluster

java.lang.Object
  extended by gov.sandia.cognition.util.AbstractCloneableSerializable
      extended by gov.sandia.cognition.learning.algorithm.clustering.cluster.DefaultCluster<Vector>
          extended by gov.sandia.cognition.learning.algorithm.clustering.cluster.GaussianCluster
All Implemented Interfaces:
Cluster<Vector>, CloneableSerializable, Serializable, Cloneable

@CodeReview(reviewer="Kevin R. Dixon",
            date="2008-07-22",
            changesNeeded=false,
            comments="Code generally looks fine.")
public class GaussianCluster
extends DefaultCluster<Vector>

The GaussianCluster class implements a cluster of Vector objects that has a MultivariateGaussian object representing the cluster.

Since:
1.0
Author:
Justin Basilico
See Also:
Serialized Form

Field Summary
 
Fields inherited from class gov.sandia.cognition.learning.algorithm.clustering.cluster.DefaultCluster
DEFAULT_INDEX
 
Constructor Summary
GaussianCluster()
          Creates a new instance of GaussianCluster.
GaussianCluster(Collection<? extends Vector> members, MultivariateGaussian.PDF gaussian)
          Creates a new instance of GaussianCluster.
GaussianCluster(int index, Collection<? extends Vector> members, MultivariateGaussian.PDF gaussian)
          Creates a new instance of GaussianCluster.
GaussianCluster(MultivariateGaussian.PDF gaussian)
          Creates a new instance of GaussianCluster.
 
Method Summary
 MultivariateGaussian.PDF getGaussian()
          Gets the Gaussian that represents the cluster.
 void setGaussian(MultivariateGaussian.PDF gaussian)
          Sets the Gaussian representing the cluster.
 
Methods inherited from class gov.sandia.cognition.learning.algorithm.clustering.cluster.DefaultCluster
clone, getIndex, getMembers, setIndex
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GaussianCluster

public GaussianCluster()
Creates a new instance of GaussianCluster.


GaussianCluster

public GaussianCluster(MultivariateGaussian.PDF gaussian)
Creates a new instance of GaussianCluster.

Parameters:
gaussian - The MultivariateGaussian representing the data.

GaussianCluster

public GaussianCluster(Collection<? extends Vector> members,
                       MultivariateGaussian.PDF gaussian)
Creates a new instance of GaussianCluster.

Parameters:
members - The members of the cluster.
gaussian - The MultivariateGaussian representing the data.

GaussianCluster

public GaussianCluster(int index,
                       Collection<? extends Vector> members,
                       MultivariateGaussian.PDF gaussian)
Creates a new instance of GaussianCluster.

Parameters:
index - The index of the cluster.
members - The members of the cluster.
gaussian - The MultivariateGaussian representing the data.
Method Detail

getGaussian

public MultivariateGaussian.PDF getGaussian()
Gets the Gaussian that represents the cluster.

Returns:
The Gaussian representing the cluster.

setGaussian

public void setGaussian(MultivariateGaussian.PDF gaussian)
Sets the Gaussian representing the cluster.

Parameters:
gaussian - The new Gaussian to represent the cluster.