|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mahout.clustering.dirichlet.models.AsymmetricSampledNormalModel
public class AsymmetricSampledNormalModel
Constructor Summary | |
---|---|
AsymmetricSampledNormalModel()
|
|
AsymmetricSampledNormalModel(Vector mean,
Vector stdDev)
|
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 |
Vector |
getMean()
|
Vector |
getStdDev()
|
void |
observe(VectorWritable v)
Observe the given observation, retaining information about it |
double |
pdf(VectorWritable v)
Return the probability that the observation is described by this model |
void |
readFields(java.io.DataInput in)
|
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 AsymmetricSampledNormalModel()
public AsymmetricSampledNormalModel(Vector mean, Vector stdDev)
Method Detail |
---|
public Vector getMean()
public Vector getStdDev()
public void observe(VectorWritable v)
Model
observe
in interface Model<VectorWritable>
v
- an Observation from the posteriorpublic void computeParameters()
Model
computeParameters
in interface Model<VectorWritable>
public double pdf(VectorWritable v)
Model
pdf
in interface Model<VectorWritable>
v
- an Observation from the posterior
public int count()
Model
count
in interface Model<VectorWritable>
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 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 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 |