initializeDist-methods: Generating Objects of Class 'dist'
Description
Objects representing probability distributions for the use with objects of class
hmm are created by calls to new(Class, ...), where Class is
"contDist", "tDist" or "discDist".Usage
## S3 method for class 'tDist':
new(Class, mean=0, var=1, df=3)
## S3 method for class 'discDist':
new(Class, alpha=character(0), prob=numeric(0), dstr=list())
Arguments
Class
Character string specifying the class of the object to be created.
mean
The location parameter of the t distribution.
var
The scale parameter of the t distribution.
df
The degrees of freedom of the t distribution.
alpha
A character vector with names for all events.
prob
A numeric vector providing the probabilities of events.
dstr
A list with each entry providing the probability of one event.
Details
To generate objects of class discDist either alpha and prob
or dstr have to be provided. If alpha and prob are provided
they have to be the same length.See Also
discDist, contDist, tDist