org.knowceans.corpus.util
Class LocalSamplers

java.lang.Object
  extended by org.knowceans.util.Samplers
      extended by org.knowceans.corpus.util.LocalSamplers

public class LocalSamplers
extends org.knowceans.util.Samplers

Diverse sampling methods, including beta, gamma, multinomial, and Dirichlet distributions as well as Dirichlet processes, using Sethurahman's stick-breaking construction and Chinese restaurant process. The random generator used is a Mersenne Twister (Cokus), which is the only dependency.

FIXME: markov condition in random generator, see random string?

NOTE: this class is the extends that in org.knowceans.util.Samplers by some code still commented out.

Author:
heinrich (partly adapted from Yee Whye Teh's npbayes Matlab / C code)

Nested Class Summary
 
Nested classes/interfaces inherited from class org.knowceans.util.Samplers
org.knowceans.util.Samplers.CrpData
 
Field Summary
 
Fields inherited from class org.knowceans.util.Samplers
allss, haveNextNextGaussian, lastRand, lmss, logmaxss, maxnn, MAXSTIRLING, nextNextGaussian
 
Constructor Summary
LocalSamplers()
           
 
Method Summary
 
Methods inherited from class org.knowceans.util.Samplers
binarySearch, drand48, enumClass, main, meanLik, randBernoulli, randBeta, randBeta, randBinom, randConParam, randConParam, randCrp, randCrp, randDir, randDir, randDir, randDir, randDir, randDmm, randDmm, randDmm, randDmm, randGamma, randGamma, randGamma, randGmm, randGmm, randGmm, randGmm, randMult, randMult, randMultDirect, randMultDirect, randMultFreqs, randMultSimple, randNorm, randNumTable, randPerm, randStick, randString, randUniform, randUniform, stirling, testMult
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalSamplers

public LocalSamplers()