|
||||||||||
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.DiMRGParams
de.jstacs.utils.random.FastDirichletMRGParams
public class FastDirichletMRGParams
The container for parameters of a Dirichlet random generator that uses the same hyperparameter at all positions.
MRGParams
,
DirichletMRGParams
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FastDirichletMRGParams(double alpha) throws IllegalArgumentException
alpha
- the hyperparameter for all positions of the hyperparameter
vector
IllegalArgumentException
- if the value for alpha
is chosen incorrectly
(negative or 0), the parameter has to be positiveMethod Detail |
---|
public int getDimension()
DiMRGParams
getDimension
in class DiMRGParams
public double getHyperparameter(int i)
DiMRGParams
i
of the hyperparameter vector
of the underlying Dirichlet distribution.
getHyperparameter
in class DiMRGParams
i
- the position of the hyperparameter vector
i
of the hyperparameter vector
of the underlying Dirichlet distribution
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |