|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cc.mallet.grmm.inference.ExactSampler
public class ExactSampler
Computes an exact sample from the distribution of a given factor graph by forming a junction tree. Created: Nov 9, 2005
Constructor Summary | |
---|---|
ExactSampler()
|
|
ExactSampler(Randoms r)
|
Method Summary | |
---|---|
Assignment |
sample(FactorGraph mdl,
int N)
Samples from the distribution of a given undirected model. |
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 ExactSampler()
public ExactSampler(Randoms r)
Method Detail |
---|
public Assignment sample(FactorGraph mdl, int N)
Sampler
sample
in interface Sampler
mdl
- Model to sample fromN
- Number of samples to generate
public void setRandom(Randoms r)
Sampler
setRandom
in interface Sampler
r
- Random object to be used by this sampler.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |