sim_coef: simulates the coefficients of the basis functions as...

Description Usage Arguments Value

Description

simulates a Gaussian random field for each basis function given user specified covariance function and covariance parameters. The model specification corresponds to GeoR package.

Usage

1
2
sim_coef(nfields, grid.dim, grid.xlim, grid.ylim, cov.model, cov.pars,
  locs = NULL, ...)

Arguments

nfields

number of fields to simulate (one for each basis function)

grid.xlim

vector of length 2 specifying the xlim for the grid. Only used if locs is not specified.

grid.ylim

vector of length 2 specifying the ylim for the grid. Only used if locs is not specified.

grid.dim

vector with 2 numbers specifying the dimension of the rectangular grid. Only used if locs is not specified.

cov.model

name of covariance model(s) connected to each basis function.

cov.pars

a vector with 2 elements or an n x 2 matrix with values of the covariance parameters sigma^2 (partial sill) and phi (range parameter). If a vector, the elements are the values of sigma^2 and phi, respectively. If a matrix, corresponding to a model with several structures, the values of sigma^2 are in the first column and the values of phi are in the second.

locs

nx2 matrix of locations

...

other parameters sent to grf()

Value

coef list containing the coefficients ...

locs nx2 matrix of locations

cov.model name of covariance model(s) connected to each basis function.

cov.pars covariance parameters corresponding to the covariance models.


dan410/sfdasim documentation built on May 14, 2019, 3:34 p.m.