Learn R Programming

lgcp (version 1.8)

CovFunction.function: CovFunction.function function

Description

A function used to define the covariance function for the latent field prior to running the MCMC algorithm

Usage

# S3 method for `function`
CovFunction(obj, ...)

Arguments

obj

a function object

...

additional arguments

Value

the covariance function ready to run the MCMC routine.

See Also

exponentialCovFct, RandomFieldsCovFct, SpikedExponentialCovFct, CovarianceFct

Examples

Run this code
# NOT RUN {
cf1 <- CovFunction(exponentialCovFct)
# }
# NOT RUN {
cf2 <- CovFunction(RandomFieldsCovFct(model="matern",additionalparameters=1))
# }

Run the code above in your browser using DataLab