Reconstructs 2D surfaces from tensor product basis coefficients.
Usage
basis2fdata_2d(
coefs,
argvals,
nbasis.s,
nbasis.t,
type = c("bspline", "fourier")
)
Arguments
- coefs
Coefficient matrix [n x (nbasis.s * nbasis.t)].
- argvals
List with two numeric vectors for s and t coordinates.
- nbasis.s
Number of basis functions in s direction.
- nbasis.t
Number of basis functions in t direction.
- type
Basis type: "bspline" (default) or "fourier".
Examples
# \donttest{
s <- seq(0, 1, length.out = 10)
t <- seq(0, 1, length.out = 10)
coefs <- matrix(rnorm(36), nrow = 1)
fd2d <- basis2fdata_2d(coefs, argvals = list(s, t), nbasis.s = 6, nbasis.t = 6)
# }