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
"new"(Class, mean=0, var=1, df=3)
"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.
Methods
- .Object = "contDist"
- Creates an object of class
contDist
,
representing a continuous probability distribution. This is used as a super class
for specific distributions and should not be used directly. - .Object = "tDist"
- Creates an object of class
tDist
,
representing a t distribution with location and scale parameter. - .Object = "discDist"
- Creates an object of class
discDist
,
representing a discrete probability distribution.
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