dBvm | R Documentation |
Evaluation of the bivariate Sine von Mises density and its normalizing constant.
dBvm(x, mu, kappa, logConst = NULL)
constBvm(M = 25, kappa)
x |
a matrix of size |
mu |
two-dimensional vector of circular means. |
kappa |
three-dimensional vector with concentrations
|
logConst |
logarithm of the normalizing constant. Computed if
|
M |
number of terms considered in the series expansion used for evaluating the normalizing constant. |
If \kappa_1 = 0
or \kappa_2 = 0
and \lambda \neq 0
,
then constBvm
will perform a Monte Carlo integration of the constant.
A vector of length nx
with the evaluated density
(dBvm
) or a scalar with the normaalizing constant (constBvm
).
Singh, H., Hnizdo, V. and Demchuk, E. (2002) Probabilistic model for two dependent circular variables, Biometrika, 89(3):719–723, \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1093/biomet/89.3.719")}
x <- seq(-pi, pi, l = 101)[-101]
plotSurface2D(x, x, f = function(x) dBvm(x = x, mu = c(0, pi / 2),
kappa = c(2, 3, 1)),
fVect = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.