global_poly_helper {BayesGP} | R Documentation |
Constructing and evaluating the global polynomials, to account for boundary conditions (design matrix)
global_poly_helper(x, p = 2)
x |
A vector of locations to evaluate the global polynomials |
p |
An integer value indicates the order of smoothness |
A matrix with i,j componet being the value of jth basis function value at ith element of x, the ncol should equal to p, and nrow should equal to the number of elements in x
global_poly_helper(x = c(0, 0.2, 0.4, 0.6, 0.8), p = 2)