| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public ErlangMRGParams(int alpha,
int n)
throws IllegalArgumentException
alpha - the value for the hyperparameter vectorn - the dimension of the hyperparameter vectorIllegalArgumentException - 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 vectorIllegalArgumentException - if at least one of the hyperparameters is not positivepublic int getDimension()
public int getHyperparameter(int i)
i of the hyperparameter vector
of the underlying Erlang distribution.i - the position of the hyperparameter vectori of the hyperparameter vector
of the underlying Erlang distributionpublic int getSumOfHyperparameter()