| calcQF {BayesNSGP} | R Documentation | 
Calculate the Gaussian quadratic form for the NNGP approximation
Description
calcQF calculates the quadratic form in the multivariate Gaussian 
based on the NNGP approximation, for a specific parameter combination. The
quadratic form is t(u)C^{-1}v.
Usage
calcQF(u, v, AD, nID)
Arguments
| u | Vector; left product. | 
| v | Vector; right product | 
| AD | N x (k+1) matrix; the first k columns are the 'A' matrix, and the
last column is the 'D' vector. Represents the Cholesky of  | 
| nID | N x k matrix of neighbor indices. | 
Value
A list with two components: (1) an N x 2 array containing the same spatial coordinates, ordered by MMD, and (2) the same thing, but with any NA values removed.
[Package BayesNSGP version 0.1.2 Index]