powered by
Simulates from a product of von Mises--Fisher distributions on the polysphere \(\mathcal{S}^{d_1} \times \cdots \times \mathcal{S}^{d_r}\).
r_vmf_polysph(n, d, mu, kappa, norm_mu = FALSE)
A matrix of size c(n, sum(d) + r) with the sample.
c(n, sum(d) + r)
sample size.
vector of size r with dimensions.
r
a vector of size sum(d) + r with the concatenated von Mises--Fisher means.
sum(d) + r
a vector of size r with the von Mises--Fisher concentrations.
ensure a normalization of mu? Defaults to FALSE.
mu
FALSE
# 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))
Run the code above in your browser using DataLab