de.jstacs.models.utils
Class DiscreteInhomogenousSampleEmitter

java.lang.Object
  extended by de.jstacs.models.utils.DiscreteInhomogenousSampleEmitter

public class DiscreteInhomogenousSampleEmitter
extends Object

Emits Samples for discrete inhomogeneous models by a naive implementation.

Author:
Jens Keilwagen
See Also:
Model.emitSample(int, int[])

Constructor Summary
DiscreteInhomogenousSampleEmitter()
           
 
Method Summary
static Sample emitSample(Model m, int n)
          This method emits a sample with n sequences from the discrete inhomogeneous model m .
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiscreteInhomogenousSampleEmitter

public DiscreteInhomogenousSampleEmitter()
Method Detail

emitSample

public static Sample emitSample(Model m,
                                int n)
                         throws NotTrainedException,
                                Exception
This method emits a sample with n sequences from the discrete inhomogeneous model m .

Parameters:
m - the model
n - the number of sequences
Returns:
the synthetic sample
Throws:
NotTrainedException - if the model is not trained
Exception - if something went wrong