rphi2x | R Documentation |
Functions for the mapping between spherical and Euclidean coordinates.
rphi2x(rphi)
x2rphi(x)
rtheta(n, lambda = 1, R, theta.base)
dtheta(theta, lambda, theta.base, H.elements)
KLD10(C1, C0)
theta2H(theta)
rphi |
numeric vector where the first element is the radius and the remaining are the angles |
x |
parameters in the Euclidian space to be converted |
n |
integer to define the size of the correlation matrix |
lambda |
numeric as the parameter for the Exponential distribution of the radius |
R |
scaling matrix (square root of the Hessian around the base model) |
theta.base |
numeric vector of the base model |
theta |
numeric vector of length |
H.elements |
list output of theta2H |
C1 |
is a correlation matrix. |
C0 |
is a correlation matrix of the base model. |
compute C1 using 'theta2C' on theta with
KLD = 0.5( tr(C0^{-1}C1) -p + ... - log(|C1|) + log(|C0|) )
x2rphi()
: Tranform from Euclidian coordinates to spherical
rtheta()
: Drawn samples from the PC-prior for correlation
dtheta()
: PC-prior density for the correlation matrix
KLD10()
: Compute the KLD with respect to a base model
theta2H()
: Compute the hessian, its svd and some elements
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.