proj_polysph | R Documentation |
Projects points on \mathbb{R}^{d_1 + \cdots + d_r + r}
onto the polysphere \mathcal{S}^{d_1} \times \cdots \times
\mathcal{S}^{d_r}
by normalizing each block of d_j
coordinates.
proj_polysph(x, ind_dj)
x |
a matrix of size |
ind_dj |
|
A matrix of size c(n, sum(d) + r)
with the projected points.
# Example on (S^1)^2
d <- c(1, 1)
x <- rbind(c(2, 0, 1, 1))
proj_polysph(x, ind_dj = comp_ind_dj(d))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.