|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.jstacs.utils.random.MRGParams
de.jstacs.utils.random.ErlangMRGParams
public class ErlangMRGParams
The container for parameters of an Erlang multivariate random generator.
MRGParams
Constructor Summary | |
---|---|
ErlangMRGParams(int[] alpha)
Constructor which creates a new hyperparameter vector for an Erlang random generator. |
|
ErlangMRGParams(int alpha,
int n)
Constructor which creates a new hyperparameter vector for an Erlang random generator. |
Method Summary | |
---|---|
int |
getDimension()
Returns the dimension of the hyperparameter vector of the underlying Erlang distribution. |
int |
getHyperparameter(int i)
Returns the value at position i of the hyperparameter vector
of the underlying Erlang distribution. |
int |
getSumOfHyperparameter()
Returns the sum of the hyperparameters (entries of the hyperparameter vector) of the underlying Erlang distribution. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ErlangMRGParams(int alpha, int n) throws IllegalArgumentException
alpha
- the value for the hyperparameter vectorn
- the dimension of the hyperparameter vector
IllegalArgumentException
- if n
is chosen incorrectly (has to be greater
than 2) or if alpha
is chosen incorrectly (has
to be positive)public ErlangMRGParams(int[] alpha) throws IllegalArgumentException
alpha
- the hyperparameter vector
IllegalArgumentException
- if at least one of the hyperparameters is not positiveMethod Detail |
---|
public int getDimension()
public int getHyperparameter(int i)
i
of the hyperparameter vector
of the underlying Erlang distribution.
i
- the position of the hyperparameter vector
i
of the hyperparameter vector
of the underlying Erlang distributionpublic int getSumOfHyperparameter()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |