Learn R Programming

rlibkriging (version 0.7-4.3)

as.list.NoiseKriging: Coerce a NoiseKriging Object into a List

Description

Coerce a NoiseKriging Object into a List

Usage

# S3 method for NoiseKriging
as.list(x, ...)

Value

A list with its elements copying the content of the

NoiseKriging object fields: kernel, optim,

objective, theta (vector of ranges),

sigma2 (variance), X, centerX,

scaleX, y, centerY, scaleY,

regmodel, F, T, M, z,

beta.

Arguments

x

An object with class "NoiseKriging".

...

Ignored

Author

Yann Richet yann.richet@irsn.fr

Examples

Run this code
f <- function(x) 1 - 1 / 2 * (sin(12 * x) / (1 + x) + 2 * cos(7 * x) * x^5 + 0.7)
set.seed(123)
X <- as.matrix(runif(10))
y <- f(X) + X/10 * rnorm(nrow(X)) # add noise dep. on X

k <- NoiseKriging(y, noise=(X/10)^2, X, kernel = "matern3_2")

l <- as.list(k)
cat(paste0(names(l), " =" , l, collapse = "\n"))

Run the code above in your browser using DataLab