public class SoftCluster extends Kluster
Parametered.ParameteredGeneralizations
CLUSTERS_DIR, FINAL_ITERATION_SUFFIX, INITIAL_CLUSTERS_DIR
log
Constructor and Description |
---|
SoftCluster() |
SoftCluster(Vector center,
int clusterId,
DistanceMeasure measure)
Construct a new SoftCluster with the given point as its center
|
Modifier and Type | Method and Description |
---|---|
String |
asFormatString() |
String |
getIdentifier() |
double |
pdf(VectorWritable vw)
Return the probability that the observation is described by this model
|
calculateConvergence, computeConvergence, formatCluster, isConverged, readFields, setConverged, toString, write
configure, getMeasure, sampleFromPosterior, setMeasure
asFormatString, asJson, computeCentroid, computeParameters, createParameters, formatVector, formatVectorAsJson, getCenter, getId, getNumObservations, getParameters, getRadius, getS0, getS1, getS2, getTotalObservations, observe, observe, observe, observe, observe, setCenter, setId, setNumObservations, setRadius, setS0, setS1, setS2, setTotalObservations
public SoftCluster()
public SoftCluster(Vector center, int clusterId, DistanceMeasure measure)
center
- the center pointmeasure
- the DistanceMeasurepublic String asFormatString()
asFormatString
in class Kluster
public String getIdentifier()
getIdentifier
in class Kluster
public double pdf(VectorWritable vw)
Model
pdf
in interface Model<VectorWritable>
pdf
in class DistanceMeasureCluster
vw
- an Observation from the posteriorCopyright © 2008–2015 The Apache Software Foundation. All rights reserved.