as.list.Kriging: Coerce a 'Kriging' Object into a List

View source: R/KrigingClass.R

as.list.KrigingR Documentation

Coerce a Kriging Object into a List

Description

Coerce a Kriging Object into a List

Usage

## S3 method for class 'Kriging'
as.list(x, ...)

Arguments

x

An object with class "Kriging".

...

Ignored

Value

A list with its elements copying the content of the Kriging object fields: kernel, optim, objective, theta (vector of ranges), sigma2 (variance), X, centerX, scaleX, y, centerY, scaleY, regmodel, F, T, M, z, beta.

Author(s)

Yann Richet yann.richet@irsn.fr

Examples

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)

k <- Kriging(y, X, kernel = "matern3_2")

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

rlibkriging documentation built on July 9, 2023, 5:53 p.m.