hmm {communication}R Documentation

Train a hidden Markov model with multivariate normal state distributions.

Description

Train a hidden Markov model with multivariate normal state distributions.

Usage

hmm(
  Xs,
  weights = NULL,
  nstates,
  par = list(),
  control = list(),
  labels = list()
)

Arguments

Xs

List of nsequences matrices; each matrix represents one observation sequence and is of dimension nobs x nfeatures. For a single observation sequence, a single matrix can be provided

weights

Optional vector of weights, one for each observation sequence

nstates

Integer; number of states

par

List of initialization parameters; see 'Details'

control

List of control parameters for EM steps

labels

List of observation labels for supervised training, with each element corresponding to an observation sequence. Element i can either be an vector of integer state labels in 1:nstates or a matrix of dimension nstates x nrow(Xs[[i]]) with columns summing to 1. If labels are supplied, E-step is suppressed.

Details

The par argument is a list of initialization parameters. Can supply any of the following components:

The control argument is a list of EM control parameters that can supply any of the following components

Value

An object of class hmm. Contains fitted values of model parameters, along with input values for hyperparameters and features.

Examples

data('audio')
## Not run: 
mod <- hmm(audio$data, nstates = 2, control = list(verbose = TRUE))

## End(Not run)


[Package communication version 0.1 Index]