generate_knots: Generating the knots used in a km call

Description Usage Arguments Details Value Author(s) Examples

View source: R/generate_knots.R

Description

Generates automatically the object used as an argument of the km function of the DiceKriging package

Usage

1
generate_knots(knots.number = NULL, d, lower = NULL, upper = NULL)

Arguments

knots.number

Array of size d containing integers. knots.number[i] contains the number of knots in dimension i. Values of 1 or 0 are considered as no knots.

d

Integer. Number of dimensions. This is also equal to length(knots.number)

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.

Details

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.

Value

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.

Author(s)

Clement Chevalier [email protected]

Examples

1
2
3
knots <- c(5,3,1,0,2,4)

result <- generate_knots(knots.number=knots,d=6)

IRSN/RobustInv documentation built on Dec. 8, 2018, 2:17 a.m.