gp1d: Generates realizations of one dimensional Gaussian process...

Description Usage Arguments Value Note

View source: R/util.R

Description

Generates realizations of one dimensional Gaussian process with exponential covariance function

Usage

1
gp1d(n = 100, mu = 0, sd = 1, r = 10, pts = 50)

Arguments

n

Positive integer. Number of functions to generate.

mu

numeric value or vector of length pts Mean value of the Gaussian process. Defaults to 0.

sd

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

r

Positive numeric or vector of length pts Range of the Gaussian process. Defaults to 10.

pts

Positive integer. Grid size to sample each functions on. Defaults to 50.

Value

Matrix of functions. Each column is a separate function.

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 Aug. 8, 2020, 12:15 a.m.