public class NormalDistribution extends java.lang.Object implements HMMDistribution
| Modifier and Type | Class and Description |
|---|---|
static class |
NormalDistribution.Lambda
the Normal distribution parameters
|
| Constructor and Description |
|---|
NormalDistribution(NormalDistribution.Lambda[] lambda)
Construct a Normal distribution for each state in the HMM model.
|
NormalDistribution(NormalDistribution.Lambda[] lambda,
boolean isMuEstimated,
boolean isSigmaEstimated)
Construct a Normal 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.
|
NormalDistribution.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.
|
NormalDistribution.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 NormalDistribution(NormalDistribution.Lambda[] lambda, boolean isMuEstimated, boolean isSigmaEstimated)
lambda - the distribution parametersisMuEstimated - indicate whether parameter mu is to be estimatedisSigmaEstimated - indicate whether parameter sigma is to be estimatedpublic NormalDistribution(NormalDistribution.Lambda[] lambda)
lambda - the distribution parameterspublic NormalDistribution.Lambda[] getParams()
HMMDistributiongetParams in interface HMMDistributionpublic RandomNumberGenerator[] getRandomNumberGenerators()
HMMDistributiongetRandomNumberGenerators in interface HMMDistributionpublic ProbabilityDistribution[] getDistributions()
HMMDistributiongetDistributions in interface HMMDistributionpublic NormalDistribution.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