Returns the covariance matrix of the specified Gaussian markov random field model.

getCov(n, model, tau)

Arguments

n

integer giving the size of the random feild

model

chatacter giving the name of the GMRF

tau

numeric giving the multiplier of the structure matrix for the model

Value

a covariance matrix