r_unif_polysph {polykde} | R Documentation |
Sample uniform polyspherical data
Description
Simulates from a uniform distribution on the polysphere
\mathcal{S}^{d_1} \times \cdots \times \mathcal{S}^{d_r}
.
Usage
r_unif_polysph(n, d)
Arguments
n |
sample size. |
d |
vector of size |
Value
A matrix of size c(n, sum(d) + r)
with the sample.
Examples
# Simulate uniform data on (S^1)^2
r_unif_polysph(n = 10, d = c(1, 1))
[Package polykde version 1.1.4 Index]