Last chance! 50% off unlimited learning
Sale ends in
Create a Chebyshev grid on a hypercube.
chebknots(dims, intervals = NULL)
The number of grid-points in each dimension. For
Chebyshev-polynomial of degree dims-1
.
A list of vectors of length 2. The lower and upper bounds of the hypercube.
A array of dimension dims
. The Chebyshev grid-points.
If intervals
is not provided, it is assumed that the domain of the
function in each dimension is [-1,1]. Thus, standard Chebyshev knots are
produced. If dims
is of length 1, intervals
may be a vector
of length 2 rather than a list with a vector of length 2.
# NOT RUN {
## Standard knots for degree 3
chebknots(4)
## Knots in the interval [2,3] for degree 3
chebknots(4,interval=c(2,3))
## Multivariate knots
chebknots(c(x=3,y=4,z=3))
## Multivariate grid
# }
# NOT RUN {
expand.grid(chebknots(c(x=3,y=4,z=5), list(c(1,3), c(4,6), c(800,900))))
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab