cir_coord_conv | R Documentation |
Transformation between a matrix Theta
containing
M
circular samples of size n
on [0, 2\pi)
and an array
X
containing the associated Cartesian coordinates on
S^1:=\{{\bf x}\in R^2:||{\bf x}||=1\}
.
Theta_to_X(Theta)
X_to_Theta(X)
Theta |
a matrix of size |
X |
an array of size |
Theta_to_X
: the corresponding X
.
X_to_Theta
: the corresponding Theta
.
# Sample
Theta <- r_unif_cir(n = 10, M = 2)
X <- r_unif_sph(n = 10, p = 2, M = 2)
# Check equality
sum(abs(X - Theta_to_X(X_to_Theta(X))))
sum(abs(Theta - X_to_Theta(Theta_to_X(Theta))))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.