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