org.apache.mahout.clustering.fuzzykmeans
Class SoftCluster
java.lang.Object
org.apache.mahout.clustering.AbstractCluster
org.apache.mahout.clustering.DistanceMeasureCluster
org.apache.mahout.clustering.kmeans.Cluster
org.apache.mahout.clustering.fuzzykmeans.SoftCluster
- All Implemented Interfaces:
- org.apache.hadoop.io.Writable, Cluster, Model<VectorWritable>, Parametered
public class SoftCluster
- extends Cluster
Fields inherited from interface org.apache.mahout.common.parameters.Parametered |
log |
Methods inherited from class org.apache.mahout.clustering.AbstractCluster |
asFormatString, computeCentroid, computeParameters, count, createParameters, formatVector, getCenter, getId, getNumPoints, getObservations, getParameters, getRadius, getS0, getS1, getS2, observe, observe, observe, observe, observe, observe, setCenter, setId, setNumPoints, setRadius, setS0, setS1, setS2 |
SoftCluster
public SoftCluster()
SoftCluster
public SoftCluster(Vector center,
int clusterId,
DistanceMeasure measure)
- Construct a new SoftCluster with the given point as its center
- Parameters:
center
- the center pointmeasure
- the DistanceMeasure
asFormatString
public String asFormatString()
- Overrides:
asFormatString
in class Cluster
getIdentifier
public String getIdentifier()
- Overrides:
getIdentifier
in class Cluster
pdf
public double pdf(VectorWritable vw)
- Description copied from interface:
Model
- Return the probability that the observation is described by this model
- Specified by:
pdf
in interface Model<VectorWritable>
- Overrides:
pdf
in class DistanceMeasureCluster
- 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.