|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mahout.clustering.dirichlet.DirichletCluster<O>
public class DirichletCluster<O>
Constructor Summary | |
---|---|
DirichletCluster()
|
|
DirichletCluster(Model<O> model)
|
|
DirichletCluster(Model<O> model,
double totalCount)
|
Method Summary | ||
---|---|---|
java.lang.String |
asFormatString(java.lang.String[] bindings)
Produce a custom, printable representation of the receiver. |
|
java.lang.String |
asJsonString()
Produce a printable representation of the receiver using Json. |
|
Model<O> |
getModel()
|
|
double |
getTotalCount()
|
|
void |
readFields(java.io.DataInput in)
|
|
static
|
readModel(java.io.DataInput in)
Reads a typed Model instance from the input stream |
|
void |
setModel(Model<O> model)
|
|
void |
write(java.io.DataOutput out)
|
|
static void |
writeModel(java.io.DataOutput out,
Model<?> model)
Writes a typed Model instance to the output stream |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DirichletCluster(Model<O> model, double totalCount)
public DirichletCluster(Model<O> model)
public DirichletCluster()
Method Detail |
---|
public void readFields(java.io.DataInput in) throws java.io.IOException
readFields
in interface org.apache.hadoop.io.Writable
java.io.IOException
public void write(java.io.DataOutput out) throws java.io.IOException
write
in interface org.apache.hadoop.io.Writable
java.io.IOException
public Model<O> getModel()
public void setModel(Model<O> model)
public double getTotalCount()
public static <O> Model<O> readModel(java.io.DataInput in) throws java.io.IOException
java.io.IOException
public static void writeModel(java.io.DataOutput out, Model<?> model) throws java.io.IOException
java.io.IOException
public java.lang.String asFormatString(java.lang.String[] bindings)
Printable
asFormatString
in interface Printable
bindings
- an optional String[] containing labels used to format the primary Vector/s of this
implementation.
public java.lang.String asJsonString()
Printable
asJsonString
in interface Printable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |