Density, distribution function, and directional quantile approximation for a bivariate Gaussian mixture with four joint states.
dmix2norm(
x,
means = matrix(0, 4, 2),
Sigma = rep(list(diag(1, 2)), 4),
probs = rep(1/4, 4),
log = FALSE
)
pmix2norm(
x,
means = matrix(0, 4, 2),
Sigma = rep(list(diag(1, 2)), 4),
probs = rep(1/4, 4),
log = FALSE
)
qmix2norm(
p,
means = matrix(0, 4, 2),
Sigma = rep(list(diag(1, 2)), 4),
probs = rep(1/4, 4),
v = NULL,
x0 = c(-1, 1),
range_s = c(-100, 100),
log.p = FALSE,
lower.tail = TRUE
)Numeric matrix. Rows are observations and columns are the two locations/components.
Numeric matrix of component means.
List of variance-covariance matrices.
Numeric vector of joint state probabilities.
Logical. If TRUE, dmix2norm() or pmix2norm() returns values
on the log scale.
Numeric vector of probabilities.
Optional numeric direction vector used by qmix2norm().
Numeric reference point used by qmix2norm().
Numeric vector of length two giving the search interval for
the scalar root used by qmix2norm().
Logical. If TRUE, probabilities are supplied on the log scale.
Logical. If TRUE, probabilities are \(P[X \le x]\);
otherwise, \(P[X > x]\).
dmix2norm() returns a numeric vector of density values.
pmix2norm() returns a numeric vector of probabilities.
qmix2norm() returns a numeric matrix of directional quantiles.
Version 1.0.0.