powered by
Simulates from a uniform distribution on the polysphere \(\mathcal{S}^{d_1} \times \cdots \times \mathcal{S}^{d_r}\).
r_unif_polysph(n, d)
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
# Simulate uniform data on (S^1)^2 r_unif_polysph(n = 10, d = c(1, 1))
Run the code above in your browser using DataLab