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)
numeric vector where the first element is the radius and the remaining are the angles
parameters in the Euclidian space to be converted
integer to define the size of the correlation matrix
numeric as the parameter for the Exponential distribution of the radius
scaling matrix (square root of the Hessian around the base model)
numeric vector of the base model
numeric vector of length m
.
list output of theta2H
is a correlation matrix.
is a correlation matrix of the base model.
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
compute C1 using 'theta2C' on theta with $$KLD = 0.5( tr(C0^{-1}C1) -p + ... - log(|C1|) + log(|C0|) )$$