de.jstacs.utils.random
Class ErlangMRG
java.lang.Object
de.jstacs.utils.random.MultivariateRandomGenerator
de.jstacs.utils.random.ErlangMRG
public class ErlangMRG
- extends MultivariateRandomGenerator
This class is a multivariate random generator based on a Dirichlet
distribution for alpha_i \in N. It is a kind of
"multivariate Erlang distribution".
- Author:
- Jens Keilwagen
|
Constructor Summary |
ErlangMRG()
Constructor that creates a new multivariate random generator with
underlying Erlang distribution. |
|
Method Summary |
void |
generate(double[] d,
int start,
int n,
MRGParams p)
Generates a n-dimensional random array as part of the array
d beginning at start. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ErlangMRG
public ErlangMRG()
- Constructor that creates a new multivariate random generator with
underlying Erlang distribution.
generate
public void generate(double[] d,
int start,
int n,
MRGParams p)
- Description copied from class:
MultivariateRandomGenerator
- Generates a
n-dimensional random array as part of the array
d beginning at start.
- Specified by:
generate in class MultivariateRandomGenerator
- Parameters:
d - the arraystart - the start index for generated valuesn - the dimension of the random arrayp - the parameter of the underlying distribution