public class GammaDistribution extends java.lang.Object implements HMMDistribution
| Modifier and Type | Class and Description |
|---|---|
static class |
GammaDistribution.Lambda
the Gamma distribution parameters
|
| Constructor and Description |
|---|
GammaDistribution(GammaDistribution.Lambda[] lambda,
boolean isShapeEstimated,
boolean isScaleEstimated,
double epsilon,
int maxIterations)
Construct a Gamma distribution for each state in the HMM model.
|
GammaDistribution(GammaDistribution.Lambda[] lambda,
int maxIterations)
Construct a Gamma distribution for each state in the HMM model.
|
| Modifier and Type | Method and Description |
|---|---|
ProbabilityDistribution[] |
getDistributions()
Get the distributions (possibly differently parameterized) for all states.
|
GammaDistribution.Lambda[] |
getMStepParams(double[] observations,
Matrix u,
java.lang.Object[] param0)
Maximize, for each state, the log-likelihood of the distribution with respect to the observations and current estimators.
|
GammaDistribution.Lambda[] |
getParams()
Get the parameters, for each state, of the distribution.
|
RandomNumberGenerator[] |
getRandomNumberGenerators()
Get the random number generators corresponding to the distributions (possibly differently parameterized) for all states.
|
HMMDistribution |
newEMDistribution(java.lang.Object[] param)
Construct a new distribution from a set of parameters, one set per state.
|
public GammaDistribution(GammaDistribution.Lambda[] lambda, boolean isShapeEstimated, boolean isScaleEstimated, double epsilon, int maxIterations)
lambda - the distribution parametersisShapeEstimated - indicate whether the shape parameter k is to be estimatedisScaleEstimated - indicate whether the scale parameter theta is to be estimatedepsilon - a precision parameter: when a number |x| ≤ ε, it is considered 0maxIterations - the maximum number of iterations in each M-steppublic GammaDistribution(GammaDistribution.Lambda[] lambda, int maxIterations)
lambda - the distribution parametersmaxIterations - the maximum number of iterations in each M-steppublic GammaDistribution.Lambda[] getParams()
HMMDistributiongetParams in interface HMMDistributionpublic RandomNumberGenerator[] getRandomNumberGenerators()
HMMDistributiongetRandomNumberGenerators in interface HMMDistributionpublic ProbabilityDistribution[] getDistributions()
HMMDistributiongetDistributions in interface HMMDistributionpublic GammaDistribution.Lambda[] getMStepParams(double[] observations, Matrix u, java.lang.Object[] param0)
HMMDistributiongetMStepParams in interface HMMDistributionobservations - the observationsu - this is a log-transformed version of eq. (4.13) of Zucchini and MacDonald (2009), p. 65param0 - the current estimators of the distribution parameterspublic HMMDistribution newEMDistribution(java.lang.Object[] param)
HMMDistributionnewEMDistribution in interface HMMDistributionparam - the parameters of the distribution, one set per state