| chebcoef {chebpol} | R Documentation |
Compute the multivariate Chebyshev-coefficients, given values on a Chebyshev grid.
chebcoef(val, dct = FALSE)
val |
An |
dct |
Logical. Since the Chebyshev coefficients are closely related to
the DCT-II transform of |
If val has no dim-attribute, it is assumed to be
one-dimensional of length the length of val.
If chebpol was compiled without FFTW, running
chebcoef on large grids may be slow and memory-demanding.
An array of Chebyshev-coefficients for an interpolating Chebyshev-polynomial.
## Coefficients for a 2x3x4 grid a <- array(rnorm(24),dim=c(2,3,4)) chebcoef(a)