Learn R Programming

rlibkriging (version 0.9-1)

print.NoiseKriging: Print the content of a NoiseKriging object.

Description

Print the content of a NoiseKriging object.

Usage

# S3 method for NoiseKriging
print(x, ...)

Value

String of printed object.

Arguments

x

A (S3) NoiseKriging Object.

...

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")

print(k)
## same thing
k

Run the code above in your browser using DataLab