public class ExponentialDistribution extends java.lang.Object implements HMMDistribution
| Constructor and Description |
|---|
ExponentialDistribution(java.lang.Double[] rates)
Construct an Exponential 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.
|
java.lang.Double[] |
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.
|
java.lang.Double[] |
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 ExponentialDistribution(java.lang.Double[] rates)
rates - the ratespublic java.lang.Double[] getParams()
HMMDistributiongetParams in interface HMMDistributionpublic RandomNumberGenerator[] getRandomNumberGenerators()
HMMDistributiongetRandomNumberGenerators in interface HMMDistributionpublic ProbabilityDistribution[] getDistributions()
HMMDistributiongetDistributions in interface HMMDistributionpublic java.lang.Double[] 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