Density, cumulative distribution, quantile functions and random number generation for the Complex Normal distribution.
dcnorm(q, mu = 0, sigma2 = 1, varsigma2 = 0, log = FALSE, ...)pcnorm(lower = -Inf, upper = Inf, mu = 0, sigma2 = 1, varsigma2 = 0,
...)
qcnorm(p, mu = 0, sigma2 = 1, varsigma2 = 0, ...)
rcnorm(n = 1, mu = 0, sigma2 = 1, varsigma2 = 0, ...)
Depending on the function, various things are returned (usually either vector or scalar):
dcnorm
returns the density function values for the
provided parameters, based on Mvnorm function.
pcnorm
returns the values of the cumulative function
for the provided parameters, based on pmvnorm function.
qcnorm
returns quantiles of the distribution,
based on qmvnorm function.
rcnorm
returns a vector of random variables
generated from the Complex Normal distribution,
based on Mvnorm function.
vector of quantiles.
vector of location parameters (means).
vector of conjugate variances.
vector of direct variances.
if TRUE
, then probabilities are returned in
logarithms.
Other parameters passed to the mvtnorm
functions.
complex number of lower limits of length n.
complex number of upper limits of length n.
vector of probabilities.
number of observations. Should be a single number.
Ivan Svetunkov, ivan@svetunkov.ru
Complex Normal distribution is a special case of a multivariate normal distribution, which is parametrised using direct and conjugate variances instead of the covariance matrix.
These functions are just wrappers for the functions from the mvtnorm
package.
Note that sigma2
and varsigma2
are the conjugate and direct
variances, not the standard deviations!
Both pcnorm
and qcnorm
are returned for the lower
tail of the distribution.
All the functions are defined for non-negative values only.
dcnorm(89+90i, 100+100i, 2, 1+1i)
pcnorm(90+90i, 110+110i, 100+100i, 2, 1+1i)
qcnorm(0.95, 100+100i, 2, 1+1i)
rcnorm(1000, 100+100i, 2, 1+1i)
Run the code above in your browser using DataLab