gp2d: Generates realizations of two dimensional Gaussian process...

Description Usage Arguments Value Note

Description

Generates realizations of two dimensional Gaussian process with exponential covariance function

Usage

1
gp2d(n = 100, mu = 0, sd = 1, l = 30, pts = 30)

Arguments

n

Positive integer. Number of functions to generate.

mu

numeric value or matrix of size pts^2 Mean value of the Gaussian process. Defaults to 0.

sd

Positive numeric or vector of length pts^2 Standard deviation of the Gaussian process. Defaults to 1.

pts

Positive integer. Functions will be sampled on a pts x pts grid. Defaults to 30.

r

Positive numeric or vector of length pts^2 Range of the Gaussian process. Defaults to 30.

Value

3D array of functions. First two indicies correspond to values in the 2D GP. Third index is the function number.

Note

Setting a single number in mu, sd, or r means that the parameter will be constant over all observation points. Setting it to a vector allows you to vary it by observation site. Vector length must be equal to pts.


trevor-harris/kstat documentation built on May 9, 2019, 1:12 a.m.