public class BetaDistribution extends java.lang.Object implements HMMDistribution
| Modifier and Type | Class and Description |
|---|---|
static class |
BetaDistribution.Lambda
the Beta distribution parameters
|
| Constructor and Description |
|---|
BetaDistribution(BetaDistribution.Lambda[] lambda,
boolean isAlphaEstimated,
boolean isBetaEstimated,
double epsilon,
int maxIterations)
Construct a Beta distribution for each state in the HMM model.
|
BetaDistribution(BetaDistribution.Lambda[] lambda,
int maxIterations)
Construct a Beta 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.
|
BetaDistribution.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.
|
BetaDistribution.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 BetaDistribution(BetaDistribution.Lambda[] lambda, boolean isAlphaEstimated, boolean isBetaEstimated, double epsilon, int maxIterations)
lambda - the distribution parametersisAlphaEstimated - indicate whether parameter alpha is to be estimatedisBetaEstimated - indicate whether parameter beta is to be estimatedepsilon - a precision parameter: when a number |x| ≤ ε, it is considered 0maxIterations - the maximum number of iterations in each M-steppublic BetaDistribution(BetaDistribution.Lambda[] lambda, int maxIterations)
lambda - the distribution parametersmaxIterations - the maximum number of iterations in each M-steppublic BetaDistribution.Lambda[] getParams()
HMMDistributiongetParams in interface HMMDistributionpublic RandomNumberGenerator[] getRandomNumberGenerators()
HMMDistributiongetRandomNumberGenerators in interface HMMDistributionpublic ProbabilityDistribution[] getDistributions()
HMMDistributiongetDistributions in interface HMMDistributionpublic BetaDistribution.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