org.apache.mahout.clustering.dirichlet.models
Class SampledNormalModel

java.lang.Object
  extended by org.apache.mahout.clustering.dirichlet.models.NormalModel
      extended by org.apache.mahout.clustering.dirichlet.models.SampledNormalModel
All Implemented Interfaces:
org.apache.hadoop.io.Writable, Model<VectorWritable>, Printable

public class SampledNormalModel
extends NormalModel


Constructor Summary
SampledNormalModel()
           
SampledNormalModel(Vector mean, double sd)
           
 
Method Summary
 java.lang.String asFormatString(java.lang.String[] bindings)
          Produce a custom, printable representation of the receiver.
 NormalModel sample()
          Return an instance with the same parameters
 java.lang.String toString()
           
 
Methods inherited from class org.apache.mahout.clustering.dirichlet.models.NormalModel
asJsonString, computeParameters, count, getMean, getStdDev, observe, pdf, readFields, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SampledNormalModel

public SampledNormalModel()

SampledNormalModel

public SampledNormalModel(Vector mean,
                          double sd)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class NormalModel

sample

public NormalModel sample()
Return an instance with the same parameters

Overrides:
sample in class NormalModel
Returns:
an SampledNormalModel

asFormatString

public java.lang.String asFormatString(java.lang.String[] bindings)
Description copied from interface: Printable
Produce a custom, printable representation of the receiver.

Specified by:
asFormatString in interface Printable
Overrides:
asFormatString in class NormalModel
Parameters:
bindings - an optional String[] containing labels used to format the primary Vector/s of this implementation.
Returns:
a String


Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.