Learn R Programming

HiddenMarkov (version 1.8-13)

bwcontrol: Control Parameters for Baum Welch Algorithm

Description

Creates a list of parameters that control the operation of BaumWelch.

Usage

bwcontrol(maxiter = 500, tol = 1e-05, prt = TRUE, posdiff = TRUE,
          converge = expression(diff < tol))

Arguments

maxiter

is the maximum number of iterations, default is 500.

tol

is the convergence criterion, default is 0.00001.

prt

is logical, and determines whether information is printed at each iteration; default is TRUE.

posdiff

is logical, and determines whether the iterative process stops if a negative log-likelihood difference occurs, default is TRUE.

converge

is an expression giving the convergence criterion. The default is the difference between successive values of the log-likelihood.

Examples

Run this code
# NOT RUN {
#    Increase the maximum number of iterations to 1000.
#    All other components will retain their default values.
a <- bwcontrol(maxiter=1000)
print(a)
# }

Run the code above in your browser using DataLab