de.jstacs.utils
Class DiscreteInhomogenousDataSetEmitter

java.lang.Object
  extended by de.jstacs.utils.DiscreteInhomogenousDataSetEmitter

public class DiscreteInhomogenousDataSetEmitter
extends Object

Emits DataSets for discrete inhomogeneous models by a naive implementation.

Author:
Jens Keilwagen
See Also:
StatisticalModel.emitDataSet(int, int[])

Constructor Summary
DiscreteInhomogenousDataSetEmitter()
           
 
Method Summary
static DataSet emitDataSet(StatisticalModel m, int n)
          This method emits a data set 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

DiscreteInhomogenousDataSetEmitter

public DiscreteInhomogenousDataSetEmitter()
Method Detail

emitDataSet

public static DataSet emitDataSet(StatisticalModel m,
                                  int n)
                           throws NotTrainedException,
                                  Exception
This method emits a data set with n sequences from the discrete inhomogeneous model m .

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