calc.variances.gp {spectralGP} | R Documentation |
Calculates the prior variances of the spectral coefficients in a GP
object. The variances are based on the spectral density function
chosen in gp
and the
correlation function parameters supplied.
calc.variances.gp(object,...)
object |
A GP object, created by gp . |
... |
Other arguments. |
This function is an internal function not meant to be called by the user.
The prior variances for each coefficient are calculated based on the
frequency of the corresponding basis function, the spectral density
function, the parameters of the spectral density/correlation
function, and the (optional) coefficient variance parameter.
The function creates variances
, a matrix of
variances corresponding to coeff
, the matrix of coefficients.
The function modifies the GP object, which is essentially a pointer (an R environment in this case), so NULL is returned.
Christopher Paciorek paciorek@alumni.cmu.edu
Type 'citation("spectralGP")' for references.
gp
,propose.coeff.gp
,simulate.gp
,logdensity.gp
,change.param.gp
##---- Should be DIRECTLY executable !! ---- ##-- ==> Define data, use random, ##-- or do help(data=index) for the standard data sets.