RNGMIX.Theta-class: Class '"RNGMIX.Theta"'

Description Objects from the Class Slots Author(s) Examples

Description

Object of class RNGMIX.Theta.

Objects from the Class

Objects can be created by calls of the form new("RNGMIX.Theta", ...). Accessor methods for the slots are a.c(x = NULL), a.d(x = NULL), a.pdf(x = NULL) and a.Theta(x = NULL), where x stands for an object of class RNGMIX.Theta. Setter methods a.theta1(x = NULL, l = numeric()) and a.theta2(x = NULL, l = numeric()) are provided to write to Theta slot, where l = 1, …, c.

Slots

c:

number of components c > 0. The default value is 1.

d:

number of dimensions.

pdf:

a character vector of length d containing continuous or discrete parametric family types. One of "normal", "lognormal", "Weibull", "gamma", "Gumbel", "binomial", "Poisson", "Dirac" or "vonMises".

Theta:

a list containing c parametric family types pdfl. One of "normal", "lognormal", "Weibull", "gamma", "Gumbel", "binomial", "Poisson", "Dirac" or circular "vonMises" defined for 0 ≤q y_{i} ≤q 2 π. Component parameters theta1.l follow the parametric family types. One of μ_{il} for normal, lognormal, Gumbel and von Mises distributions and θ_{il} for Weibull, gamma, binomial, Poisson and Dirac distributions. Component parameters theta2.l follow theta1.l. One of σ_{il} for normal and lognormal distributions, β_{il} for Weibull, gamma and Gumbel distributions, p_{il} for binomial distribution, κ_{il} for von Mises distribution and "NA" otherwise.

Author(s)

Marko Nagode

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
Theta <- new("RNGMIX.Theta", c = 2, pdf = c("normal", "Gumbel"))  

a.theta1(Theta, l = 1) <- c(2, 10)
a.theta2(Theta, l = 1) <- c(0.5, 2.3)
a.theta1(Theta, l = 2) <- c(20, 50)
a.theta2(Theta, l = 2) <- c(3, 4.2)

Theta

Theta <- new("RNGMVNORM.Theta", c = 2, d = 3)

a.theta1(Theta, l = 1) <- c(2, 10, -20)
a.theta1(Theta, l = 2) <- c(-2.4, -15.1, 30)

Theta

rebmix documentation built on July 28, 2021, 5:08 p.m.