|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mahout.clustering.dirichlet.models.L1Model
public class L1Model
Constructor Summary | |
---|---|
L1Model()
|
|
L1Model(Vector v)
|
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. |
void |
computeParameters()
Compute a new set of posterior parameters based upon the Observations that have been observed since my creation |
int |
count()
Return the number of observations that have been observed by this model |
void |
observe(VectorWritable x)
Observe the given observation, retaining information about it |
double |
pdf(VectorWritable x)
Return the probability that the observation is described by this model |
void |
readFields(java.io.DataInput in)
|
L1Model |
sample()
|
java.lang.String |
toString()
|
void |
write(java.io.DataOutput out)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public L1Model()
public L1Model(Vector v)
Method Detail |
---|
public void computeParameters()
Model
computeParameters
in interface Model<VectorWritable>
public int count()
Model
count
in interface Model<VectorWritable>
public void observe(VectorWritable x)
Model
observe
in interface Model<VectorWritable>
x
- an Observation from the posteriorpublic double pdf(VectorWritable x)
Model
pdf
in interface Model<VectorWritable>
x
- an Observation from the posterior
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 L1Model sample()
public java.lang.String toString()
toString
in class java.lang.Object
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 |