Description Usage Arguments Details Value Author(s) Examples
View source: R/generate_knots.R
Generates automatically the object used as an argument of the km function of the DiceKriging package
1 | generate_knots(knots.number = NULL, d, lower = NULL, upper = NULL)
|
knots.number |
Array of size d containing integers.
|
d |
Integer. Number of dimensions. This is also equal to |
lower |
Array of size d containing the lower bounds of the input domain. |
upper |
Array of size d containing the upper bounds of the input domain. |
The knots are placed at the boundary of the domain, so, if we work in the unit hypercube then
the array result[[i]]
will be c(0,1)
if knots.number[i] = 2
,
c(0,0.5,1)
if knots.number[i] = 3
, c(0,1/3,2/3,1)
if knots.number[i] = 4
and so on.
A list with d fields. Field i is an array of size knots.number[i]
when there is 2 knots
or more, and is 0 otherwise.
Clement Chevalier clement.chevalier@unine.ch
1 2 3 | knots <- c(5,3,1,0,2,4)
result <- generate_knots(knots.number=knots,d=6)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.