r_vmf_polysph {polykde} | R Documentation |
Sample von Mises–Fisher distributed polyspherical data
Description
Simulates from a product of von Mises–Fisher distributions on
the polysphere \mathcal{S}^{d_1} \times \cdots \times
\mathcal{S}^{d_r}
.
Usage
r_vmf_polysph(n, d, mu, kappa, norm_mu = FALSE)
Arguments
n |
sample size. |
d |
vector of size |
mu |
a vector of size |
kappa |
a vector of size |
norm_mu |
ensure a normalization of |
Value
A matrix of size c(n, sum(d) + r)
with the sample.
Examples
# Simulate vMF data on (S^1)^2
r_vmf_polysph(n = 10, d = c(1, 1), mu = c(1, 0, 0, 1), kappa = c(1, 1))
[Package polykde version 1.1.4 Index]