de.jstacs.models.utils
Class DiscreteInhomogenousSampleEmitter
java.lang.Object
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[])
|
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 |
DiscreteInhomogenousSampleEmitter
public DiscreteInhomogenousSampleEmitter()
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 modeln - the number of sequences
- Returns:
- the synthetic sample
- Throws:
NotTrainedException - if the model is not trained
Exception - if something went wrong