|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.knowceans.util.Samplers org.knowceans.corpus.util.LocalSamplers
public class LocalSamplers
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.
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 |
---|
public LocalSamplers()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |