| RNGMIX.Theta-class {rebmix} | R Documentation |
Class "RNGMIX.Theta"
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()), a.theta2(x = NULL, l = numeric()) and a.theta3(x = NULL, l = numeric()),
a.theta1.all(x = NULL), a.theta2.all(x = NULL) and a.theta3.all(x = NULL)
are provided to write to Theta slot, where l = 1, \ldots, c.
Slots
c:-
number of components
c > 0. The default value is1. d:-
number of dimensions.
pdf:-
a character vector of length
dcontaining continuous or discrete parametric family types. One of"normal","lognormal","Weibull","gamma","Gumbel","binomial","Poisson","Dirac","uniform"or"vonMises". Theta:-
a list containing
cparametric family typespdfl. One of"normal","lognormal","Weibull","gamma","Gumbel","binomial","Poisson","Dirac","uniform"or circular"vonMises"defined for0 \leq y_{i} \leq 2 \pi. Component parameterstheta1.lfollow the parametric family types. One of\mu_{il}for normal, lognormal, Gumbel and von Mises distributions,\theta_{il}for Weibull, gamma, binomial, Poisson and Dirac distributions andafor uniform distribution. Component parameterstheta2.lfollowtheta1.l. One of\sigma_{il}for normal, lognormal and Gumbel distributions,\beta_{il}for Weibull and gamma distributions,p_{il}for binomial distribution,\kappa_{il}for von Mises distribution andbfor uniform distribution. Component parameterstheta3.lfollowtheta2.l. One of\xi_{il} \in \{-1, 1\}for Gumbel distribution.
Author(s)
Marko Nagode
Examples
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.theta3(Theta, l = 1) <- c(NA, 1.0)
a.theta1(Theta, l = 2) <- c(20, 50)
a.theta2(Theta, l = 2) <- c(3, 4.2)
a.theta3(Theta, l = 2) <- c(NA, -1.0)
Theta
Theta <- new("RNGMIX.Theta", c = 2, pdf = c("normal", "Gumbel"))
a.theta1.all(Theta) <- c(2, 10, 20, 50)
a.theta2.all(Theta) <- c(0.5, 2.3, 3, 4.2)
a.theta3.all(Theta) <- c(NA, 1.0, NA, -1.0)
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