cc.mallet.grmm.inference
Interface Sampler

All Known Implementing Classes:
ExactSampler, GibbsSampler

public interface Sampler

Interface for methods from sampling the distribution given by a graphical model. Created: Mar 28, 2005

Version:
$Id: Sampler.java,v 1.1 2007/10/22 21:37:49 mccallum Exp $
Author:
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.
 

Method Detail

sample

Assignment sample(FactorGraph mdl,
                  int N)
Samples from the distribution of a given undirected model.

Parameters:
mdl - Model to sample from
N - Number of samples to generate
Returns:
A list of assignments to the model.

setRandom

void setRandom(Randoms r)
Sets the random seed used by this sampler.

Parameters:
r - Random object to be used by this sampler.