public class FastDirichletMRGParams extends DiMRGParams
MRGParams,
DirichletMRGParams| Constructor and Description |
|---|
FastDirichletMRGParams(double alpha)
Creates the hyperparameter for a Dirichlet random generator which is used
at all positions for the hyperparameter vector of the underlying
Dirichlet distribution.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getDimension()
Returns the dimension of the hyperparameter vector of the underlying
Dirichlet distribution and therefore the dimension of the generated
random array.
|
double |
getHyperparameter(int i)
Returns the value at position
i of the hyperparameter vector
of the underlying Dirichlet distribution. |
public FastDirichletMRGParams(double alpha)
throws IllegalArgumentException
alpha - the hyperparameter for all positions of the hyperparameter
vectorIllegalArgumentException - if the value for alpha is chosen incorrectly
(negative or 0), the parameter has to be positivepublic int getDimension()
DiMRGParamsgetDimension in class DiMRGParamspublic double getHyperparameter(int i)
DiMRGParamsi of the hyperparameter vector
of the underlying Dirichlet distribution.getHyperparameter in class DiMRGParamsi - the position of the hyperparameter vectori of the hyperparameter vector
of the underlying Dirichlet distribution