initializeDist-methods: Generating Objects of Class 'dist'

Description Usage Arguments Details Methods Author(s) See Also

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

1
2
3
4
## S4 method for signature 'tDist'
new(Class, mean=0, var=1, df=3)
## S4 method for signature '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.

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.

Author(s)

Peter Humburg

See Also

discDist, contDist, tDist


tileHMM documentation built on May 30, 2017, 3:41 a.m.