View source: R/NuggetKrigingClass.R
as.list.NuggetKriging | R Documentation |
NuggetKriging
Object into a ListCoerce a NuggetKriging
Object into a List
## S3 method for class 'NuggetKriging'
as.list(x, ...)
x |
An object with class |
... |
Ignored |
A list with its elements copying the content of the
NuggetKriging
object fields: kernel
, optim
,
objective
, theta
(vector of ranges),
sigma2
(variance), X
, centerX
,
scaleX
, y
, centerY
, scaleY
,
regmodel
, F
, T
, M
, z
,
beta
.
Yann Richet yann.richet@irsn.fr
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) + 0.1 * rnorm(nrow(X))
k <- NuggetKriging(y, X, kernel = "matern3_2")
l <- as.list(k)
cat(paste0(names(l), " =" , l, collapse = "\n"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.