|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Cluster
Implementations of this interface have a printable representation and certain attributes that are common across all clustering implementations
Field Summary | |
---|---|
static java.lang.String |
CLUSTERED_POINTS_DIR
|
static java.lang.String |
CLUSTERS_DIR
|
static java.lang.String |
INITIAL_CLUSTERS_DIR
|
Method Summary | |
---|---|
java.lang.String |
asFormatString(java.lang.String[] bindings)
Produce a custom, human-friendly, printable representation of the Cluster. |
java.lang.String |
asJsonString()
Produce a textual representation of the Cluster using Json format. |
Vector |
getCenter()
Get the "center" of the Cluster as a Vector |
int |
getId()
Get the id of the Cluster |
int |
getNumPoints()
Get an integer denoting the number of points observed by this cluster |
Vector |
getRadius()
Get the "radius" of the Cluster as a Vector. |
Methods inherited from interface org.apache.mahout.clustering.Model |
---|
computeParameters, count, observe, pdf, sampleFromPosterior |
Methods inherited from interface org.apache.hadoop.io.Writable |
---|
readFields, write |
Field Detail |
---|
static final java.lang.String CLUSTERED_POINTS_DIR
static final java.lang.String INITIAL_CLUSTERS_DIR
static final java.lang.String CLUSTERS_DIR
Method Detail |
---|
int getId()
Vector getCenter()
Vector getRadius()
int getNumPoints()
java.lang.String asFormatString(java.lang.String[] bindings)
bindings
- an optional String[] containing labels used to format the primary Vector/s of this
implementation.
java.lang.String asJsonString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |