|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcc.mallet.grmm.inference.GibbsSampler
public class GibbsSampler
Created: Mar 28, 2005
| Constructor Summary | |
|---|---|
GibbsSampler()
|
|
GibbsSampler(int burnin)
|
|
GibbsSampler(Randoms r,
int burnin)
|
|
| Method Summary | |
|---|---|
Assignment |
sample(FactorGraph mdl,
int N)
Samples from the distribution of a given undirected model. |
void |
setBurnin(int burnin)
|
void |
setRandom(Randoms r)
Sets the random seed used by this sampler. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GibbsSampler()
public GibbsSampler(int burnin)
public GibbsSampler(Randoms r,
int burnin)
| Method Detail |
|---|
public void setBurnin(int burnin)
public void setRandom(Randoms r)
Sampler
setRandom in interface Samplerr - Random object to be used by this sampler.
public Assignment sample(FactorGraph mdl,
int N)
Sampler
sample in interface Samplermdl - Model to sample fromN - Number of samples to generate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||