de.jstacs.utils.random
Class DirichletMRGParams

java.lang.Object
  extended by de.jstacs.utils.random.MRGParams
      extended by de.jstacs.utils.random.DiMRGParams
          extended by de.jstacs.utils.random.DirichletMRGParams

public class DirichletMRGParams
extends DiMRGParams

The container for parameter of a Dirichlet random generator.

Author:
Jens Keilwagen
See Also:
DiMRGParams, FastDirichletMRGParams

Constructor Summary
DirichletMRGParams(double... alpha)
           
DirichletMRGParams(double alpha, int n)
           
 
Method Summary
 int getDimension()
           
 double getHyperparameter(int i)
           
 double getSumOfHyperparameter()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirichletMRGParams

public DirichletMRGParams(double alpha,
                          int n)
                   throws IllegalArgumentException
Throws:
IllegalArgumentException
See Also:
FastDirichletMRGParams.FastDirichletMRGParams(double)

DirichletMRGParams

public DirichletMRGParams(double... alpha)
                   throws IllegalArgumentException
Throws:
IllegalArgumentException
Method Detail

getDimension

public int getDimension()
Specified by:
getDimension in class DiMRGParams

getHyperparameter

public double getHyperparameter(int i)
Specified by:
getHyperparameter in class DiMRGParams

getSumOfHyperparameter

public double getSumOfHyperparameter()