angles_to_polysph {polykde} | R Documentation |
Conversion between the angular and Cartesian coordinates of the polysphere
Description
Obtain the angular coordinates of points on a polysphere
\mathcal{S}^{d_1}\times\cdots\times\mathcal{S}^{d_r}
, and vice versa.
Usage
angles_to_polysph(theta, d)
polysph_to_angles(x, d)
Arguments
theta |
matrix of size |
d |
vector with the dimensions of the polysphere. |
x |
matrix of size |
Value
angles_to_polysph
: the matrixx
.polysph_to_angles
: the matrixtheta
.
Examples
# Check changes of coordinates
polysph_to_angles(angles_to_polysph(rep(pi / 2, 3), d = 2:1), d = 2:1)
angles_to_polysph(polysph_to_angles(x = c(0, 0, 1, 0, 1), d = 2:1), d = 2:1)
[Package polykde version 1.1.4 Index]