@CodeReview(reviewer="Kevin R. Dixon", date="2008-07-22", changesNeeded=false, comments="Code generally looks fine.") public class GaussianCluster extends DefaultCluster<Vector>
GaussianCluster
class implements a cluster of Vector
objects that has a MultivariateGaussian
object representing the
cluster.DEFAULT_INDEX
Constructor and Description |
---|
GaussianCluster()
Creates a new instance of GaussianCluster.
|
GaussianCluster(java.util.Collection<? extends Vector> members,
MultivariateGaussian.PDF gaussian)
Creates a new instance of GaussianCluster.
|
GaussianCluster(int index,
java.util.Collection<? extends Vector> members,
MultivariateGaussian.PDF gaussian)
Creates a new instance of GaussianCluster.
|
GaussianCluster(MultivariateGaussian.PDF gaussian)
Creates a new instance of GaussianCluster.
|
Modifier and Type | Method and Description |
---|---|
MultivariateGaussian.PDF |
getGaussian()
Gets the Gaussian that represents the cluster.
|
void |
setGaussian(MultivariateGaussian.PDF gaussian)
Sets the Gaussian representing the cluster.
|
clone, getIndex, getMembers, setIndex
public GaussianCluster()
public GaussianCluster(MultivariateGaussian.PDF gaussian)
gaussian
- The MultivariateGaussian representing the data.public GaussianCluster(java.util.Collection<? extends Vector> members, MultivariateGaussian.PDF gaussian)
members
- The members of the cluster.gaussian
- The MultivariateGaussian representing the data.public GaussianCluster(int index, java.util.Collection<? extends Vector> members, MultivariateGaussian.PDF gaussian)
index
- The index of the cluster.members
- The members of the cluster.gaussian
- The MultivariateGaussian representing the data.public MultivariateGaussian.PDF getGaussian()
public void setGaussian(MultivariateGaussian.PDF gaussian)
gaussian
- The new Gaussian to represent the cluster.