org.apache.mahout.clustering.dirichlet.models
Class GaussianCluster
java.lang.Object
org.apache.mahout.clustering.AbstractCluster
org.apache.mahout.clustering.dirichlet.models.GaussianCluster
- All Implemented Interfaces:
- org.apache.hadoop.io.Writable, Cluster, Model<VectorWritable>, Parametered
public class GaussianCluster
- extends AbstractCluster
Fields inherited from interface org.apache.mahout.common.parameters.Parametered |
log |
Methods inherited from class org.apache.mahout.clustering.AbstractCluster |
asFormatString, computeCentroid, computeParameters, configure, count, createParameters, formatVector, getCenter, getId, getNumPoints, getObservations, getParameters, getRadius, getS0, getS1, getS2, isConverged, observe, observe, observe, observe, observe, observe, readFields, setCenter, setId, setNumPoints, setS0, setS1, setS2, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GaussianCluster
public GaussianCluster()
GaussianCluster
public GaussianCluster(Vector point,
int id2)
GaussianCluster
public GaussianCluster(Vector center,
Vector radius,
int id)
getIdentifier
public String getIdentifier()
- Specified by:
getIdentifier
in class AbstractCluster
sampleFromPosterior
public Model<VectorWritable> sampleFromPosterior()
- Returns:
- a sample of my posterior model
setRadius
protected void setRadius(Vector s2)
- Overrides:
setRadius
in class AbstractCluster
- Parameters:
s2
- the radius to set
pdf
public double pdf(VectorWritable vw)
- Description copied from interface:
Model
- Return the probability that the observation is described by this model
- Parameters:
vw
- an Observation from the posterior
- Returns:
- the probability that x is in the receiver
Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.