r_mvmf_polysph | R Documentation |
Simulates from an m
-mixture of product of
von Mises–Fisher distributions on the polysphere \mathcal{S}^{d_1}
\times \cdots \times \mathcal{S}^{d_r}
.
r_mvmf_polysph(n, d, mu, kappa, prop, norm_mu = FALSE)
n |
sample size. |
d |
vector of size |
mu |
a matrix of size |
kappa |
a matrix of size |
prop |
a vector of size |
norm_mu |
ensure a normalization of |
A matrix of size c(n, sum(d) + r)
with the sample.
# Simulate mixture of vMF data on (S^1)^2
r_mvmf_polysph(n = 10, d = c(1, 1),
mu = rbind(c(0, 1, 0, 1), c(1, 0, 1, 0)),
kappa = rbind(c(5, 2), c(1, 2)), prop = c(0.7, 0.3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.