org.apache.mahout.clustering.dirichlet.models
Class GaussianCluster

java.lang.Object
  extended by org.apache.mahout.clustering.AbstractCluster
      extended by org.apache.mahout.clustering.dirichlet.models.GaussianCluster
All Implemented Interfaces:
org.apache.hadoop.io.Writable, Cluster, Model<VectorWritable>, Parametered

public class GaussianCluster
extends AbstractCluster


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.mahout.common.parameters.Parametered
Parametered.ParameteredGeneralizations
 
Field Summary
 
Fields inherited from interface org.apache.mahout.clustering.Cluster
CLUSTERED_POINTS_DIR, CLUSTERS_DIR, FINAL_ITERATION_SUFFIX, INITIAL_CLUSTERS_DIR
 
Fields inherited from interface org.apache.mahout.common.parameters.Parametered
log
 
Constructor Summary
GaussianCluster()
           
GaussianCluster(Vector point, int id2)
           
GaussianCluster(Vector center, Vector radius, int id)
           
 
Method Summary
 String getIdentifier()
           
 double pdf(VectorWritable vw)
          Return the probability that the observation is described by this model
 Model<VectorWritable> sampleFromPosterior()
           
protected  void setRadius(Vector s2)
           
 
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
 

Constructor Detail

GaussianCluster

public GaussianCluster()

GaussianCluster

public GaussianCluster(Vector point,
                       int id2)

GaussianCluster

public GaussianCluster(Vector center,
                       Vector radius,
                       int id)
Method Detail

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.