|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mahout.clustering.AbstractCluster
org.apache.mahout.clustering.DistanceMeasureCluster
org.apache.mahout.clustering.kmeans.Cluster
org.apache.mahout.clustering.fuzzykmeans.SoftCluster
public class SoftCluster
Field Summary |
---|
Fields inherited from class org.apache.mahout.clustering.DistanceMeasureCluster |
---|
measure |
Fields inherited from interface org.apache.mahout.clustering.Cluster |
---|
CLUSTERED_POINTS_DIR, CLUSTERS_DIR, INITIAL_CLUSTERS_DIR |
Constructor Summary | |
---|---|
SoftCluster()
|
|
SoftCluster(Vector center,
int clusterId,
DistanceMeasure measure)
Construct a new SoftCluster with the given point as its center |
Method Summary | |
---|---|
java.lang.String |
asFormatString()
|
java.lang.String |
getIdentifier()
|
double |
pdf(VectorWritable vw)
Return the probability that the observation is described by this model |
Methods inherited from class org.apache.mahout.clustering.kmeans.Cluster |
---|
computeConvergence, formatCluster, isConverged, readFields, setConverged, toString, write |
Methods inherited from class org.apache.mahout.clustering.DistanceMeasureCluster |
---|
getMeasure, sampleFromPosterior, setMeasure |
Methods inherited from class org.apache.mahout.clustering.AbstractCluster |
---|
asFormatString, asJsonString, computeCentroid, computeParameters, count, formatVector, getCenter, getId, getNumPoints, getObservations, getRadius, getS0, getS1, getS2, observe, observe, observe, observe, setCenter, setId, setNumPoints, setRadius |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SoftCluster()
public SoftCluster(Vector center, int clusterId, DistanceMeasure measure)
center
- the center pointmeasure
- the DistanceMeasureMethod Detail |
---|
public java.lang.String asFormatString()
asFormatString
in class Cluster
public java.lang.String getIdentifier()
getIdentifier
in class Cluster
public double pdf(VectorWritable vw)
Model
pdf
in interface Model<VectorWritable>
pdf
in class DistanceMeasureCluster
vw
- an Observation from the posterior
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |