public interface Cluster extends Model<VectorWritable>, Parametered
Parametered.ParameteredGeneralizations
Modifier and Type | Field and Description |
---|---|
static String |
CLUSTERS_DIR |
static String |
FINAL_ITERATION_SUFFIX |
static String |
INITIAL_CLUSTERS_DIR |
log
Modifier and Type | Method and Description |
---|---|
String |
asFormatString(String[] bindings)
Produce a custom, human-friendly, printable representation of the Cluster.
|
Map<String,Object> |
asJson(String[] bindings)
Produce a JSON representation of the Cluster.
|
Vector |
getCenter()
Get the "center" of the Cluster as a Vector
|
int |
getId()
Get the id of the Cluster
|
Vector |
getRadius()
Get the "radius" of the Cluster as a Vector.
|
boolean |
isConverged() |
computeParameters, getNumObservations, getTotalObservations, observe, observe, observe, pdf, sampleFromPosterior
configure, createParameters, getParameters
static final String INITIAL_CLUSTERS_DIR
static final String CLUSTERS_DIR
static final String FINAL_ITERATION_SUFFIX
int getId()
Vector getCenter()
Vector getRadius()
String asFormatString(String[] bindings)
bindings
- an optional String[] containing labels used to format the primary
Vector/s of this implementation.Map<String,Object> asJson(String[] bindings)
bindings
- an optional String[] containing labels used to format the primary
Vector/s of this implementation.boolean isConverged()
Copyright © 2008–2015 The Apache Software Foundation. All rights reserved.